HeightFieldShapeSection.qml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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("Height Field Shape")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Source")
  13. tooltip: qsTr("Sets the location of an image file containing the heightmap data.")
  14. }
  15. SecondColumnLayout {
  16. UrlChooser {
  17. backendValue: backendValues.source
  18. }
  19. ExpandingSpacer {}
  20. }
  21. PropertyLabel {
  22. text: qsTr("Extents")
  23. tooltip: qsTr("The extents of the height field shape in the X, Y and Z directions.")
  24. }
  25. SecondColumnLayout {
  26. SpinBox {
  27. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  28. + StudioTheme.Values.actionIndicatorWidth
  29. minimumValue: 0
  30. maximumValue: 9999999
  31. decimals: 3
  32. backendValue: backendValues.extents_x
  33. }
  34. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  35. ControlLabel {
  36. text: "X"
  37. color: StudioTheme.Values.theme3DAxisXColor
  38. }
  39. ExpandingSpacer {}
  40. }
  41. PropertyLabel {
  42. }
  43. SecondColumnLayout {
  44. SpinBox {
  45. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  46. + StudioTheme.Values.actionIndicatorWidth
  47. minimumValue: 0
  48. maximumValue: 9999999
  49. decimals: 3
  50. backendValue: backendValues.extents_y
  51. }
  52. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  53. ControlLabel {
  54. text: "Y"
  55. color: StudioTheme.Values.theme3DAxisYColor
  56. }
  57. ExpandingSpacer {}
  58. }
  59. PropertyLabel {
  60. }
  61. SecondColumnLayout {
  62. SpinBox {
  63. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  64. + StudioTheme.Values.actionIndicatorWidth
  65. minimumValue: 0
  66. maximumValue: 9999999
  67. decimals: 3
  68. backendValue: backendValues.extents_z
  69. }
  70. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  71. ControlLabel {
  72. text: "Z"
  73. color: StudioTheme.Values.theme3DAxisZColor
  74. }
  75. ExpandingSpacer {}
  76. }
  77. }
  78. }