diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-08-07 06:55:35 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-08-07 06:55:35 +0000 |
| commit | 119ed684c78514e4e98c65a56586e5b3ca6f8e7f (patch) | |
| tree | 383d15cb7cd466a6928c01a1b857f0dc4683fff1 /src/ui | |
| parent | Filter effects: (diff) | |
| download | inkscape-119ed684c78514e4e98c65a56586e5b3ca6f8e7f.tar.gz inkscape-119ed684c78514e4e98c65a56586e5b3ca6f8e7f.zip | |
add a way to set a radio toggle in aux toolbar via desktop, by the toggles id
(bzr r3408)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/view/edit-widget-interface.h | 3 | ||||
| -rw-r--r-- | src/ui/view/edit-widget.cpp | 6 | ||||
| -rw-r--r-- | src/ui/view/edit-widget.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/view/edit-widget-interface.h b/src/ui/view/edit-widget-interface.h index 4c9ad8b02..8e388529e 100644 --- a/src/ui/view/edit-widget-interface.h +++ b/src/ui/view/edit-widget-interface.h @@ -120,6 +120,9 @@ struct EditWidgetInterface /// 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; diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp index d5b782865..b87250e47 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -1488,6 +1488,12 @@ EditWidget::setToolboxAdjustmentValue (const gchar *, double) /// \todo not implemented } +void +EditWidget::setToolboxSelectOneValue (const gchar *, gint) +{ + /// \todo not implemented +} + bool EditWidget::isToolboxButtonActive (gchar const*) { diff --git a/src/ui/view/edit-widget.h b/src/ui/view/edit-widget.h index 7f68abcf5..443b10ac8 100644 --- a/src/ui/view/edit-widget.h +++ b/src/ui/view/edit-widget.h @@ -126,6 +126,7 @@ public: virtual void letZoomGrabFocus(); virtual void setToolboxFocusTo (const gchar *); virtual void setToolboxAdjustmentValue (const gchar *, double); + virtual void setToolboxSelectOneValue (const gchar *, gint); virtual bool isToolboxButtonActive (gchar const*); virtual void setCoordinateStatus (NR::Point p); virtual void setMessage (Inkscape::MessageType type, gchar const* msg); |
