Add GCode Flavor switch

This commit is contained in:
fieldOfView 2016-08-03 20:50:47 +02:00
parent 6a8aa15678
commit 6f9a8ea691

View File

@ -135,6 +135,23 @@ Cura.MachineAction
onClicked: machineCenterIsZeroProvider.setPropertyValue("value", checked) onClicked: machineCenterIsZeroProvider.setPropertyValue("value", checked)
} }
} }
Row
{
spacing: UM.Theme.getSize("default_margin").width
Label
{
text: catalog.i18nc("@label", "GCode Flavor")
}
ComboBox
{
model: ["RepRap (Marlin/Sprinter)", "UltiGCode"]
currentIndex: machineGCodeFlavorProvider.properties.value != model[1] ? 0 : 1
onActivated: machineGCodeFlavorProvider.setPropertyValue("value", model[index])
}
}
} }
Column Column
@ -390,6 +407,16 @@ Cura.MachineAction
storeIndex: 3 storeIndex: 3
} }
UM.SettingPropertyProvider
{
id: machineGCodeFlavorProvider
containerStackId: Cura.MachineManager.activeMachineId
key: "machine_gcode_flavor"
watchedProperties: [ "value" ]
storeIndex: 3
}
UM.SettingPropertyProvider UM.SettingPropertyProvider
{ {
id: machineNozzleSizeProvider id: machineNozzleSizeProvider