2023-08-22 17:05:28 +03:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
|
|
|
|
import QtQuick
|
2023-09-05 18:03:05 +03:00
|
|
|
import QtQuick.Layouts
|
2024-02-01 14:27:45 +02:00
|
|
|
import HelperWidgets as HelperWidgets
|
2023-08-22 17:05:28 +03:00
|
|
|
import StudioControls as StudioControls
|
2024-01-16 12:30:29 +01:00
|
|
|
import StudioTheme as StudioTheme
|
2024-01-26 14:55:50 +02:00
|
|
|
import EffectComposerBackend
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
RowLayout {
|
2023-08-22 17:05:28 +03:00
|
|
|
width: parent.width
|
2023-09-05 18:03:05 +03:00
|
|
|
spacing: 0
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2024-02-01 14:27:45 +02:00
|
|
|
HelperWidgets.DoubleSpinBox {
|
2023-09-05 18:03:05 +03:00
|
|
|
id: vX
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2024-03-19 14:52:20 +02:00
|
|
|
// value: uniformValue binding can get overwritten by normal operation of the control
|
|
|
|
|
property double resetValue: uniformValue.x
|
|
|
|
|
onResetValueChanged: value = resetValue
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 30
|
|
|
|
|
Layout.maximumWidth: 60
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
spinBoxIndicatorVisible: false
|
|
|
|
|
inputHAlignment: Qt.AlignHCenter
|
2024-02-01 14:27:45 +02:00
|
|
|
minimumValue: uniformMinValue.x
|
|
|
|
|
maximumValue: uniformMaxValue.x
|
|
|
|
|
value: uniformValue.x
|
|
|
|
|
stepSize: .01
|
2023-09-05 18:03:05 +03:00
|
|
|
decimals: 2
|
2024-03-19 14:52:20 +02:00
|
|
|
onValueModified: uniformValue.x = value
|
2023-09-05 18:03:05 +03:00
|
|
|
}
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Item { // spacer
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 2
|
|
|
|
|
Layout.maximumWidth: 10
|
|
|
|
|
}
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Text {
|
|
|
|
|
text: qsTr("X")
|
|
|
|
|
color: StudioTheme.Values.themeTextColor
|
|
|
|
|
font.pixelSize: StudioTheme.Values.baseFontSize
|
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2023-08-22 17:05:28 +03:00
|
|
|
}
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Item { // spacer
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 10
|
|
|
|
|
Layout.maximumWidth: 20
|
|
|
|
|
}
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2024-02-01 14:27:45 +02:00
|
|
|
HelperWidgets.DoubleSpinBox {
|
2023-09-05 18:03:05 +03:00
|
|
|
id: vY
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2024-03-19 14:52:20 +02:00
|
|
|
// value: uniformValue binding can get overwritten by normal operation of the control
|
|
|
|
|
property double resetValue: uniformValue.y
|
|
|
|
|
onResetValueChanged: value = resetValue
|
|
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 30
|
|
|
|
|
Layout.maximumWidth: 60
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
spinBoxIndicatorVisible: false
|
|
|
|
|
inputHAlignment: Qt.AlignHCenter
|
2024-02-01 14:27:45 +02:00
|
|
|
minimumValue: uniformMinValue.y
|
|
|
|
|
maximumValue: uniformMaxValue.y
|
|
|
|
|
value: uniformValue.y
|
|
|
|
|
stepSize: .01
|
2023-09-05 18:03:05 +03:00
|
|
|
decimals: 2
|
2024-03-19 14:52:20 +02:00
|
|
|
onValueModified: uniformValue.y = value
|
2023-09-05 18:03:05 +03:00
|
|
|
}
|
2023-08-22 17:05:28 +03:00
|
|
|
|
2023-09-05 18:03:05 +03:00
|
|
|
Item { // spacer
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 2
|
|
|
|
|
Layout.maximumWidth: 10
|
2023-08-22 17:05:28 +03:00
|
|
|
}
|
2023-09-05 18:03:05 +03:00
|
|
|
|
|
|
|
|
Text {
|
|
|
|
|
text: qsTr("Y")
|
|
|
|
|
color: StudioTheme.Values.themeTextColor
|
|
|
|
|
font.pixelSize: StudioTheme.Values.baseFontSize
|
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { // spacer
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.minimumWidth: 10
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-22 17:05:28 +03:00
|
|
|
}
|