DataCollectionsContent.qml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 "Help us to improve Ultimaker Cura" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. UM.I18nCatalog { id: catalog; name: "cura" }
  13. Label
  14. {
  15. id: titleLabel
  16. anchors.top: parent.top
  17. anchors.horizontalCenter: parent.horizontalCenter
  18. horizontalAlignment: Text.AlignHCenter
  19. text: catalog.i18nc("@label", "Help us to improve Ultimaker Cura")
  20. color: UM.Theme.getColor("primary_button")
  21. font: UM.Theme.getFont("huge")
  22. renderType: Text.NativeRendering
  23. }
  24. // Area where the cloud contents can be put. Pictures, texts and such.
  25. Item
  26. {
  27. id: contentsArea
  28. anchors
  29. {
  30. top: titleLabel.bottom
  31. bottom: getStartedButton.top
  32. left: parent.left
  33. right: parent.right
  34. topMargin: UM.Theme.getSize("default_margin").width
  35. }
  36. Column
  37. {
  38. anchors.centerIn: parent
  39. width: parent.width
  40. spacing: UM.Theme.getSize("wide_margin").height
  41. Label
  42. {
  43. id: topLabel
  44. width: parent.width
  45. anchors.horizontalCenter: parent.horizontalCenter
  46. horizontalAlignment: Text.AlignHCenter
  47. text: catalog.i18nc("@text", "Ultimaker Cura collects anonymous data to improve print quality and user experience, including:")
  48. wrapMode: Text.WordWrap
  49. font: UM.Theme.getFont("medium")
  50. color: UM.Theme.getColor("text")
  51. renderType: Text.NativeRendering
  52. }
  53. Grid {
  54. columns: 2
  55. spacing: UM.Theme.getSize("wide_margin").height
  56. anchors.horizontalCenter: parent.horizontalCenter
  57. ImageTile
  58. {
  59. text: catalog.i18nc("@text", "Machine types")
  60. imageSource: UM.Theme.getImage("first_run_machine_types")
  61. }
  62. ImageTile
  63. {
  64. text: catalog.i18nc("@text", "Material usage")
  65. imageSource: UM.Theme.getImage("first_run_material_usage")
  66. }
  67. ImageTile
  68. {
  69. text: catalog.i18nc("@text", "Number of slices")
  70. imageSource: UM.Theme.getImage("first_run_number_slices")
  71. }
  72. ImageTile
  73. {
  74. text: catalog.i18nc("@text", "Print settings")
  75. imageSource: UM.Theme.getImage("first_run_print_settings")
  76. }
  77. }
  78. Label
  79. {
  80. id: bottomLabel
  81. width: parent.width
  82. anchors.horizontalCenter: parent.horizontalCenter
  83. horizontalAlignment: Text.AlignHCenter
  84. text:
  85. {
  86. var t = catalog.i18nc("@text", "Data collected by Ultimaker Cura will not contain any personal information.")
  87. var t2 = catalog.i18nc("@text", "More information")
  88. t += " <a href='https://notusedref'>" + t2 + "</a>"
  89. return t
  90. }
  91. textFormat: Text.RichText
  92. wrapMode: Text.WordWrap
  93. font: UM.Theme.getFont("medium")
  94. color: UM.Theme.getColor("text")
  95. linkColor: UM.Theme.getColor("text_link")
  96. onLinkActivated: CuraApplication.showMoreInformationDialogForAnonymousDataCollection()
  97. renderType: Text.NativeRendering
  98. }
  99. }
  100. }
  101. Cura.PrimaryButton
  102. {
  103. id: getStartedButton
  104. anchors.right: parent.right
  105. anchors.bottom: parent.bottom
  106. text: catalog.i18nc("@button", "Next")
  107. onClicked: base.showNextPage()
  108. }
  109. }