Arranger: moved functions, split Arrange into Arrange All and Arrange Selection. CURA-3239

This commit is contained in:
Jack Ha 2017-04-03 10:40:04 +02:00
parent 9db816b0fc
commit abb5d1e76e
4 changed files with 181 additions and 159 deletions

View file

@ -31,7 +31,8 @@ Item
property alias selectAll: selectAllAction;
property alias deleteAll: deleteAllAction;
property alias reloadAll: reloadAllAction;
property alias arrange: arrangeAction;
property alias arrangeAll: arrangeAllAction;
property alias arrangeSelection: arrangeSelectionAction;
property alias resetAllTranslation: resetAllTranslationAction;
property alias resetAll: resetAllAction;
@ -269,9 +270,16 @@ Item
Action
{
id: arrangeAction;
text: catalog.i18nc("@action:inmenu menubar:edit","Arrange");
onTriggered: Printer.arrange();
id: arrangeAllAction;
text: catalog.i18nc("@action:inmenu menubar:edit","Arrange All");
onTriggered: Printer.arrangeAll();
}
Action
{
id: arrangeSelectionAction;
text: catalog.i18nc("@action:inmenu menubar:edit","Arrange Selection");
onTriggered: Printer.arrangeSelection();
}
Action