AxisHelperSection.qml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // Copyright (C) 2022 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. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("Axis Helper")
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Axis Lines")
  15. tooltip: qsTr("Show colored axis indicator lines.")
  16. }
  17. SecondColumnLayout {
  18. CheckBox {
  19. text: qsTr("Enabled")
  20. backendValue: backendValues.enableAxisLines
  21. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("XY Grid")
  28. tooltip: qsTr("Show grid on XY plane.")
  29. }
  30. SecondColumnLayout {
  31. CheckBox {
  32. text: qsTr("Enabled")
  33. backendValue: backendValues.enableXYGrid
  34. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  35. + StudioTheme.Values.actionIndicatorWidth
  36. }
  37. ExpandingSpacer {}
  38. }
  39. PropertyLabel {
  40. text: qsTr("XZ Grid")
  41. tooltip: qsTr("Show grid on XZ plane.")
  42. }
  43. SecondColumnLayout {
  44. CheckBox {
  45. text: qsTr("Enabled")
  46. backendValue: backendValues.enableXZGrid
  47. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  48. + StudioTheme.Values.actionIndicatorWidth
  49. }
  50. ExpandingSpacer {}
  51. }
  52. PropertyLabel {
  53. text: qsTr("YZ Grid")
  54. tooltip: qsTr("Show grid on YZ plane.")
  55. }
  56. SecondColumnLayout {
  57. CheckBox {
  58. text: qsTr("Enabled")
  59. backendValue: backendValues.enableYZGrid
  60. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  61. + StudioTheme.Values.actionIndicatorWidth
  62. }
  63. ExpandingSpacer {}
  64. }
  65. PropertyLabel {
  66. text: qsTr("Grid Opacity")
  67. tooltip: qsTr("Sets the opacity of the visible grids.")
  68. }
  69. SecondColumnLayout {
  70. SpinBox {
  71. minimumValue: 0
  72. maximumValue: 1
  73. decimals: 2
  74. stepSize: 0.1
  75. backendValue: backendValues.gridOpacity
  76. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  77. + StudioTheme.Values.actionIndicatorWidth
  78. }
  79. ExpandingSpacer {}
  80. }
  81. PropertyLabel {
  82. text: qsTr("Grid Color")
  83. tooltip: qsTr("Sets the color of the visible grids.")
  84. }
  85. ColorEditor {
  86. backendValue: backendValues.gridColor
  87. supportGradient: false
  88. }
  89. }
  90. }
  91. }