AboutDialog.qml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Window 2.1
  6. import UM 1.1 as UM
  7. UM.Dialog
  8. {
  9. id: base
  10. //: About dialog title
  11. title: catalog.i18nc("@title:window","About Cura")
  12. minimumWidth: 400 * Screen.devicePixelRatio
  13. minimumHeight: 300 * Screen.devicePixelRatio
  14. width: minimumWidth
  15. height: minimumHeight
  16. //UM.I18nCatalog { id: catalog; }
  17. Image
  18. {
  19. id: logo
  20. width: parent.width * 0.75
  21. height: width * (1/4.25)
  22. source: UM.Theme.getImage("logo")
  23. sourceSize.width: width
  24. sourceSize.height: height
  25. anchors.centerIn: parent
  26. anchors.verticalCenterOffset : -(height * 0.5)
  27. UM.I18nCatalog{id: catalog; name:"cura"}
  28. }
  29. Label
  30. {
  31. id: version
  32. text: "Cura %1".arg(UM.Application.version)
  33. font: UM.Theme.getFont("large")
  34. anchors.horizontalCenter : logo.horizontalCenter
  35. anchors.horizontalCenterOffset : (logo.width * 0.25)
  36. anchors.top: logo.bottom
  37. anchors.topMargin : 5
  38. }
  39. Label
  40. {
  41. id: description
  42. width: parent.width
  43. //: About dialog application description
  44. text: catalog.i18nc("@label","End-to-end solution for fused filament 3D printing.")
  45. wrapMode: Text.WordWrap
  46. anchors.top: version.bottom
  47. anchors.topMargin : 10
  48. }
  49. Label
  50. {
  51. id: author_note
  52. width: parent.width
  53. //: About dialog application author note
  54. text: catalog.i18nc("@info:credit","Cura has been developed by Ultimaker B.V. in cooperation with the community.")
  55. wrapMode: Text.WordWrap
  56. anchors.top: description.bottom
  57. }
  58. rightButtons: Button
  59. {
  60. //: Close about dialog button
  61. text: catalog.i18nc("@action:button","Close");
  62. onClicked: base.visible = false;
  63. }
  64. }