TestContent.qml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.3 as UM
  6. import Cura 1.1 as Cura
  7. import "../MachineSettings"
  8. //
  9. // This component contains the content for the "Welcome" page of the welcome on-boarding process.
  10. //
  11. Row
  12. {
  13. id: base
  14. UM.I18nCatalog { id: catalog; name: "cura" }
  15. property int labelWidth: 100
  16. // Left-side column for "Printer Settings"
  17. Column
  18. {
  19. spacing: 10
  20. Label
  21. {
  22. text: catalog.i18nc("@title:label", "Printer Settings")
  23. font: UM.Theme.getFont("medium_bold")
  24. }
  25. NumericTextFieldWithUnit // "X (Width)"
  26. {
  27. id: machineXWidthField
  28. containerStackId: Cura.MachineManager.activeMachineId
  29. settingKey: "machine_width"
  30. settingStoreIndex: 1 // TODO
  31. labelText: catalog.i18nc("@label", "X (Width)")
  32. labelWidth: base.labelWidth
  33. unitText: catalog.i18nc("@label", "mm")
  34. // TODO: add forceUpdateOnChangeFunction:
  35. }
  36. NumericTextFieldWithUnit // "Y (Depth)"
  37. {
  38. id: machineYDepthField
  39. containerStackId: Cura.MachineManager.activeMachineId
  40. settingKey: "machine_depth"
  41. settingStoreIndex: 1 // TODO
  42. labelText: catalog.i18nc("@label", "Y (Depth)")
  43. labelWidth: base.labelWidth
  44. unitText: catalog.i18nc("@label", "mm")
  45. // TODO: add forceUpdateOnChangeFunction:
  46. }
  47. NumericTextFieldWithUnit // "Z (Height)"
  48. {
  49. id: machineZHeightField
  50. containerStackId: Cura.MachineManager.activeMachineId
  51. settingKey: "machine_height"
  52. settingStoreIndex: 1 // TODO
  53. labelText: catalog.i18nc("@label", "Z (Height)")
  54. labelWidth: base.labelWidth
  55. unitText: catalog.i18nc("@label", "mm")
  56. // TODO: add forceUpdateOnChangeFunction:
  57. }
  58. ComboBoxWithOptions // "Build plate shape"
  59. {
  60. id: buildPlateShapeComboBox
  61. containerStackId: Cura.MachineManager.activeMachineId
  62. settingKey: "machine_shape"
  63. settingStoreIndex: 1 // TODO
  64. labelText: catalog.i18nc("@label", "Build plate shape")
  65. labelWidth: base.labelWidth
  66. // TODO: add forceUpdateOnChangeFunction:
  67. }
  68. SimpleCheckBox // "Origin at center"
  69. {
  70. id: originAtCenterCheckBox
  71. containerStackId: Cura.MachineManager.activeMachineId
  72. settingKey: "machine_center_is_zero"
  73. settingStoreIndex: 1 // TODO
  74. labelText: catalog.i18nc("@label", "Origin at center")
  75. // TODO: add forceUpdateOnChangeFunction:
  76. }
  77. SimpleCheckBox // "Heated bed"
  78. {
  79. id: heatedBedCheckBox
  80. containerStackId: Cura.MachineManager.activeMachineId
  81. settingKey: "machine_heated_bed"
  82. settingStoreIndex: 1 // TODO
  83. labelText: catalog.i18nc("@label", "Heated bed")
  84. // TODO: add forceUpdateOnChangeFunction:
  85. }
  86. ComboBoxWithOptions // "G-code flavor"
  87. {
  88. id: gcodeFlavorComboBox
  89. containerStackId: Cura.MachineManager.activeMachineId
  90. settingKey: "machine_gcode_flavor"
  91. settingStoreIndex: 1 // TODO
  92. labelText: catalog.i18nc("@label", "G-code flavor")
  93. labelWidth: base.labelWidth
  94. // TODO: add forceUpdateOnChangeFunction:
  95. // TODO: add afterOnActivate: manager.updateHasMaterialsMetadata
  96. }
  97. }
  98. // Right-side column for "Printhead Settings"
  99. Column
  100. {
  101. spacing: 10
  102. Label
  103. {
  104. text: catalog.i18nc("@title:label", "Printhead Settings")
  105. font: UM.Theme.getFont("medium_bold")
  106. }
  107. }
  108. }