UserAgreementContent.qml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 UM 1.3 as UM
  6. import Cura 1.1 as Cura
  7. //
  8. // This component contains the content for the "User Agreement" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. Column
  13. {
  14. anchors.top: parent.top
  15. anchors.left: parent.left
  16. anchors.right: parent.right
  17. anchors.margins: 20
  18. UM.I18nCatalog { id: catalog; name: "cura" }
  19. spacing: 40
  20. // Placeholder
  21. Label { text: " " }
  22. Label
  23. {
  24. id: titleLabel
  25. anchors.horizontalCenter: parent.horizontalCenter
  26. horizontalAlignment: Text.AlignHCenter
  27. text: catalog.i18nc("@label", "User Agreement")
  28. color: UM.Theme.getColor("primary_button")
  29. font: UM.Theme.getFont("large_bold")
  30. renderType: Text.NativeRendering
  31. }
  32. Label
  33. {
  34. width: parent.width * 2 / 3
  35. id: disclaimerLineLabel
  36. anchors.horizontalCenter: parent.horizontalCenter
  37. text: "<p><b>Disclaimer by Ultimaker</b></p>"
  38. + "<p>Please read this disclaimer carefully.</p>"
  39. + "<p>Except when otherwise stated in writing, Ultimaker provides any Ultimaker software or third party software \"As is\" without warranty of any kind. The entire risk as to the quality and perfoemance of Ultimaker software is with you.</p>"
  40. + "<p>Unless required by applicable law or agreed to in writing, in no event will Ultimaker be liable to you for damages, including any general, special, incidental, or consequential damages arising out of the use or inability to use any Ultimaker software or third party software.</p>"
  41. textFormat: Text.RichText
  42. wrapMode: Text.WordWrap
  43. font: UM.Theme.getFont("default")
  44. renderType: Text.NativeRendering
  45. }
  46. }
  47. Cura.PrimaryButton
  48. {
  49. id: agreeButton
  50. anchors.right: parent.right
  51. anchors.bottom: parent.bottom
  52. anchors.margins: 40
  53. text: catalog.i18nc("@button", "Agree")
  54. width: 140
  55. fixedWidthMode: true
  56. onClicked: base.showNextPage()
  57. }
  58. Cura.SecondaryButton
  59. {
  60. id: declineButton
  61. anchors.left: parent.left
  62. anchors.bottom: parent.bottom
  63. anchors.margins: 40
  64. text: catalog.i18nc("@button", "Decline and close")
  65. width: 140
  66. fixedWidthMode: true
  67. onClicked: base.showNextPage() // TODO: quit
  68. }
  69. }