UM2UpgradeSelectionMachineAction.qml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. 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. Label
  18. {
  19. id: pageDescription
  20. anchors.top: pageTitle.bottom
  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 2.")
  25. font: UM.Theme.getFont("medium")
  26. renderType: Text.NativeRendering
  27. }
  28. Cura.CheckBox
  29. {
  30. id: olssonBlockCheckBox
  31. anchors.top: pageDescription.bottom
  32. anchors.topMargin: UM.Theme.getSize("default_margin").height
  33. height: UM.Theme.getSize("setting_control").height
  34. text: catalog.i18nc("@label", "Olsson Block")
  35. checked: manager.hasVariants
  36. onClicked: manager.hasVariants = checked
  37. Connections
  38. {
  39. target: manager
  40. onHasVariantsChanged: olssonBlockCheckBox.checked = manager.hasVariants
  41. }
  42. }
  43. }
  44. }