2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
2013-10-14 20:42:27 +02:00
|
|
|
import HelperWidgets 2.0
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import StudioControls 1.0 as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2013-10-14 20:42:27 +02:00
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Path View")
|
|
|
|
|
|
2013-10-14 20:42:27 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Interactive")
|
2023-02-08 15:55:50 +01:00
|
|
|
tooltip: qsTr("Toggles if the path view allows drag or flick.")
|
2021-06-21 16:48:19 +02:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: backendValues.interactive.valueToString
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.interactive
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-08 15:55:50 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Drag margin")
|
|
|
|
|
tooltip: qsTr("Sets a margin within which the drag function also works even without clicking the item itself.")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SecondColumnLayout {
|
2013-10-14 20:42:27 +02:00
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-14 20:42:27 +02:00
|
|
|
backendValue: backendValues.dragMargin
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 100
|
2013-10-14 20:42:27 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
2023-02-08 15:55:50 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Flick deceleration")
|
|
|
|
|
tooltip: qsTr("Sets the rate by which a flick action slows down after performing.")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2013-10-14 20:42:27 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-14 20:42:27 +02:00
|
|
|
backendValue: backendValues.flickDeceleration
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-14 20:42:27 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-14 20:42:27 +02:00
|
|
|
text: qsTr("Offset")
|
2023-02-08 15:55:50 +01:00
|
|
|
tooltip: qsTr("Sets how far along the path the items are from their initial position.")
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-14 20:42:27 +02:00
|
|
|
backendValue: backendValues.offset
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-14 20:42:27 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-14 20:42:27 +02:00
|
|
|
text: qsTr("Item count")
|
2023-02-08 15:55:50 +01:00
|
|
|
tooltip: qsTr("Sets the number of items visible at once along the path.")
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-14 20:42:27 +02:00
|
|
|
backendValue: backendValues.pathItemCount
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: -1
|
|
|
|
|
maximumValue: 1000
|
2013-10-14 20:42:27 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
}
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Path View Highlight")
|
|
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-30 15:59:50 +01:00
|
|
|
text: qsTr("Range")
|
2023-02-22 14:23:24 +01:00
|
|
|
tooltip: qsTr("Sets the highlight range mode.")
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-30 15:59:50 +01:00
|
|
|
backendValue: backendValues.highlightRangeMode
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"]
|
|
|
|
|
scope: "PathView"
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-30 15:59:50 +01:00
|
|
|
text: qsTr("Move duration")
|
2023-02-22 14:23:24 +01:00
|
|
|
tooltip: qsTr("Sets the animation duration of the highlight delegate when\n"
|
|
|
|
|
+ "it is moved.")
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-30 15:59:50 +01:00
|
|
|
backendValue: backendValues.highlightMoveDuration
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-30 15:59:50 +01:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-30 15:59:50 +01:00
|
|
|
text: qsTr("Preferred begin")
|
2023-02-22 14:23:24 +01:00
|
|
|
tooltip: qsTr("Sets the preferred highlight beginning. It must be smaller than\n"
|
|
|
|
|
+ "the <b>Preferred end</b>. Note that the user has to add\n"
|
|
|
|
|
+ "a highlight component.")
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-30 15:59:50 +01:00
|
|
|
backendValue: backendValues.preferredHighlightBegin
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1
|
2019-09-02 17:33:23 +02:00
|
|
|
stepSize: 0.1
|
2014-05-12 13:54:52 +02:00
|
|
|
decimals: 2
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-30 15:59:50 +01:00
|
|
|
text: qsTr("Preferred end")
|
2023-02-22 14:23:24 +01:00
|
|
|
tooltip: qsTr("Sets the preferred highlight end. It must be larger than\n"
|
|
|
|
|
+ "the <b>Preferred begin</b>. Note that the user has to add\n"
|
|
|
|
|
+ "a highlight component.")
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
|
2013-10-30 15:59:50 +01:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-30 15:59:50 +01:00
|
|
|
backendValue: backendValues.preferredHighlightEnd
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1
|
2019-09-02 17:33:23 +02:00
|
|
|
stepSize: 0.1
|
2014-05-12 13:54:52 +02:00
|
|
|
decimals: 2
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-30 15:59:50 +01:00
|
|
|
}
|
2013-10-14 20:42:27 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|