2013-10-14 20:42:27 +02:00
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
2016-01-15 14:59:14 +01:00
* * Copyright ( C ) 2016 The Qt Company Ltd .
* * Contact: https: //www.qt.io/licensing/
2013-10-14 20:42:27 +02:00
* *
* * This file is part of Qt Creator .
* *
* * Commercial License Usage
* * Licensees holding valid commercial Qt licenses may use this file in
* * accordance with the commercial license agreement provided with the
* * Software or , alternatively , in accordance with the terms contained in
2016-01-15 14:59:14 +01:00
* * a written agreement between you and The Qt Company . For licensing terms
* * and conditions see https: //www.qt.io/terms-conditions. For further
* * information use the contact form at https: //www.qt.io/contact-us.
2013-10-14 20:42:27 +02:00
* *
2015-09-18 11:34:48 +02:00
* * GNU General Public License Usage
* * Alternatively , this file may be used under the terms of the GNU
2016-01-15 14:59:14 +01:00
* * General Public License version 3 as published by the Free Software
* * Foundation with exceptions as appearing in the file LICENSE . GPL3 - EXCEPT
* * included in the packaging of this file . Please review the following
* * information to ensure the GNU General Public License requirements will
* * be met: https: //www.gnu.org/licenses/gpl-3.0.html.
2013-10-14 20:42:27 +02:00
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
import QtQuick 2.1
import HelperWidgets 2.0
import QtQuick . Layouts 1.0
Column {
anchors.left: parent . left
anchors.right: parent . right
Section {
anchors.left: parent . left
anchors.right: parent . right
caption: qsTr ( "Path View" )
SectionLayout {
Label {
text: qsTr ( "Drag margin" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "Drag margin" )
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
SecondColumnLayout {
2013-10-14 20:42:27 +02:00
SpinBox {
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
}
ExpandingSpacer {
}
}
Label {
text: qsTr ( "Flick deceleration" )
}
SecondColumnLayout {
SpinBox {
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
}
ExpandingSpacer {
}
}
Label {
text: qsTr ( "Interactive" )
2020-07-01 16:33:23 +02:00
tooltip: qsTr ( "Allows users to drag or flick a path view." )
2013-10-14 20:42:27 +02:00
}
SecondColumnLayout {
CheckBox {
2019-08-21 16:37:15 +02:00
Layout.fillWidth: true
2013-10-14 20:42:27 +02:00
backendValue: backendValues . interactive
2019-08-21 16:37:15 +02:00
text: backendValues . interactive . valueToString
2013-10-14 20:42:27 +02:00
}
ExpandingSpacer {
}
}
Label {
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 {
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
}
ExpandingSpacer {
}
}
Label {
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 {
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
}
ExpandingSpacer {
}
}
}
2013-10-30 15:59:50 +01:00
}
Section {
anchors.left: parent . left
anchors.right: parent . right
caption: qsTr ( "Path View Highlight" )
2013-10-14 20:42:27 +02:00
2013-10-30 15:59:50 +01:00
SectionLayout {
2013-10-14 20:42:27 +02:00
2013-10-30 15:59:50 +01:00
Label {
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 {
2019-08-21 16:37:15 +02:00
scope: "PathView"
2013-10-30 15:59:50 +01:00
model: [ "NoHighlightRange" , "ApplyRange" , "StrictlyEnforceRange" ]
backendValue: backendValues . highlightRangeMode
Layout.fillWidth: true
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
ExpandingSpacer {
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
}
2013-10-14 20:42:27 +02:00
2013-10-30 15:59:50 +01:00
Label {
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 {
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
}
ExpandingSpacer {
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
}
2013-10-14 20:42:27 +02:00
2013-10-30 15:59:50 +01:00
Label {
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 {
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
}
ExpandingSpacer {
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
}
2013-10-14 20:42:27 +02:00
2013-10-30 15:59:50 +01:00
Label {
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 {
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
}
ExpandingSpacer {
2013-10-14 20:42:27 +02:00
}
2013-10-30 15:59:50 +01:00
}
2013-10-14 20:42:27 +02:00
}
}
}