123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- // 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" }
- property int labelWidth: 100
- // Left-side column for "Printer Settings"
- Column
- {
- spacing: 10
- 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)")
- 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)")
- 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)")
- 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")
- // 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")
- // 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")
- labelWidth: base.labelWidth
- // TODO: add forceUpdateOnChangeFunction:
- // TODO: add afterOnActivate: manager.updateHasMaterialsMetadata
- }
- }
- // Right-side column for "Printhead Settings"
- Column
- {
- spacing: 10
- Label
- {
- text: catalog.i18nc("@title:label", "Printhead Settings")
- font: UM.Theme.getFont("medium_bold")
- }
- }
- }
|