summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-10-09 06:26:18 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-10-09 06:26:18 +0000
commit1208e5f7938731244720438bff526c0b6e07c54f (patch)
tree61807e55187f16ae2bfe25c2715a01ac36645091 /src/verbs.cpp
parentpackaging/macosx: update default theme for newer Clearlooks engine (diff)
downloadinkscape-1208e5f7938731244720438bff526c0b6e07c54f.tar.gz
inkscape-1208e5f7938731244720438bff526c0b6e07c54f.zip
Fix for 191020 : Lock/Unlock all layers
(bzr r11764)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index edfc45f8e..591280d47 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1342,17 +1342,27 @@ void LayerVerb::perform(SPAction *action, void *data)
break;
}
case SP_VERB_LAYER_SHOW_ALL: {
- dt->toggleAllLayers( false );
+ dt->toggleHideAllLayers( false );
DocumentUndo::maybeDone(sp_desktop_document(dt), "layer:showall", SP_VERB_LAYER_SHOW_ALL, _("Show all layers"));
break;
}
-
case SP_VERB_LAYER_HIDE_ALL: {
- dt->toggleAllLayers( true );
+ dt->toggleHideAllLayers( true );
DocumentUndo::maybeDone(sp_desktop_document(dt), "layer:hideall", SP_VERB_LAYER_HIDE_ALL, _("Hide all layers"));
break;
}
+ case SP_VERB_LAYER_LOCK_ALL: {
+ dt->toggleLockAllLayers( true );
+ DocumentUndo::maybeDone(sp_desktop_document(dt), "layer:lockall", SP_VERB_LAYER_LOCK_ALL, _("Lock all layers"));
+ break;
+ }
+
+ case SP_VERB_LAYER_UNLOCK_ALL: {
+ dt->toggleLockAllLayers( false );
+ DocumentUndo::maybeDone(sp_desktop_document(dt), "layer:unlockall", SP_VERB_LAYER_UNLOCK_ALL, _("Unlock all layers"));
+ break;
+ }
case SP_VERB_LAYER_TOGGLE_LOCK:
case SP_VERB_LAYER_TOGGLE_HIDE: {
if ( dt->currentLayer() == dt->currentRoot() ) {
@@ -2489,6 +2499,10 @@ Verb *Verb::_base_verbs[] = {
N_("Show all the layers"), NULL),
new LayerVerb(SP_VERB_LAYER_HIDE_ALL, "LayerHideAll", N_("_Hide all layers"),
N_("Hide all the layers"), NULL),
+ new LayerVerb(SP_VERB_LAYER_LOCK_ALL, "LayerLockAll", N_("_Lock all layers"),
+ N_("Lock all the layers"), NULL),
+ new LayerVerb(SP_VERB_LAYER_UNLOCK_ALL, "LayerUnlockAll", N_("_Unlock all layers"),
+ N_("Unlock all the layers"), NULL),
new LayerVerb(SP_VERB_LAYER_TOGGLE_LOCK, "LayerToggleLock", N_("_Lock/Unlock Current Layer"),
N_("Toggle lock on current layer"), NULL),
new LayerVerb(SP_VERB_LAYER_TOGGLE_HIDE, "LayerToggleHide", N_("_Show/hide Current Layer"),