SpotLightSection.qml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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("Spot Light")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Constant Fade")
  13. tooltip: qsTr("Sets the constant attenuation of the light.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 0
  18. maximumValue: 10
  19. decimals: 2
  20. stepSize: 0.1
  21. backendValue: backendValues.constantFade
  22. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. PropertyLabel {
  28. text: qsTr("Linear Fade")
  29. tooltip: qsTr("Sets the linear attenuation of the light.")
  30. }
  31. SecondColumnLayout {
  32. SpinBox {
  33. minimumValue: 0
  34. maximumValue: 10
  35. decimals: 2
  36. stepSize: 0.1
  37. backendValue: backendValues.linearFade
  38. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  39. + StudioTheme.Values.actionIndicatorWidth
  40. }
  41. ExpandingSpacer {}
  42. }
  43. PropertyLabel {
  44. text: qsTr("Quadratic Fade")
  45. tooltip: qsTr("Sets the quadratic attenuation of the light.")
  46. }
  47. SecondColumnLayout {
  48. SpinBox {
  49. minimumValue: 0
  50. maximumValue: 10
  51. decimals: 2
  52. stepSize: 0.1
  53. backendValue: backendValues.quadraticFade
  54. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  55. + StudioTheme.Values.actionIndicatorWidth
  56. }
  57. ExpandingSpacer {}
  58. }
  59. PropertyLabel {
  60. text: qsTr("Cone Angle")
  61. tooltip: qsTr("Sets the angle of the light cone.")
  62. }
  63. SecondColumnLayout {
  64. SpinBox {
  65. minimumValue: 0
  66. maximumValue: 180
  67. decimals: 2
  68. backendValue: backendValues.coneAngle
  69. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  70. + StudioTheme.Values.actionIndicatorWidth
  71. }
  72. ExpandingSpacer {}
  73. }
  74. PropertyLabel {
  75. text: qsTr("Inner Cone Angle")
  76. tooltip: qsTr("Sets the angle of the inner light cone.")
  77. }
  78. SecondColumnLayout {
  79. SpinBox {
  80. minimumValue: 0
  81. maximumValue: 180
  82. decimals: 2
  83. backendValue: backendValues.innerConeAngle
  84. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  85. + StudioTheme.Values.actionIndicatorWidth
  86. }
  87. ExpandingSpacer {}
  88. }
  89. }
  90. }