UM2UpgradeSelectionMachineAction.qml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright (c) 2016 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Layouts 1.1
  6. import QtQuick.Window 2.1
  7. import UM 1.2 as UM
  8. import Cura 1.0 as Cura
  9. Cura.MachineAction
  10. {
  11. anchors.fill: parent;
  12. Item
  13. {
  14. id: upgradeSelectionMachineAction
  15. anchors.fill: parent
  16. Label
  17. {
  18. id: pageTitle
  19. width: parent.width
  20. text: catalog.i18nc("@title", "Select Printer Upgrades")
  21. wrapMode: Text.WordWrap
  22. font.pointSize: 18;
  23. }
  24. Label
  25. {
  26. id: pageDescription
  27. anchors.top: pageTitle.bottom
  28. anchors.topMargin: UM.Theme.getSize("default_margin").height
  29. width: parent.width
  30. wrapMode: Text.WordWrap
  31. text: catalog.i18nc("@label","Please select any upgrades made to this Ultimaker 2.");
  32. }
  33. CheckBox
  34. {
  35. id: olssonBlockCheckBox
  36. anchors.top: pageDescription.bottom
  37. anchors.topMargin: UM.Theme.getSize("default_margin").height
  38. text: catalog.i18nc("@label", "Olsson Block")
  39. checked: manager.hasVariants
  40. onClicked: manager.hasVariants = checked
  41. Connections
  42. {
  43. target: manager
  44. onHasVariantsChanged: olssonBlockCheckBox.checked = manager.hasVariants
  45. }
  46. }
  47. UM.I18nCatalog { id: catalog; name: "cura"; }
  48. }
  49. }