mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added first arrange function and smart placement after loading. CURA-3239
This commit is contained in:
parent
d8c20b9d6c
commit
bf08d30e7d
3 changed files with 133 additions and 30 deletions
8
resources/qml/Actions.qml
Normal file → Executable file
8
resources/qml/Actions.qml
Normal file → Executable file
|
|
@ -31,6 +31,7 @@ Item
|
|||
property alias selectAll: selectAllAction;
|
||||
property alias deleteAll: deleteAllAction;
|
||||
property alias reloadAll: reloadAllAction;
|
||||
property alias arrange: arrangeAction;
|
||||
property alias resetAllTranslation: resetAllTranslationAction;
|
||||
property alias resetAll: resetAllAction;
|
||||
|
||||
|
|
@ -266,6 +267,13 @@ Item
|
|||
onTriggered: Printer.reloadAll();
|
||||
}
|
||||
|
||||
Action
|
||||
{
|
||||
id: arrangeAction;
|
||||
text: catalog.i18nc("@action:inmenu menubar:edit","Arrange");
|
||||
onTriggered: Printer.arrange();
|
||||
}
|
||||
|
||||
Action
|
||||
{
|
||||
id: resetAllTranslationAction;
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ UM.MainWindow
|
|||
MenuItem { action: Cura.Actions.selectAll; }
|
||||
MenuItem { action: Cura.Actions.deleteSelection; }
|
||||
MenuItem { action: Cura.Actions.deleteAll; }
|
||||
MenuItem { action: Cura.Actions.arrange; }
|
||||
MenuItem { action: Cura.Actions.resetAllTranslation; }
|
||||
MenuItem { action: Cura.Actions.resetAll; }
|
||||
MenuSeparator { }
|
||||
|
|
@ -638,6 +639,7 @@ UM.MainWindow
|
|||
MenuItem { action: Cura.Actions.selectAll; }
|
||||
MenuItem { action: Cura.Actions.deleteAll; }
|
||||
MenuItem { action: Cura.Actions.reloadAll; }
|
||||
MenuItem { action: Cura.Actions.arrange; }
|
||||
MenuItem { action: Cura.Actions.resetAllTranslation; }
|
||||
MenuItem { action: Cura.Actions.resetAll; }
|
||||
MenuSeparator { }
|
||||
|
|
@ -698,6 +700,7 @@ UM.MainWindow
|
|||
MenuItem { action: Cura.Actions.selectAll; }
|
||||
MenuItem { action: Cura.Actions.deleteAll; }
|
||||
MenuItem { action: Cura.Actions.reloadAll; }
|
||||
MenuItem { action: Cura.Actions.arrange; }
|
||||
MenuItem { action: Cura.Actions.resetAllTranslation; }
|
||||
MenuItem { action: Cura.Actions.resetAll; }
|
||||
MenuSeparator { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue