summaryrefslogtreecommitdiffstats
path: root/src/desktop.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-02-21 22:28:50 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-02-21 22:28:50 +0000
commit4a4047fdd90aede6d16c020ddcd70c57ea4aa218 (patch)
treee43b214f3025b953644385c301a03a4d2f3b1dbf /src/desktop.h
parentFinished cleanup of outdated SP_OBJECT_PARENT C macro. (diff)
downloadinkscape-4a4047fdd90aede6d16c020ddcd70c57ea4aa218.tar.gz
inkscape-4a4047fdd90aede6d16c020ddcd70c57ea4aa218.zip
NEW: Grayscale color display mode. (toggle assigned keybinding: Shift+keypad5)
(bzr r10065)
Diffstat (limited to 'src/desktop.h')
-rw-r--r--src/desktop.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/desktop.h b/src/desktop.h
index 8f89df418..4fdc0b98b 100644
--- a/src/desktop.h
+++ b/src/desktop.h
@@ -206,13 +206,24 @@ public:
void setDisplayModeOutline() {
_setDisplayMode(Inkscape::RENDERMODE_OUTLINE);
}
-// void setDisplayModePrintColorsPreview() {
-// _setDisplayMode(Inkscape::RENDERMODE_PRINT_COLORS_PREVIEW);
-// }
void displayModeToggle();
Inkscape::RenderMode _display_mode;
Inkscape::RenderMode getMode() const { return _display_mode; }
+ void _setDisplayColorMode(Inkscape::ColorRenderMode mode);
+ void setDisplayColorModeNormal() {
+ _setDisplayColorMode(Inkscape::COLORRENDERMODE_NORMAL);
+ }
+ void setDisplayColorModeGrayscale() {
+ _setDisplayColorMode(Inkscape::COLORRENDERMODE_GRAYSCALE);
+ }
+// void setDisplayColorModePrintColorsPreview() {
+// _setDisplayColorMode(Inkscape::COLORRENDERMODE_PRINT_COLORS_PREVIEW);
+// }
+ void displayColorModeToggle();
+ Inkscape::ColorRenderMode _display_color_mode;
+ Inkscape::ColorRenderMode getColorMode() const { return _display_color_mode; }
+
Inkscape::UI::Widget::Dock* getDock() { return _widget->getDock(); }
void set_active (bool new_active);