SCurveTonemapSection.qml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. Column {
  8. width: parent.width
  9. Section {
  10. caption: qsTr("Curve")
  11. width: parent.width
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Shoulder Slope")
  15. tooltip: qsTr("Set the slope of the curve shoulder.")
  16. }
  17. SecondColumnLayout {
  18. SpinBox {
  19. minimumValue: 0
  20. maximumValue: 3
  21. decimals: 2
  22. stepSize: 0.1
  23. backendValue: backendValues.shoulderSlope
  24. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  25. + StudioTheme.Values.actionIndicatorWidth
  26. }
  27. ExpandingSpacer {}
  28. }
  29. PropertyLabel {
  30. text: qsTr("Shoulder Emphasis")
  31. tooltip: qsTr("Set the emphasis of the curve shoulder.")
  32. }
  33. SecondColumnLayout {
  34. SpinBox {
  35. minimumValue: -1
  36. maximumValue: 1
  37. decimals: 2
  38. stepSize: 0.1
  39. backendValue: backendValues.shoulderEmphasis
  40. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  41. + StudioTheme.Values.actionIndicatorWidth
  42. }
  43. ExpandingSpacer {}
  44. }
  45. PropertyLabel {
  46. text: qsTr("Toe Slope")
  47. tooltip: qsTr("Set the slope of the curve toe.")
  48. }
  49. SecondColumnLayout {
  50. SpinBox {
  51. minimumValue: 0
  52. maximumValue: 3
  53. decimals: 2
  54. stepSize: 0.1
  55. backendValue: backendValues.toeSlope
  56. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  57. + StudioTheme.Values.actionIndicatorWidth
  58. }
  59. ExpandingSpacer {}
  60. }
  61. PropertyLabel {
  62. text: qsTr("Toe Emphasis")
  63. tooltip: qsTr("Set the emphasis of the curve toe.")
  64. }
  65. SecondColumnLayout {
  66. SpinBox {
  67. minimumValue: -1
  68. maximumValue: 1
  69. decimals: 2
  70. stepSize: 0.1
  71. backendValue: backendValues.toeEmphasis
  72. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  73. + StudioTheme.Values.actionIndicatorWidth
  74. }
  75. ExpandingSpacer {}
  76. }
  77. }
  78. }
  79. Section {
  80. caption: qsTr("Color")
  81. width: parent.width
  82. SectionLayout {
  83. PropertyLabel {
  84. text: qsTr("Contrast Boost")
  85. tooltip: qsTr("Set the contrast boost amount.")
  86. }
  87. SecondColumnLayout {
  88. SpinBox {
  89. minimumValue: -1
  90. maximumValue: 2
  91. decimals: 2
  92. stepSize: 0.1
  93. backendValue: backendValues.contrastBoost
  94. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  95. + StudioTheme.Values.actionIndicatorWidth
  96. }
  97. ExpandingSpacer {}
  98. }
  99. PropertyLabel {
  100. text: qsTr("Saturation Level")
  101. tooltip: qsTr("Set the color saturation level.")
  102. }
  103. SecondColumnLayout {
  104. SpinBox {
  105. minimumValue: 0
  106. maximumValue: 2
  107. decimals: 2
  108. stepSize: 0.1
  109. backendValue: backendValues.saturationLevel
  110. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  111. + StudioTheme.Values.actionIndicatorWidth
  112. }
  113. ExpandingSpacer {}
  114. }
  115. PropertyLabel {
  116. text: qsTr("Gamma")
  117. tooltip: qsTr("Set the gamma value.")
  118. }
  119. SecondColumnLayout {
  120. SpinBox {
  121. minimumValue: 0.1
  122. maximumValue: 8
  123. decimals: 2
  124. stepSize: 0.1
  125. backendValue: backendValues.gammaValue
  126. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  127. + StudioTheme.Values.actionIndicatorWidth
  128. }
  129. ExpandingSpacer {}
  130. }
  131. PropertyLabel {
  132. text: qsTr("Use Exposure")
  133. tooltip: qsTr("Specifies if the exposure or white point should be used.")
  134. }
  135. SecondColumnLayout {
  136. CheckBox {
  137. text: backendValues.useExposure.valueToString
  138. backendValue: backendValues.useExposure
  139. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  140. + StudioTheme.Values.actionIndicatorWidth
  141. }
  142. ExpandingSpacer {}
  143. }
  144. PropertyLabel {
  145. text: qsTr("White Point")
  146. tooltip: qsTr("Set the white point value.")
  147. }
  148. SecondColumnLayout {
  149. SpinBox {
  150. minimumValue: 0.01
  151. maximumValue: 128
  152. decimals: 2
  153. backendValue: backendValues.whitePoint
  154. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  155. + StudioTheme.Values.actionIndicatorWidth
  156. }
  157. ExpandingSpacer {}
  158. }
  159. PropertyLabel {
  160. text: qsTr("Exposure")
  161. tooltip: qsTr("Set the exposure value.")
  162. }
  163. SecondColumnLayout {
  164. SpinBox {
  165. minimumValue: 0.01
  166. maximumValue: 16
  167. decimals: 2
  168. backendValue: backendValues.exposureValue
  169. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  170. + StudioTheme.Values.actionIndicatorWidth
  171. }
  172. ExpandingSpacer {}
  173. }
  174. }
  175. }
  176. }