diff -r 6d95c1a41e6e -r 63125c36de73 src/settingdefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/settingdefs.h Tue Jun 14 19:50:31 2022 +0300 @@ -0,0 +1,33 @@ +#include +#include "libraries.h" +#include "gl/common.h" + +#ifndef SETTING +enum class Setting { +# define SETTING(NAME, DEFVALUE) NAME, +# define AUTOMATIC_SETTINGS_DEF +#endif + +// Rendering options +SETTING(Locale, QString{"system"}) +SETTING(BackgroundColor, (QColor{48, 48, 48})) +SETTING(MainColor, (QColor{255, 255, 64})) +SETTING(SelectedColor, (QColor{32, 32, 224})) +SETTING(LineThickness, 2.0f) +SETTING(LineAntiAliasing, true) +SETTING(RenderStyle, gl::RenderStyle::Normal) +SETTING(DrawWireframe, false) +SETTING(DrawAxes, true) +SETTING(MainWindowGeometry, QByteArray{}) +SETTING(MainSplitterState, QByteArray{}) +SETTING(RecentFiles, QStringList{}) +SETTING(ViewMode, QMdiArea::TabbedView) + +// File management options +SETTING(Libraries, QVector{}) + +#ifdef AUTOMATIC_SETTINGS_DEF +}; +# undef SETTING +# undef AUTOMATIC_SETTINGS_DEF +#endif