ParticleSystem3DSection.qml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Particle System")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Start Time")
  13. tooltip: qsTr("Sets the time in milliseconds where the system starts.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 2147483647
  19. decimals: 0
  20. backendValue: backendValues.startTime
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Time")
  28. tooltip: qsTr("Sets the time in milliseconds for the system.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: 0
  33. maximumValue: 2147483647
  34. decimals: 0
  35. backendValue: backendValues.time
  36. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  37. + StudioTheme.Values.actionIndicatorWidth
  38. }
  39. ExpandingSpacer {}
  40. }
  41. PropertyLabel {
  42. text: qsTr("Running")
  43. tooltip: qsTr("Sets if system is currently running.")
  44. }
  45. SecondColumnLayout {
  46. CheckBox {
  47. id: runningCheckBox
  48. text: backendValues.running.valueToString
  49. backendValue: backendValues.running
  50. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  51. + StudioTheme.Values.actionIndicatorWidth
  52. }
  53. ExpandingSpacer {}
  54. }
  55. PropertyLabel {
  56. text: qsTr("Paused")
  57. tooltip: qsTr("Sets if system is currently paused.")
  58. }
  59. SecondColumnLayout {
  60. CheckBox {
  61. id: pausedCheckBox
  62. text: backendValues.paused.valueToString
  63. backendValue: backendValues.paused
  64. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  65. + StudioTheme.Values.actionIndicatorWidth
  66. }
  67. ExpandingSpacer {}
  68. }
  69. PropertyLabel {
  70. text: qsTr("Logging")
  71. tooltip: qsTr("Enables collection of loggingData.")
  72. }
  73. SecondColumnLayout {
  74. CheckBox {
  75. id: loggingCheckBox
  76. text: backendValues.logging.valueToString
  77. backendValue: backendValues.logging
  78. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  79. + StudioTheme.Values.actionIndicatorWidth
  80. }
  81. ExpandingSpacer {}
  82. }
  83. PropertyLabel {
  84. text: qsTr("Use Random Seed")
  85. tooltip: qsTr("Sets if particle system seed should be random or user defined.")
  86. }
  87. SecondColumnLayout {
  88. CheckBox {
  89. id: useRandomSeedCheckBox
  90. text: backendValues.useRandomSeed.valueToString
  91. backendValue: backendValues.useRandomSeed
  92. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  93. + StudioTheme.Values.actionIndicatorWidth
  94. }
  95. ExpandingSpacer {}
  96. }
  97. PropertyLabel {
  98. text: qsTr("Seed")
  99. tooltip: qsTr("Sets the seed value used for particles randomization.")
  100. }
  101. SecondColumnLayout {
  102. SpinBox {
  103. minimumValue: 0
  104. maximumValue: 2147483647
  105. decimals: 0
  106. backendValue: backendValues.seed
  107. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  108. + StudioTheme.Values.actionIndicatorWidth
  109. }
  110. ExpandingSpacer {}
  111. }
  112. }
  113. }