mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Start enabling some material management things
This commit is contained in:
parent
0270aecdc3
commit
47079dc2dd
1 changed files with 14 additions and 6 deletions
|
@ -13,6 +13,7 @@ UM.ManagementPage
|
||||||
id: base;
|
id: base;
|
||||||
|
|
||||||
title: catalog.i18nc("@title:tab", "Materials");
|
title: catalog.i18nc("@title:tab", "Materials");
|
||||||
|
addText: catalog.i18nc("@action:button", "Duplicate")
|
||||||
|
|
||||||
model: UM.InstanceContainersModel
|
model: UM.InstanceContainersModel
|
||||||
{
|
{
|
||||||
|
@ -33,6 +34,8 @@ UM.ManagementPage
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sectionProperty: "brand"
|
||||||
}
|
}
|
||||||
|
|
||||||
activeId: Cura.MachineManager.activeMaterialId
|
activeId: Cura.MachineManager.activeMaterialId
|
||||||
|
@ -45,13 +48,19 @@ UM.ManagementPage
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
addEnabled: false
|
onActivateObject: Cura.MachineManager.setActiveMaterial(currentItem.id)
|
||||||
removeEnabled: false
|
|
||||||
renameEnabled: false
|
|
||||||
|
|
||||||
scrollviewCaption: " "
|
activateEnabled: currentItem != null ? currentItem.id != Cura.MachineManager.activeMaterialId : false;
|
||||||
|
addEnabled: currentItem != null;
|
||||||
|
removeEnabled: currentItem != null ? !currentItem.readOnly : false;
|
||||||
|
renameEnabled: currentItem != null ? !currentItem.readOnly : false;
|
||||||
|
|
||||||
|
scrollviewCaption: "Printer: %1, Nozzle: %2".arg(Cura.MachineManager.activeMachineName).arg(Cura.MachineManager.activeVariantName)
|
||||||
detailsVisible: true
|
detailsVisible: true
|
||||||
|
|
||||||
|
section.property: "section"
|
||||||
|
section.delegate: Label { text: section }
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
UM.I18nCatalog { id: catalog; name: "cura"; }
|
UM.I18nCatalog { id: catalog; name: "cura"; }
|
||||||
|
|
||||||
|
@ -91,6 +100,7 @@ UM.ManagementPage
|
||||||
editingEnabled: editButton.checked;
|
editingEnabled: editButton.checked;
|
||||||
|
|
||||||
properties: materialProperties
|
properties: materialProperties
|
||||||
|
containerId: base.currentItem.id
|
||||||
}
|
}
|
||||||
|
|
||||||
QtObject
|
QtObject
|
||||||
|
@ -106,9 +116,7 @@ UM.ManagementPage
|
||||||
property color color_code: "yellow";
|
property color color_code: "yellow";
|
||||||
|
|
||||||
property real density: 0.0;
|
property real density: 0.0;
|
||||||
onDensityChanged: console.log(density);
|
|
||||||
property real diameter: 0.0;
|
property real diameter: 0.0;
|
||||||
onDiameterChanged: console.log(diameter);
|
|
||||||
|
|
||||||
property real spool_cost: 0.0;
|
property real spool_cost: 0.0;
|
||||||
property real spool_weight: 0.0;
|
property real spool_weight: 0.0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue