mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add GCode Flavor switch
This commit is contained in:
parent
6a8aa15678
commit
6f9a8ea691
1 changed files with 49 additions and 22 deletions
|
|
@ -135,6 +135,23 @@ Cura.MachineAction
|
|||
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
|
||||
|
|
@ -390,6 +407,16 @@ Cura.MachineAction
|
|||
storeIndex: 3
|
||||
}
|
||||
|
||||
UM.SettingPropertyProvider
|
||||
{
|
||||
id: machineGCodeFlavorProvider
|
||||
|
||||
containerStackId: Cura.MachineManager.activeMachineId
|
||||
key: "machine_gcode_flavor"
|
||||
watchedProperties: [ "value" ]
|
||||
storeIndex: 3
|
||||
}
|
||||
|
||||
UM.SettingPropertyProvider
|
||||
{
|
||||
id: machineNozzleSizeProvider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue