CustomSupportPanel.qml 910 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 1.2
  5. import UM 1.2 as UM
  6. import Cura 1.0 as Cura
  7. Item {
  8. id: base
  9. UM.I18nCatalog
  10. {
  11. id: catalog
  12. name: "cura"
  13. }
  14. width: childrenRect.width
  15. height: childrenRect.height
  16. Button
  17. {
  18. id: addSupportButton
  19. anchors.left: parent.left
  20. text: catalog.i18nc("@action:button", "Add support")
  21. iconSource: "add_support.svg"
  22. style: UM.Theme.styles.tool_button
  23. z: 1
  24. }
  25. Button
  26. {
  27. id: removeSupportButton
  28. anchors.left: addSupportButton.right
  29. anchors.leftMargin: UM.Theme.getSize("default_margin").width
  30. text: catalog.i18nc("@action:button", "Remove support")
  31. iconSource: "remove_support.svg"
  32. style: UM.Theme.styles.tool_button
  33. }
  34. }