mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Introduce center and multiply actions that work on the entire selection
Instead of working on a single object. Contributes to CURA-3609
This commit is contained in:
parent
06cc0e9a63
commit
dd73c53ece
1 changed files with 20 additions and 2 deletions
|
@ -18,6 +18,8 @@ Item
|
||||||
property alias redo: redoAction;
|
property alias redo: redoAction;
|
||||||
|
|
||||||
property alias deleteSelection: deleteSelectionAction;
|
property alias deleteSelection: deleteSelectionAction;
|
||||||
|
property alias centerSelection: centerSelectionAction;
|
||||||
|
property alias multiplySelection: multiplySelectionAction;
|
||||||
|
|
||||||
property alias deleteObject: deleteObjectAction;
|
property alias deleteObject: deleteObjectAction;
|
||||||
property alias centerObject: centerObjectAction;
|
property alias centerObject: centerObjectAction;
|
||||||
|
@ -181,13 +183,29 @@ Item
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: deleteSelectionAction;
|
id: deleteSelectionAction;
|
||||||
text: catalog.i18nc("@action:inmenu menubar:edit","Delete &Selection");
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Delete &Selected Model", "Delete &Selected Models", UM.Selection.selectionCount);
|
||||||
enabled: UM.Controller.toolsEnabled;
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
iconName: "edit-delete";
|
iconName: "edit-delete";
|
||||||
shortcut: StandardKey.Delete;
|
shortcut: StandardKey.Delete;
|
||||||
onTriggered: CuraApplication.deleteSelection();
|
onTriggered: CuraApplication.deleteSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: centerSelectionAction;
|
||||||
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Center Selected Model", "Center Selected Models", UM.Selection.selectionCount);
|
||||||
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
|
iconName: "align-vertical-center";
|
||||||
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: multiplySelectionAction;
|
||||||
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Multiply Selected Model", "Multiply Selected Models", UM.Selection.selectionCount);
|
||||||
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
|
iconName: "edit-duplicate";
|
||||||
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: deleteObjectAction;
|
id: deleteObjectAction;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue