mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-06 07:15:11 +08:00
Add a field to set the material diameter for the printer
This is used to filter the list of available materials, see https://github.com/Ultimaker/Cura/pull/1685
This commit is contained in:
parent
57f936e5ff
commit
c9039bb6fc
@ -382,6 +382,18 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@label", "Material Diameter")
|
||||||
|
}
|
||||||
|
Loader
|
||||||
|
{
|
||||||
|
id: materialDiameterField
|
||||||
|
sourceComponent: numericTextFieldWithUnit
|
||||||
|
property var propertyProvider: materialDiameterProvider
|
||||||
|
property string unit: catalog.i18nc("@label", "mm")
|
||||||
|
property bool forceUpdateOnChange: false
|
||||||
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Nozzle size")
|
text: catalog.i18nc("@label", "Nozzle size")
|
||||||
@ -753,6 +765,16 @@ Cura.MachineAction
|
|||||||
storeIndex: manager.containerIndex
|
storeIndex: manager.containerIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.SettingPropertyProvider
|
||||||
|
{
|
||||||
|
id: materialDiameterProvider
|
||||||
|
|
||||||
|
containerStackId: Cura.MachineManager.activeMachineId
|
||||||
|
key: "material_diameter"
|
||||||
|
watchedProperties: [ "value" ]
|
||||||
|
storeIndex: manager.containerIndex
|
||||||
|
}
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
UM.SettingPropertyProvider
|
||||||
{
|
{
|
||||||
id: machineNozzleSizeProvider
|
id: machineNozzleSizeProvider
|
||||||
|
Loading…
x
Reference in New Issue
Block a user