Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/MainWindow/ApplicationMenu.qml')
-rw-r--r--resources/qml/MainWindow/ApplicationMenu.qml34
1 files changed, 29 insertions, 5 deletions
diff --git a/resources/qml/MainWindow/ApplicationMenu.qml b/resources/qml/MainWindow/ApplicationMenu.qml
index 05e349841b..4e08cb08dd 100644
--- a/resources/qml/MainWindow/ApplicationMenu.qml
+++ b/resources/qml/MainWindow/ApplicationMenu.qml
@@ -35,6 +35,7 @@ Item
MenuSeparator { }
MenuItem { action: Cura.Actions.selectAll }
MenuItem { action: Cura.Actions.arrangeAll }
+ MenuItem { action: Cura.Actions.multiplySelection }
MenuItem { action: Cura.Actions.deleteSelection }
MenuItem { action: Cura.Actions.deleteAll }
MenuItem { action: Cura.Actions.resetAllTranslation }
@@ -68,13 +69,17 @@ Item
Instantiator
{
model: actions
- MenuItem
+ Loader
{
- text: model.text
- onTriggered: extensions.model.subMenuTriggered(name, model.text)
+ property var extensionsModel: extensions.model
+ property var modelText: model.text
+ property var extensionName: name
+
+ sourceComponent: modelText.trim() == "" ? extensionsMenuSeparator : extensionsMenuItem
}
- onObjectAdded: sub_menu.insertItem(index, object)
- onObjectRemoved: sub_menu.removeItem(object)
+
+ onObjectAdded: sub_menu.insertItem(index, object.item)
+ onObjectRemoved: sub_menu.removeItem(object.item)
}
}
@@ -106,6 +111,25 @@ Item
}
}
+ Component
+ {
+ id: extensionsMenuItem
+
+ MenuItem
+ {
+ text: modelText
+ onTriggered: extensionsModel.subMenuTriggered(extensionName, modelText)
+ }
+ }
+
+ Component
+ {
+ id: extensionsMenuSeparator
+
+ MenuSeparator {}
+ }
+
+
// ###############################################################################################
// Definition of other components that are linked to the menus
// ###############################################################################################