WelcomeDialog.qml 827 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 QtQuick.Window 2.2
  6. import UM 1.3 as UM
  7. import Cura 1.1 as Cura
  8. Window
  9. {
  10. UM.I18nCatalog { id: catalog; name: "cura" }
  11. title: catalog.i18nc("@title", "Welcome to Ultimaker Cura")
  12. modality: Qt.ApplicationModal
  13. flags: Qt.Window | Qt.FramelessWindowHint
  14. width: 580 // TODO
  15. height: 600 // TODO
  16. color: "transparent"
  17. property alias currentStep: stepPanel.currentStep
  18. StepPanel
  19. {
  20. id: stepPanel
  21. currentStep: 0
  22. model: CuraApplication.getWelcomePagesModel()
  23. }
  24. // Close this dialog when there's no more page to show
  25. Connections
  26. {
  27. target: stepPanel
  28. onPassLastPage: close()
  29. }
  30. }