UMOUpgradeSelectionMachineAction.qml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) 2022 UltiMaker
  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.5 as UM
  6. import Cura 1.1 as Cura
  7. Cura.MachineAction
  8. {
  9. UM.I18nCatalog { id: catalog; name: "cura"; }
  10. anchors.fill: parent
  11. Item
  12. {
  13. id: upgradeSelectionMachineAction
  14. anchors.fill: parent
  15. anchors.topMargin: UM.Theme.getSize("default_margin").width * 5
  16. anchors.leftMargin: UM.Theme.getSize("default_margin").width * 4
  17. UM.Label
  18. {
  19. id: pageDescription
  20. anchors.top: parent.top
  21. anchors.topMargin: UM.Theme.getSize("default_margin").height
  22. width: parent.width
  23. wrapMode: Text.WordWrap
  24. text: catalog.i18nc("@label","Please select any upgrades made to this UltiMaker Original")
  25. font: UM.Theme.getFont("medium")
  26. }
  27. UM.CheckBox
  28. {
  29. anchors.top: pageDescription.bottom
  30. anchors.topMargin: UM.Theme.getSize("default_margin").height
  31. text: catalog.i18nc("@label", "Heated Build Plate (official kit or self-built)")
  32. checked: manager.hasHeatedBed
  33. onClicked: manager.setHeatedBed(checked)
  34. }
  35. }
  36. }