UserAgreementContent.qml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. Item
  8. {
  9. Column
  10. {
  11. anchors.top: parent.top
  12. anchors.left: parent.left
  13. anchors.right: parent.right
  14. anchors.margins: 20
  15. UM.I18nCatalog { id: catalog; name: "cura" }
  16. spacing: 40
  17. // Placeholder
  18. Label { text: " " }
  19. Label
  20. {
  21. id: titleLabel
  22. anchors.horizontalCenter: parent.horizontalCenter
  23. horizontalAlignment: Text.AlignHCenter
  24. text: catalog.i18nc("@label", "User Agreement")
  25. color: UM.Theme.getColor("primary_button")
  26. font: UM.Theme.getFont("large_bold")
  27. renderType: NativeRendering
  28. }
  29. Label
  30. {
  31. width: parent.width * 2 / 3
  32. id: disclaimerLineLabel
  33. anchors.horizontalCenter: parent.horizontalCenter
  34. text: "<p><b>Disclaimer by Ultimaker</b></p>"
  35. + "<p>Please read this disclaimer carefully.</p>"
  36. + "<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>"
  37. + "<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>"
  38. textFormat: Text.RichText
  39. wrapMode: Text.WordWrap
  40. font: UM.Theme.getFont("default")
  41. renderType: NativeRendering
  42. }
  43. }
  44. Cura.PrimaryButton
  45. {
  46. id: agreeButton
  47. anchors.right: parent.right
  48. anchors.bottom: parent.bottom
  49. anchors.margins: 40
  50. text: catalog.i18nc("@button", "Agree")
  51. width: 140
  52. fixedWidthMode: true
  53. onClicked: base.showNextPage()
  54. }
  55. Cura.SecondaryButton
  56. {
  57. id: declineButton
  58. anchors.left: parent.left
  59. anchors.bottom: parent.bottom
  60. anchors.margins: 40
  61. text: catalog.i18nc("@button", "Decline and close")
  62. width: 140
  63. fixedWidthMode: true
  64. onClicked: base.showNextPage()
  65. }
  66. }