mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 11:15:56 +08:00
Add GCode Flavor switch
This commit is contained in:
parent
6a8aa15678
commit
6f9a8ea691
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user