TargetDirection3DSection.qml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 Target Direction")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Position")
  13. tooltip: qsTr("Sets the position for particles target.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: -9999999
  18. maximumValue: 9999999
  19. decimals: 2
  20. backendValue: backendValues.position_x
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  25. ControlLabel {
  26. text: "X"
  27. color: StudioTheme.Values.theme3DAxisXColor
  28. }
  29. ExpandingSpacer {}
  30. }
  31. PropertyLabel {}
  32. SecondColumnLayout {
  33. SpinBox {
  34. minimumValue: -9999999
  35. maximumValue: 9999999
  36. decimals: 2
  37. backendValue: backendValues.position_y
  38. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  39. + StudioTheme.Values.actionIndicatorWidth
  40. }
  41. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  42. ControlLabel {
  43. text: "Y"
  44. color: StudioTheme.Values.theme3DAxisYColor
  45. }
  46. ExpandingSpacer {}
  47. }
  48. PropertyLabel {}
  49. SecondColumnLayout {
  50. SpinBox {
  51. minimumValue: -9999999
  52. maximumValue: 9999999
  53. decimals: 2
  54. backendValue: backendValues.position_z
  55. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  56. + StudioTheme.Values.actionIndicatorWidth
  57. }
  58. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  59. ControlLabel {
  60. text: "Z"
  61. color: StudioTheme.Values.theme3DAxisZColor
  62. }
  63. ExpandingSpacer {}
  64. }
  65. PropertyLabel {
  66. text: qsTr("Position Variation")
  67. tooltip: qsTr("Sets the position variation for particles target.")
  68. }
  69. SecondColumnLayout {
  70. SpinBox {
  71. minimumValue: -9999999
  72. maximumValue: 9999999
  73. decimals: 2
  74. backendValue: backendValues.positionVariation_x
  75. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  76. + StudioTheme.Values.actionIndicatorWidth
  77. }
  78. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  79. ControlLabel {
  80. text: "X"
  81. color: StudioTheme.Values.theme3DAxisXColor
  82. }
  83. ExpandingSpacer {}
  84. }
  85. PropertyLabel {}
  86. SecondColumnLayout {
  87. SpinBox {
  88. minimumValue: -9999999
  89. maximumValue: 9999999
  90. decimals: 2
  91. backendValue: backendValues.positionVariation_y
  92. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  93. + StudioTheme.Values.actionIndicatorWidth
  94. }
  95. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  96. ControlLabel {
  97. text: "Y"
  98. color: StudioTheme.Values.theme3DAxisYColor
  99. }
  100. ExpandingSpacer {}
  101. }
  102. PropertyLabel {}
  103. SecondColumnLayout {
  104. SpinBox {
  105. minimumValue: -9999999
  106. maximumValue: 9999999
  107. decimals: 2
  108. backendValue: backendValues.positionVariation_z
  109. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  110. + StudioTheme.Values.actionIndicatorWidth
  111. }
  112. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  113. ControlLabel {
  114. text: "Z"
  115. color: StudioTheme.Values.theme3DAxisZColor
  116. }
  117. ExpandingSpacer {}
  118. }
  119. PropertyLabel {
  120. text: qsTr("Normalized")
  121. tooltip: qsTr("Sets if the distance to position should be considered as normalized or not.")
  122. }
  123. SecondColumnLayout {
  124. CheckBox {
  125. id: normalizedCheckBox
  126. text: backendValues.normalized.valueToString
  127. backendValue: backendValues.normalized
  128. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  129. + StudioTheme.Values.actionIndicatorWidth
  130. }
  131. ExpandingSpacer {}
  132. }
  133. PropertyLabel {
  134. text: qsTr("Magnitude")
  135. tooltip: qsTr("This property defines the magnitude in position change per second.")
  136. }
  137. SecondColumnLayout {
  138. SpinBox {
  139. minimumValue: -999999
  140. maximumValue: 999999
  141. decimals: 2
  142. backendValue: backendValues.magnitude
  143. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  144. + StudioTheme.Values.actionIndicatorWidth
  145. }
  146. }
  147. PropertyLabel {
  148. text: qsTr("Magnitude Variation")
  149. tooltip: qsTr("Sets the magnitude variation in position change per second.")
  150. }
  151. SecondColumnLayout {
  152. SpinBox {
  153. minimumValue: -999999
  154. maximumValue: 999999
  155. decimals: 2
  156. backendValue: backendValues.magnitudeVariation
  157. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  158. + StudioTheme.Values.actionIndicatorWidth
  159. }
  160. }
  161. }
  162. }