mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 22 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue