ParticleShape3DSection.qml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 Shape")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Fill")
  13. tooltip: qsTr("Sets if the shape should be filled or just use the shape outlines.")
  14. }
  15. SecondColumnLayout {
  16. CheckBox {
  17. id: fillCheckBox
  18. text: backendValues.fill.valueToString
  19. backendValue: backendValues.fill
  20. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  21. + StudioTheme.Values.actionIndicatorWidth
  22. }
  23. ExpandingSpacer {}
  24. }
  25. PropertyLabel {
  26. text: qsTr("Type")
  27. tooltip: qsTr("Sets the type of the shape.")
  28. }
  29. SecondColumnLayout {
  30. ComboBox {
  31. scope: "ParticleShape3D"
  32. model: ["Cube", "Sphere", "Cylinder"]
  33. backendValue: backendValues.type
  34. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. }
  37. ExpandingSpacer {}
  38. }
  39. PropertyLabel {
  40. text: qsTr("Extents")
  41. tooltip: qsTr("Sets the extents of the shape.")
  42. }
  43. SecondColumnLayout {
  44. SpinBox {
  45. minimumValue: -9999999
  46. maximumValue: 9999999
  47. decimals: 2
  48. backendValue: backendValues.extents_x
  49. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  50. + StudioTheme.Values.actionIndicatorWidth
  51. }
  52. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  53. ControlLabel {
  54. text: "X"
  55. color: StudioTheme.Values.theme3DAxisXColor
  56. }
  57. ExpandingSpacer {}
  58. }
  59. PropertyLabel {}
  60. SecondColumnLayout {
  61. SpinBox {
  62. minimumValue: -9999999
  63. maximumValue: 9999999
  64. decimals: 2
  65. backendValue: backendValues.extents_y
  66. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  67. + StudioTheme.Values.actionIndicatorWidth
  68. }
  69. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  70. ControlLabel {
  71. text: "Y"
  72. color: StudioTheme.Values.theme3DAxisYColor
  73. }
  74. ExpandingSpacer {}
  75. }
  76. PropertyLabel {}
  77. SecondColumnLayout {
  78. SpinBox {
  79. minimumValue: -9999999
  80. maximumValue: 9999999
  81. decimals: 2
  82. backendValue: backendValues.extents_z
  83. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  84. + StudioTheme.Values.actionIndicatorWidth
  85. }
  86. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  87. ControlLabel {
  88. text: "Z"
  89. color: StudioTheme.Values.theme3DAxisZColor
  90. }
  91. ExpandingSpacer {}
  92. }
  93. }
  94. }