FrustumCameraSection.qml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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("Frustum Camera")
  9. SectionLayout {
  10. PropertyLabel {
  11. text: qsTr("Top")
  12. tooltip: qsTr("Sets the top plane of the camera view frustum.")
  13. }
  14. SecondColumnLayout {
  15. SpinBox {
  16. minimumValue: -9999999
  17. maximumValue: 9999999
  18. decimals: 0
  19. backendValue: backendValues.top
  20. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  21. + StudioTheme.Values.actionIndicatorWidth
  22. }
  23. ExpandingSpacer {}
  24. }
  25. PropertyLabel {
  26. text: qsTr("Bottom")
  27. tooltip: qsTr("Sets the bottom plane of the camera view frustum.")
  28. }
  29. SecondColumnLayout {
  30. SpinBox {
  31. minimumValue: -9999999
  32. maximumValue: 9999999
  33. decimals: 0
  34. backendValue: backendValues.bottom
  35. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  36. + StudioTheme.Values.actionIndicatorWidth
  37. }
  38. ExpandingSpacer {}
  39. }
  40. PropertyLabel {
  41. text: qsTr("Right")
  42. tooltip: qsTr("Sets the right plane of the camera view frustum.")
  43. }
  44. SecondColumnLayout {
  45. SpinBox {
  46. minimumValue: -9999999
  47. maximumValue: 9999999
  48. decimals: 0
  49. backendValue: backendValues.right
  50. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  51. + StudioTheme.Values.actionIndicatorWidth
  52. }
  53. ExpandingSpacer {}
  54. }
  55. PropertyLabel {
  56. text: qsTr("Left")
  57. tooltip: qsTr("Sets the left plane of the camera view frustum.")
  58. }
  59. SecondColumnLayout {
  60. SpinBox {
  61. minimumValue: -9999999
  62. maximumValue: 9999999
  63. decimals: 0
  64. backendValue: backendValues.left
  65. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  66. + StudioTheme.Values.actionIndicatorWidth
  67. }
  68. ExpandingSpacer {}
  69. }
  70. }
  71. }