Berthold Stoeger
75767c456a
Turn application state into enum
...
The application state was encoded in a QByteArray. Thus, there was
no compile-time checking. Typos would lead to silent failures.
Turn the application state into an enum. Use the enum-class construct,
so that the values don't polute the global namespace. Moreover,
this makes them strongly typed, i.e. they don't auto-convert to
integers.
A disadvantage is that the enums now have to be cast to int
explicitly when used to index an array.
Replace two hash-maps in MainWindow to arrays of fixed sizes.
Move the application-state details into their own files.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-05-12 12:33:55 -07:00
..
2018-07-12 17:12:56 +02:00
2019-04-12 12:59:17 +03:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-10-12 08:22:44 -07:00
2018-10-12 08:22:44 -07:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2019-04-12 18:19:07 +03:00
2018-08-31 06:33:46 -07:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2019-05-12 12:33:55 -07:00
2018-10-30 15:33:43 +01:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2019-04-04 09:29:45 -07:00
2018-09-11 17:22:58 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 12:59:17 +03:00
2018-09-11 17:25:00 -07:00
2019-04-12 18:19:07 +03:00
2018-07-26 16:32:51 +03:00
2018-04-09 07:59:51 -07:00
2018-04-09 07:59:51 -07:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-09-11 18:00:44 -07:00
2018-09-11 17:25:00 -07:00
2018-10-15 19:46:18 +02:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00
2018-09-11 17:25:00 -07:00