Commit 3223500f authored by Michael Abrahams's avatar Michael Abrahams

Add keyboard shortcuts to move layer up/down (Raghavendra Kamath)

parent fe8ad8f0
......@@ -2461,6 +2461,35 @@
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="select_opaque">
<icon></icon>
<text>&amp;Select Opaque</text>
<whatsThis></whatsThis>
<toolTip>Select Opaque</toolTip>
<iconText>Select Opaque</iconText>
<activationFlags>100000</activationFlags>
<activationConditions>100</activationConditions>
<shortcut></shortcut>
<defaultShortcut></defaultShortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="show-global-selection-mask">
<icon></icon>
<text>&amp;Show Global Selection Mask</text>
<whatsThis></whatsThis>
<toolTip>Shows global selection as a usual selection mask in &lt;interface>Layers&lt;/interface> docker</toolTip>
<iconText>Show Global Selection Mask</iconText>
<activationFlags>0</activationFlags>
<activationConditions>0</activationConditions>
<shortcut></shortcut>
<defaultShortcut></defaultShortcut>
<isCheckable>true</isCheckable>
<statusTip></statusTip>
</Action>
</Actions>
<Actions category="Layers">
<text>Layers</text>
<Action name="remove_layer">
<icon>deletelayer</icon>
<text>&amp;Remove Layer</text>
......@@ -2500,43 +2529,39 @@
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="layer_properties">
<icon>properties</icon>
<text>&amp;Properties...</text>
<Action name="move_layer_up">
<icon></icon>
<text>Move Layer or Mask Up</text>
<whatsThis></whatsThis>
<toolTip>Properties</toolTip>
<iconText>Properties</iconText>
<activationFlags>1000</activationFlags>
<activationConditions>1</activationConditions>
<shortcut></shortcut>
<defaultShortcut></defaultShortcut>
<toolTip>Move Layer or Mask Up</toolTip>
<iconText></iconText>
<shortcut>Ctrl+PgDown</shortcut>
<defaultShortcut>Ctrl+PgUp</defaultShortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="select_opaque">
<Action name="move_layer_down">
<icon></icon>
<text>&amp;Select Opaque</text>
<text>Move Layer or Mask down</text>
<whatsThis></whatsThis>
<toolTip>Select Opaque</toolTip>
<iconText>Select Opaque</iconText>
<activationFlags>100000</activationFlags>
<activationConditions>100</activationConditions>
<shortcut></shortcut>
<defaultShortcut></defaultShortcut>
<toolTip>Move Layer or Mask Down</toolTip>
<iconText></iconText>
<shortcut>Ctrl+PgDown</shortcut>
<defaultShortcut>Ctrl+PgDown</defaultShortcut>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
<Action name="show-global-selection-mask">
<icon></icon>
<text>&amp;Show Global Selection Mask</text>
<Action name="layer_properties">
<icon>properties</icon>
<text>&amp;Properties...</text>
<whatsThis></whatsThis>
<toolTip>Shows global selection as a usual selection mask in &lt;interface>Layers&lt;/interface> docker</toolTip>
<iconText>Show Global Selection Mask</iconText>
<activationFlags>0</activationFlags>
<activationConditions>0</activationConditions>
<toolTip>Properties</toolTip>
<iconText>Properties</iconText>
<activationFlags>1000</activationFlags>
<activationConditions>1</activationConditions>
<shortcut></shortcut>
<defaultShortcut></defaultShortcut>
<isCheckable>true</isCheckable>
<isCheckable>false</isCheckable>
<statusTip></statusTip>
</Action>
</Actions>
......
......@@ -217,6 +217,25 @@ KisLayerBox::KisLayerBox()
connect(action, SIGNAL(triggered()), this, SLOT(slotRightClicked()));
m_actions.append(action);
action = new ButtonAction(m_wdgLayerBox->bnRaise, this);
action->setText(i18n("Move Layer or Mask Up"));
action->setActivationFlags(KisAction::ACTIVE_NODE);
action->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE);
action->setObjectName("move_layer_up");
action->setShortcut(Qt::CTRL + Qt::Key_PageUp);
connect(action, SIGNAL(triggered()), this, SLOT(slotLowerClicked()));
m_actions.append(action);
action = new ButtonAction(m_wdgLayerBox->bnLower, this);
action->setText(i18n("Move Layer or Mask Down"));
action->setActivationFlags(KisAction::ACTIVE_NODE);
action->setActivationConditions(KisAction::ACTIVE_NODE_EDITABLE);
action->setObjectName("move_layer_down");
action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_PageDown));
connect(action, SIGNAL(triggered()), this, SLOT(slotRaiseClicked()));
m_actions.append(action);
m_propertiesAction = new ButtonAction(m_wdgLayerBox->bnProperties,
KisIconUtils::loadIcon("properties"), i18n("&Properties..."),this);
m_propertiesAction->setActivationFlags(KisAction::ACTIVE_NODE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment