diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-10 20:51:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-12 12:33:55 -0700 |
commit | ca6aa3813956b5e8be68b86ed36a5786b3ee746f (patch) | |
tree | 3c6760a3deebcc1dae8be6c1141fd9ed300c992f /desktop-widgets/tab-widgets | |
parent | 75767c456a2889d213621866a9f7fbb108f3366d (diff) | |
download | subsurface-ca6aa3813956b5e8be68b86ed36a5786b3ee746f.tar.gz |
Mainwindow: simplify application-state code
The way the application state would enable/disable widgets was very
"dynamic". A property-list would be generated and put in a set
of arrays. Very hard to figure out what is going on.
Replace these property-list by flags and explicit old-fashioned boolean
expressions.
Join the two arrays (widget- and property-lists) into an array of
a unified data structure.
Replace the macro that sets the widgets by a simple static function.
Factor out the four loops that added widgets to the quadrants into
a simple static function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
0 files changed, 0 insertions, 0 deletions