BrushStrokesSection.qml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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("Noise")
  11. width: parent.width
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Noise Sample Texture")
  15. tooltip: qsTr("Defines a texture for noise samples.")
  16. }
  17. SecondColumnLayout {
  18. ItemFilterComboBox {
  19. typeFilter: "QtQuick3D.Texture"
  20. backendValue: backendValues.noiseSample_texture
  21. defaultItem: qsTr("Default")
  22. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  23. + StudioTheme.Values.actionIndicatorWidth
  24. }
  25. ExpandingSpacer {}
  26. }
  27. }
  28. }
  29. Section {
  30. caption: qsTr("Brush")
  31. width: parent.width
  32. SectionLayout {
  33. PropertyLabel {
  34. text: qsTr("Length")
  35. tooltip: qsTr("Length of the brush.")
  36. }
  37. SecondColumnLayout {
  38. SpinBox {
  39. minimumValue: 0
  40. maximumValue: 3
  41. decimals: 2
  42. stepSize: 0.1
  43. backendValue: backendValues.brushLength
  44. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  45. + StudioTheme.Values.actionIndicatorWidth
  46. }
  47. ExpandingSpacer {}
  48. }
  49. PropertyLabel {
  50. text: qsTr("Size")
  51. tooltip: qsTr("Size of the brush.")
  52. }
  53. SecondColumnLayout {
  54. SpinBox {
  55. minimumValue: 10
  56. maximumValue: 200
  57. decimals: 0
  58. backendValue: backendValues.brushSize
  59. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  60. + StudioTheme.Values.actionIndicatorWidth
  61. }
  62. ExpandingSpacer {}
  63. }
  64. PropertyLabel {
  65. text: qsTr("Angle")
  66. tooltip: qsTr("Angle of the brush")
  67. }
  68. SecondColumnLayout {
  69. SpinBox {
  70. minimumValue: 0
  71. maximumValue: 360
  72. decimals: 0
  73. backendValue: backendValues.brushAngle
  74. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  75. + StudioTheme.Values.actionIndicatorWidth
  76. }
  77. ExpandingSpacer {}
  78. }
  79. }
  80. }
  81. }