UserAgreement.qml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.1
  4. import QtQuick.Controls 1.3
  5. import QtQuick.Layouts 1.1
  6. import QtQuick.Window 2.1
  7. import UM 1.1 as UM
  8. UM.Dialog
  9. {
  10. id: baseDialog
  11. minimumWidth: Math.floor(UM.Theme.getSize("modal_window_minimum").width * 0.75)
  12. minimumHeight: Math.floor(UM.Theme.getSize("modal_window_minimum").height * 0.5)
  13. width: minimumWidth
  14. height: minimumHeight
  15. title: "User Agreement"
  16. TextArea
  17. {
  18. anchors.top: parent.top
  19. width: parent.width
  20. anchors.bottom: buttonRow.top
  21. text: ' <center><h3>DISCLAIMER BY ULTIMAKER</h3></center>
  22. <p>PLEASE READ THIS DISCLAIMER CAREFULLY.</p>
  23. <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 PERFORMANCE OF ULTIMAKER SOFTWARE IS WITH YOU.</p>
  24. <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>
  25. '
  26. readOnly: true;
  27. textFormat: TextEdit.RichText
  28. }
  29. Item
  30. {
  31. id: buttonRow
  32. anchors.bottom: parent.bottom
  33. width: parent.width
  34. anchors.bottomMargin: UM.Theme.getSize("default_margin").height
  35. Button
  36. {
  37. anchors.right: parent.right
  38. text: "I understand and agree"
  39. onClicked: {
  40. manager.agreed
  41. }
  42. }
  43. Button
  44. {
  45. anchors.left: parent.left
  46. text: "I don't agree"
  47. onClicked: {
  48. manager.disagreed
  49. }
  50. }
  51. }
  52. }