PrintSetupSelector.qml 879 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Controls 2.0
  5. import UM 1.3 as UM
  6. import Cura 1.0 as Cura
  7. Cura.ExpandableComponent
  8. {
  9. id: printSetupSelector
  10. property string enabledText: catalog.i18nc("@label:Should be short", "On")
  11. property string disabledText: catalog.i18nc("@label:Should be short", "Off")
  12. iconSource: UM.Theme.getIcon("pencil")
  13. popupPadding: UM.Theme.getSize("default_lining").width
  14. popupSpacingY: UM.Theme.getSize("narrow_margin").width
  15. popupClosePolicy: Popup.CloseOnEscape
  16. UM.I18nCatalog
  17. {
  18. id: catalog
  19. name: "cura"
  20. }
  21. headerItem: PrintSetupSelectorHeader
  22. {
  23. anchors.fill: parent
  24. }
  25. Cura.ExtrudersModel
  26. {
  27. id: extrudersModel
  28. }
  29. popupItem: PrintSetupSelectorContents {}
  30. }