123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- // Copyright (c) 2019 Ultimaker B.V.
- // Cura is released under the terms of the LGPLv3 or higher.
- import QtQuick 2.10
- import QtQuick.Controls 2.3
- import UM 1.3 as UM
- import Cura 1.1 as Cura
- import "../MachineSettings"
- //
- // This component contains the content for the "Welcome" page of the welcome on-boarding process.
- //
- Row
- {
- id: base
- UM.I18nCatalog { id: catalog; name: "cura" }
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.margins: UM.Theme.getSize("default_margin").width
- property int labelWidth: 110
- property var labelFont: UM.Theme.getFont("medium")
- spacing: 10
- // =======================================
- // Left-side column for "Printer Settings"
- // =======================================
- Column
- {
- spacing: 10
- Label // Title Label
- {
- text: catalog.i18nc("@title:label", "Printer Settings")
- font: UM.Theme.getFont("medium_bold")
- }
- NumericTextFieldWithUnit // "X (Width)"
- {
- id: machineXWidthField
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_width"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "X (Width)")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- // TODO: add forceUpdateOnChangeFunction:
- }
- NumericTextFieldWithUnit // "Y (Depth)"
- {
- id: machineYDepthField
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_depth"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Y (Depth)")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- // TODO: add forceUpdateOnChangeFunction:
- }
- NumericTextFieldWithUnit // "Z (Height)"
- {
- id: machineZHeightField
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_height"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Z (Height)")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- // TODO: add forceUpdateOnChangeFunction:
- }
- ComboBoxWithOptions // "Build plate shape"
- {
- id: buildPlateShapeComboBox
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_shape"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Build plate shape")
- labelWidth: base.labelWidth
- // TODO: add forceUpdateOnChangeFunction:
- }
- SimpleCheckBox // "Origin at center"
- {
- id: originAtCenterCheckBox
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_center_is_zero"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Origin at center")
- labelFont: base.labelFont
- // TODO: add forceUpdateOnChangeFunction:
- }
- SimpleCheckBox // "Heated bed"
- {
- id: heatedBedCheckBox
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_heated_bed"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Heated bed")
- labelFont: base.labelFont
- // TODO: add forceUpdateOnChangeFunction:
- }
- ComboBoxWithOptions // "G-code flavor"
- {
- id: gcodeFlavorComboBox
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_gcode_flavor"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "G-code flavor")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- // TODO: add forceUpdateOnChangeFunction:
- // TODO: add afterOnActivate: manager.updateHasMaterialsMetadata
- }
- }
- // =======================================
- // Right-side column for "Printhead Settings"
- // =======================================
- Column
- {
- spacing: 10
- Label // Title Label
- {
- text: catalog.i18nc("@title:label", "Printhead Settings")
- font: UM.Theme.getFont("medium_bold")
- }
- PrintHeadMinMaxTextField // "X min"
- {
- id: machineXMinField
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "X min")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- axisName: "x"
- axisMinOrMax: "min"
- // TODO: add forceUpdateOnChangeFunction:
- }
- PrintHeadMinMaxTextField // "Y min"
- {
- id: machineYMinField
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Y min")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- axisName: "y"
- axisMinOrMax: "min"
- // TODO: add forceUpdateOnChangeFunction:
- }
- PrintHeadMinMaxTextField // "X max"
- {
- id: machineXMaxField
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "X max")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- axisName: "x"
- axisMinOrMax: "max"
- // TODO: add forceUpdateOnChangeFunction:
- }
- PrintHeadMinMaxTextField // "Y max"
- {
- id: machineYMaxField
- containerStackId: Cura.MachineManager.activeMachineId
- settingKey: "machine_head_with_fans_polygon"
- settingStoreIndex: 1 // TODO
- labelText: catalog.i18nc("@label", "Y max")
- labelFont: base.labelFont
- labelWidth: base.labelWidth
- unitText: catalog.i18nc("@label", "mm")
- axisName: "y"
- axisMinOrMax: "max"
- // TODO: add forceUpdateOnChangeFunction:
- }
- }
- }
|