summaryrefslogtreecommitdiff
path: root/Preferences.h
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-21 19:18:21 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-21 19:18:21 (GMT)
commit0a3a7b15794053299dbe16cf6fd5e42c27853945 (patch)
treec97266987e195dc3c849168c958ae96a649ca1d6 /Preferences.h
parent9ce0a168d05901bd251e65af8bf652b49486639e (diff)
Added first mockup of a color scheme chooser
git-svn-id: http://svn.clifford.at/openscad/trunk@332 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'Preferences.h')
-rw-r--r--Preferences.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Preferences.h b/Preferences.h
index 96ae4ca..9b8c816 100644
--- a/Preferences.h
+++ b/Preferences.h
@@ -24,15 +24,19 @@ public:
CGAL_EDGE_2D_COLOR,
CROSSHAIR_COLOR
};
- void setColor(RenderColor idx, const QColor &color) { this->colormap[idx] = color; }
- const QColor &color(RenderColor idx) { return this->colormap[idx]; }
+ const QColor &color(RenderColor idx);
public slots:
void actionTriggered(class QAction *);
+ void colorSchemeChanged();
+
+signals:
+ void requestRedraw();
private:
Preferences(QWidget *parent = NULL);
- QMap<RenderColor, QColor> colormap;
+ QHash<QString, QMap<RenderColor, QColor> > colorschemes;
+ QString colorscheme;
static Preferences *instance;
};
contact: Jan Huwald // Impressum