12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- // Copyright (c) 2018 Ultimaker B.V.
- // Cura is released under the terms of the LGPLv3 or higher.
- import QtQuick 2.10
- import UM 1.2 as UM
- import Cura 1.0 as Cura
- Item
- {
- id: recommendedPrintSetup
- height: childrenRect.height + 2 * padding
- property bool settingsEnabled: Cura.ExtruderManager.activeExtruderStackId || extrudersEnabledCount.properties.value == 1
- property real padding: UM.Theme.getSize("thick_margin").width
- Column
- {
- spacing: UM.Theme.getSize("wide_margin").height
- anchors
- {
- left: parent.left
- right: parent.right
- top: parent.top
- margins: parent.padding
- }
- // TODO
- property real firstColumnWidth: Math.round(width / 3)
- RecommendedQualityProfileSelector
- {
- width: parent.width
- // TODO Create a reusable component with these properties to not define them separately for each component
- labelColumnWidth: parent.firstColumnWidth
- }
- RecommendedInfillDensitySelector
- {
- width: parent.width
- // TODO Create a reusable component with these properties to not define them separately for each component
- labelColumnWidth: parent.firstColumnWidth
- }
- RecommendedSupportSelector
- {
- width: parent.width
- // TODO Create a reusable component with these properties to not define them separately for each component
- labelColumnWidth: parent.firstColumnWidth
- }
- RecommendedAdhesionSelector
- {
- width: parent.width
- // TODO Create a reusable component with these properties to not define them separately for each component
- labelColumnWidth: parent.firstColumnWidth
- }
- }
- UM.SettingPropertyProvider
- {
- id: extrudersEnabledCount
- containerStack: Cura.MachineManager.activeMachine
- key: "extruders_enabled_count"
- watchedProperties: [ "value" ]
- storeIndex: 0
- }
- }
|