123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- // Copyright (c) 2018 Ultimaker B.V.
- // Cura is released under the terms of the LGPLv3 or higher.
- import QtQuick 2.7
- import QtQuick.Controls 1.4
- import QtQuick.Controls.Styles 1.4
- import UM 1.2 as UM
- import Cura 1.0 as Cura
- Item
- {
- id: recommendedPrintSetup
- height: childrenRect.height + 2 * padding
- property Action configureSettings
- property bool settingsEnabled: Cura.ExtruderManager.activeExtruderStackId || extrudersEnabledCount.properties.value == 1
- property real padding: UM.Theme.getSize("thick_margin").width
- UM.I18nCatalog
- {
- id: catalog
- name: "cura"
- }
- Column
- {
- width: parent.width - 2 * parent.padding
- 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
- }
- }
|