OrthographicCameraSection.qml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. width: parent.width
  9. caption: qsTr("Orthographic Camera")
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Clip Near")
  13. tooltip: qsTr("Sets the near value of the camera view frustum.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: -9999999
  18. maximumValue: 9999999
  19. decimals: 0
  20. backendValue: backendValues.clipNear
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Clip Far")
  28. tooltip: qsTr("Sets the far value of the camera view frustum.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: -9999999
  33. maximumValue: 9999999
  34. decimals: 0
  35. stepSize: 100
  36. backendValue: backendValues.clipFar
  37. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  38. + StudioTheme.Values.actionIndicatorWidth
  39. }
  40. ExpandingSpacer {}
  41. }
  42. PropertyLabel {
  43. text: qsTr("Horizontal Magnification")
  44. tooltip: qsTr("Sets the horizontal magnification of the OrthographicCamera's frustum.")
  45. }
  46. SecondColumnLayout {
  47. SpinBox {
  48. minimumValue: -9999999
  49. maximumValue: 9999999
  50. decimals: 2
  51. backendValue: backendValues.horizontalMagnification
  52. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  53. + StudioTheme.Values.actionIndicatorWidth
  54. }
  55. ExpandingSpacer {}
  56. }
  57. PropertyLabel {
  58. text: qsTr("Vertical Magnification")
  59. tooltip: qsTr("Sets the vertical magnification of the OrthographicCamera's frustum.")
  60. }
  61. SecondColumnLayout {
  62. SpinBox {
  63. minimumValue: -9999999
  64. maximumValue: 9999999
  65. decimals: 2
  66. backendValue: backendValues.verticalMagnification
  67. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  68. + StudioTheme.Values.actionIndicatorWidth
  69. }
  70. ExpandingSpacer {}
  71. }
  72. }
  73. }