// Copyright (c) 2018 Ultimaker B.V. // Cura is released under the terms of the LGPLv3 or higher. import QtQuick 2.10 import UM 1.6 as UM import Cura 1.6 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("default_margin").width Column { spacing: UM.Theme.getSize("default_margin").height anchors { left: parent.left right: parent.right top: parent.top margins: parent.padding } // TODO property real firstColumnWidth: Math.round(width / 3) UM.Label { text: catalog.i18nc("@label", "Profiles") font: UM.Theme.getFont("medium") } RecommendedQualityProfileSelector { width: parent.width } RecommendedResolutionSelector { width: parent.width } UM.Label { text: catalog.i18nc("@label", "Print settings") font: UM.Theme.getFont("medium") } 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 } }