1 #include <QMdiArea> |
|
2 #include "libraries.h" |
|
3 #include "gl/common.h" |
|
4 |
|
5 #ifndef SETTING |
|
6 enum class Setting { |
|
7 # define SETTING(NAME, DEFVALUE) NAME, |
|
8 # define AUTOMATIC_SETTINGS_DEF |
|
9 #endif |
|
10 |
|
11 // Rendering options |
|
12 SETTING(Locale, QString{"system"}) |
|
13 SETTING(BackgroundColor, (QColor{48, 48, 48})) |
|
14 SETTING(MainColor, (QColor{255, 255, 64})) |
|
15 SETTING(SelectedColor, (QColor{32, 32, 224})) |
|
16 SETTING(LineThickness, 2.0f) |
|
17 SETTING(LineAntiAliasing, true) |
|
18 SETTING(RenderStyle, gl::RenderStyle::Normal) |
|
19 SETTING(DrawWireframe, false) |
|
20 SETTING(DrawAxes, true) |
|
21 SETTING(MainWindowGeometry, QByteArray{}) |
|
22 SETTING(MainSplitterState, QByteArray{}) |
|
23 SETTING(RecentFiles, QStringList{}) |
|
24 SETTING(ViewMode, QMdiArea::TabbedView) |
|
25 |
|
26 // File management options |
|
27 SETTING(Libraries, QVector<Library>{}) |
|
28 |
|
29 #ifdef AUTOMATIC_SETTINGS_DEF |
|
30 }; |
|
31 # undef SETTING |
|
32 # undef AUTOMATIC_SETTINGS_DEF |
|
33 #endif |
|