summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-03-31 03:23:39 +0000
committermental <mental@users.sourceforge.net>2008-03-31 03:23:39 +0000
commit6029364021b09601b1d18b796d8139223ed52ce2 (patch)
tree0e4b5d90c01941a93b2647f3191f1423fd611ead /src/verbs.cpp
parentlay groundwork for non-filter view mode (diff)
downloadinkscape-6029364021b09601b1d18b796d8139223ed52ce2.tar.gz
inkscape-6029364021b09601b1d18b796d8139223ed52ce2.zip
implement filter toggle
(bzr r5266)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index b32d0041b..9258aa547 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1651,6 +1651,9 @@ ZoomVerb::perform(SPAction *action, void *data, void */*pdata*/)
case SP_VERB_VIEW_MODE_NORMAL:
dt->setDisplayModeNormal();
break;
+ case SP_VERB_VIEW_MODE_NO_FILTERS:
+ dt->setDisplayModeNoFilters();
+ break;
case SP_VERB_VIEW_MODE_OUTLINE:
dt->setDisplayModeOutline();
break;
@@ -2496,6 +2499,8 @@ Verb *Verb::_base_verbs[] = {
new ZoomVerb(SP_VERB_VIEW_MODE_NORMAL, "ViewModeNormal", N_("_Normal"),
N_("Switch to normal display mode"), NULL),
+ new ZoomVerb(SP_VERB_VIEW_MODE_NO_FILTERS, "ViewModeNoFilters", N_("No _Filters"),
+ N_("Switch to normal display without filters"), NULL),
new ZoomVerb(SP_VERB_VIEW_MODE_OUTLINE, "ViewModeOutline", N_("_Outline"),
N_("Switch to outline (wireframe) display mode"), NULL),
new ZoomVerb(SP_VERB_VIEW_MODE_TOGGLE, "ViewModeToggle", N_("_Toggle"),