2022-08-19 15:59:36 +02:00
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 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" )
tooltip: qsTr ( "Allows users to drag or flick a path view." )
}
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
}
2021-06-21 16:48:19 +02:00
PropertyLabel { text: qsTr ( "Drag margin" ) }
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
}
2021-06-21 16:48:19 +02:00
PropertyLabel { text: qsTr ( "Flick deceleration" ) }
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" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Specifies how far along the path the items are from their initial positions. This is a real number that ranges from 0.0 to the count of items in the model." )
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" )
2020-07-01 16:33:23 +02:00
tooltip: qsTr ( "Number of items visible on the path at any one time." )
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" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Highlight range" )
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" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Move animation duration of the highlight delegate." )
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" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Preferred highlight begin - must be smaller than Preferred end. Note that the user has to add 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" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Preferred highlight end - must be larger than Preferred begin. Note that the user has to add 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
}
}
}