diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-11-26 20:54:55 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-11-26 20:54:55 +0000 |
| commit | c3585e5f5ab297489509d60b69749dcddb89b446 (patch) | |
| tree | 2e2b514da9d5588c76eb897349d63bdae30c1138 /src/ui | |
| parent | Don't snap the smooth nodes of a path (diff) | |
| download | inkscape-c3585e5f5ab297489509d60b69749dcddb89b446.tar.gz inkscape-c3585e5f5ab297489509d60b69749dcddb89b446.zip | |
Menu item to toggle CMS adjustment on and off
(bzr r4138)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/view/edit-widget-interface.h | 71 | ||||
| -rw-r--r-- | src/ui/view/edit-widget.cpp | 5 | ||||
| -rw-r--r-- | src/ui/view/edit-widget.h | 19 |
3 files changed, 52 insertions, 43 deletions
diff --git a/src/ui/view/edit-widget-interface.h b/src/ui/view/edit-widget-interface.h index c8219b7b2..f148bb715 100644 --- a/src/ui/view/edit-widget-interface.h +++ b/src/ui/view/edit-widget-interface.h @@ -4,7 +4,7 @@ * Abstract base class for all EditWidget implementations. * * Authors: - * Ralf Stephan <ralf@ark.in-berlin.de> + * Ralf Stephan <ralf@ark.in-berlin.de> * John Bintz <jcoswell@coswellproductions.org> * * Copyright (C) 2006 John Bintz @@ -33,107 +33,110 @@ struct EditWidgetInterface /// Returns pointer to window UI object as void* virtual Gtk::Window *getWindow() = 0; - + /// Set the widget's title virtual void setTitle (gchar const*) = 0; - + /// Show all parts of widget the user wants to see. virtual void layout() = 0; - + /// Present widget to user virtual void present() = 0; - + /// Returns geometry of widget virtual void getGeometry (gint &x, gint &y, gint &w, gint &h) = 0; - + /// Change the widget's size virtual void setSize (gint w, gint h) = 0; - + /// Move widget to specified position virtual void setPosition (NR::Point p) = 0; - + /// Transientize widget virtual void setTransient (void*, int) = 0; - + /// Return mouse position in widget virtual NR::Point getPointer() = 0; - + /// Make widget iconified virtual void setIconified() = 0; - + /// Make widget maximized on screen virtual void setMaximized() = 0; - + /// Make widget fill screen and show it if possible. virtual void setFullscreen() = 0; - + /// Shuts down the desktop object for the view being closed. It checks /// to see if the document has been edited, and if so prompts the user /// to save, discard, or cancel. Returns TRUE if the shutdown operation /// is cancelled or if the save is cancelled or fails, FALSE otherwise. virtual bool shutdown() = 0; - + /// Destroy and delete widget. virtual void destroy() = 0; - - + + /// Queue a redraw request with the canvas virtual void requestCanvasUpdate() = 0; - + /// Force a redraw of the canvas virtual void requestCanvasUpdateAndWait() = 0; - + /// Enable interaction on this desktop virtual void enableInteraction() = 0; - + /// Disable interaction on this desktop virtual void disableInteraction() = 0; - + /// Update the "active desktop" indicator virtual void activateDesktop() = 0; - + /// Update the "inactive desktop" indicator virtual void deactivateDesktop() = 0; - + /// Set rulers to position virtual void viewSetPosition (NR::Point p) = 0; - + /// Update rulers from current values virtual void updateRulers() = 0; - + /// Update scrollbars from current values virtual void updateScrollbars (double scale) = 0; - + /// Toggle rulers on/off and set preference value accordingly virtual void toggleRulers() = 0; - + /// Toggle scrollbars on/off and set preference value accordingly virtual void toggleScrollbars() = 0; - + + /// Toggle CMS on/off and set preference value accordingly + virtual void toggleColorProfAdjust() = 0; + /// Temporarily block signals and update zoom display virtual void updateZoom() = 0; - + /// The zoom display will get the keyboard focus. virtual void letZoomGrabFocus() = 0; - + /// In auxiliary toolbox, set focus to widget having specific id virtual void setToolboxFocusTo (const gchar *) = 0; - + /// In auxiliary toolbox, set value of adjustment with specific id virtual void setToolboxAdjustmentValue (const gchar *, double) = 0; /// In auxiliary toolbox, select one of the "select one" options (usually radio toggles) virtual void setToolboxSelectOneValue (const gchar *, gint) = 0; - + /// In auxiliary toolbox, return true if specific togglebutton is active virtual bool isToolboxButtonActive (gchar const*) = 0; - + /// Set the coordinate display virtual void setCoordinateStatus (NR::Point p) = 0; - + /// Message widget will get no content virtual void setMessage (Inkscape::MessageType type, gchar const* msg) = 0; - + /// Open yes/no dialog with warning text and confirmation question. virtual bool warnDialog (gchar*) = 0; diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp index f99658f97..7bf4fc752 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -1465,6 +1465,11 @@ EditWidget::toggleScrollbars() } } +void EditWidget::toggleColorProfAdjust() +{ + // TODO implement +} + void EditWidget::updateZoom() { diff --git a/src/ui/view/edit-widget.h b/src/ui/view/edit-widget.h index 4341f667c..e665b2fae 100644 --- a/src/ui/view/edit-widget.h +++ b/src/ui/view/edit-widget.h @@ -43,7 +43,7 @@ namespace Inkscape { namespace UI { namespace View { -class EditWidget : public Gtk::Window, +class EditWidget : public Gtk::Window, public EditWidgetInterface { public: EditWidget (SPDocument*); @@ -86,13 +86,13 @@ public: void onDialogTrace(); void onDialogXmlEditor(); - // Whiteboard (Inkboard) + // Whiteboard (Inkboard) #ifdef WITH_INKBOARD - void onDialogWhiteboardConnect(); - void onDialogWhiteboardShareWithUser(); - void onDialogWhiteboardShareWithChat(); - void onDialogOpenSessionFile(); - void onDumpXMLTracker(); + void onDialogWhiteboardConnect(); + void onDialogWhiteboardShareWithUser(); + void onDialogWhiteboardShareWithChat(); + void onDialogOpenSessionFile(); + void onDumpXMLTracker(); #endif void onUriChanged(); @@ -123,6 +123,7 @@ public: virtual void updateScrollbars (double scale); virtual void toggleRulers(); virtual void toggleScrollbars(); + virtual void toggleColorProfAdjust(); virtual void updateZoom(); virtual void letZoomGrabFocus(); virtual void setToolboxFocusTo (const gchar *); @@ -139,7 +140,7 @@ protected: void _namedview_modified(SPObject *namedview, guint); Gtk::Tooltips _tooltips; - + // Child widgets: Gtk::Table _main_window_table; Gtk::VBox _toolbars_vbox; @@ -168,7 +169,7 @@ protected: Gtk::Table _coord_status; Gtk::Label _coord_status_x, _coord_status_y; Gtk::Label _select_status; - + SPDesktop* _desktop; SPNamedView* _namedview; double _dt2r; |
