BoxShapeSection.qml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Copyright (C) 2023 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("Box Shape")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Extents")
  13. tooltip: qsTr("The extents of the box shape in the X, Y and Z directions.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  18. + StudioTheme.Values.actionIndicatorWidth
  19. minimumValue: 0
  20. maximumValue: 9999999
  21. decimals: 3
  22. backendValue: backendValues.extents_x
  23. }
  24. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  25. ControlLabel {
  26. text: "X"
  27. color: StudioTheme.Values.theme3DAxisXColor
  28. }
  29. ExpandingSpacer {}
  30. }
  31. PropertyLabel {
  32. }
  33. SecondColumnLayout {
  34. SpinBox {
  35. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  36. + StudioTheme.Values.actionIndicatorWidth
  37. minimumValue: 0
  38. maximumValue: 9999999
  39. decimals: 3
  40. backendValue: backendValues.extents_y
  41. }
  42. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  43. ControlLabel {
  44. text: "Y"
  45. color: StudioTheme.Values.theme3DAxisYColor
  46. }
  47. ExpandingSpacer {}
  48. }
  49. PropertyLabel {
  50. }
  51. SecondColumnLayout {
  52. SpinBox {
  53. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  54. + StudioTheme.Values.actionIndicatorWidth
  55. minimumValue: 0
  56. maximumValue: 9999999
  57. decimals: 3
  58. backendValue: backendValues.extents_z
  59. }
  60. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  61. ControlLabel {
  62. text: "Z"
  63. color: StudioTheme.Values.theme3DAxisZColor
  64. }
  65. ExpandingSpacer {}
  66. }
  67. }
  68. }