summaryrefslogtreecommitdiff
path: root/src/Preferences.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-19 14:41:11 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-19 14:41:11 (GMT)
commit87ce149df2581361e8975bd1a0addf2b6ef61e3d (patch)
treec68db815a72cc767b6d51be0a57e9946c5f0a619 /src/Preferences.h
parentba1f0b7489dd5fa9bdc8c44068040f13113b40d0 (diff)
parent638743e2201c6869b48857dd2db5ec01df665162 (diff)
Merge branch 'master' into boost_filesystem
Conflicts: boost.pri tests/CMakeLists.txt
Diffstat (limited to 'src/Preferences.h')
-rw-r--r--src/Preferences.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Preferences.h b/src/Preferences.h
index bdc707d..7e22e63 100644
--- a/src/Preferences.h
+++ b/src/Preferences.h
@@ -4,6 +4,7 @@
#include <QMainWindow>
#include <QSettings>
#include "ui_Preferences.h"
+#include "rendersettings.h"
class Preferences : public QMainWindow, public Ui::Preferences
{
@@ -13,19 +14,6 @@ public:
~Preferences();
static Preferences *inst() { if (!instance) instance = new Preferences(); return instance; }
- enum RenderColor {
- BACKGROUND_COLOR,
- OPENCSG_FACE_FRONT_COLOR,
- OPENCSG_FACE_BACK_COLOR,
- CGAL_FACE_FRONT_COLOR,
- CGAL_FACE_2D_COLOR,
- CGAL_FACE_BACK_COLOR,
- CGAL_EDGE_FRONT_COLOR,
- CGAL_EDGE_BACK_COLOR,
- CGAL_EDGE_2D_COLOR,
- CROSSHAIR_COLOR
- };
- const QColor &color(RenderColor idx);
QVariant getValue(const QString &key) const;
void apply() const;
@@ -35,6 +23,7 @@ public slots:
void fontFamilyChanged(const QString &);
void fontSizeChanged(const QString &);
void openCSGWarningChanged(bool);
+ void enableOpenCSGChanged(bool);
signals:
void requestRedraw() const;
@@ -47,7 +36,7 @@ private:
void removeDefaultSettings();
QSettings::SettingsMap defaultmap;
- QHash<QString, QMap<RenderColor, QColor> > colorschemes;
+ QHash<QString, QMap<RenderSettings::RenderColor, QColor> > colorschemes;
static Preferences *instance;
};
contact: Jan Huwald // Impressum