PrinterMenu.qml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 2.2
  5. import QtQuick.Controls.Styles 2.2
  6. import UM 1.2 as UM
  7. import Cura 1.0 as Cura
  8. Menu
  9. {
  10. id: menu
  11. // TODO Enable custom style to the menu
  12. // style: MenuStyle
  13. // {
  14. // frame: Rectangle
  15. // {
  16. // color: "white"
  17. // }
  18. // }
  19. MenuItem
  20. {
  21. text: catalog.i18nc("@label:category menu label", "Network enabled printers")
  22. enabled: false
  23. visible: networkPrinterMenu.count > 0
  24. }
  25. NetworkPrinterMenu
  26. {
  27. id: networkPrinterMenu
  28. }
  29. MenuSeparator
  30. {
  31. visible: networkPrinterMenu.count > 0
  32. }
  33. MenuItem
  34. {
  35. text: catalog.i18nc("@label:category menu label", "Local printers")
  36. enabled: false
  37. visible: localPrinterMenu.count > 0
  38. }
  39. LocalPrinterMenu
  40. {
  41. id: localPrinterMenu
  42. }
  43. ExclusiveGroup { id: group; }
  44. MenuSeparator
  45. {
  46. visible: localPrinterMenu.count > 0
  47. }
  48. MenuItem { action: Cura.Actions.addMachine; }
  49. MenuItem { action: Cura.Actions.configureMachines; }
  50. }