subsurface/packaging
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
..
android CMake: use builtin method to not use BZip2 2019-03-21 19:30:14 -07:00
headless Preserve wiki pages about headless Subsurface from trac wiki 2018-01-19 15:25:37 +01:00
ios Turn application state into enum 2019-05-12 12:33:55 -07:00
macosx build-system: macOS: more hacking around paths 2019-04-12 09:30:06 +02:00
OBS Rename README to README.md in some scripts, makefiles,... 2017-11-04 10:55:11 -07:00
ubuntu build-system: fix appdata creation on OBS 2018-09-20 10:02:54 -07:00
windows Windows/MXE: actually build HIDAPI library 2019-01-21 17:10:17 +12:00