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:
authorArjen Hiemstra <ahiemstra@heimr.nl>2017-04-25 17:11:31 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2017-04-25 17:11:31 +0300
commit89e6313143589500a6f9cd77475ee79de0f2d845 (patch)
tree64cebad1c53d5e267ac983b386b307a5da25fa84 /resources/qml/Toolbar.qml
parent48baf272b4caaaf6c99dcec1302a341a77629fca (diff)
Add buttons to select the extruder for the selection to the toolbar
Contributes to CURA-3577
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r--resources/qml/Toolbar.qml22
1 files changed, 21 insertions, 1 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml
index 6363aa4e42..0f930d532b 100644
--- a/resources/qml/Toolbar.qml
+++ b/resources/qml/Toolbar.qml
@@ -6,7 +6,8 @@ import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Layouts 1.1
-import UM 1.0 as UM
+import UM 1.2 as UM
+import Cura 1.0 as Cura
Item
{
@@ -67,6 +68,14 @@ Item
}
}
}
+
+ Item { height: UM.Theme.getSize("default_margin").height; width: 1; visible: machineExtruderCount.properties.value > 1 }
+
+ Repeater
+ {
+ model: Cura.ExtrudersModel { id: extrudersModel }
+ ExtruderButton { extruder: model }
+ }
}
UM.PointingRectangle
@@ -147,4 +156,15 @@ Item
visible: toolHint.text != "";
}
+
+ UM.SettingPropertyProvider
+ {
+ id: machineExtruderCount
+
+ containerStackId: Cura.MachineManager.activeMachineId
+ key: "machine_extruder_count"
+ watchedProperties: [ "value" ]
+ }
+
+ UM.I18nCatalog { id: catalog; name: "cura" }
}