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
2015-01-22 10:09:10 +01:00
minimumValue: 0 ;
2013-10-14 20:42:27 +02:00
maximumValue: 100 ;
decimals: 0
}
ExpandingSpacer {
}
}
Label {
text: qsTr ( "Flick deceleration" )
}
SecondColumnLayout {
SpinBox {
backendValue: backendValues . flickDeceleration
minimumValue: 0 ;
maximumValue: 1000 ;
decimals: 0
}
ExpandingSpacer {
}
}
Label {
text: qsTr ( "Interactive" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "A user cannot drag or flick a PathView that is not interactive." )
2013-10-14 20:42:27 +02:00
}
SecondColumnLayout {
CheckBox {
backendValue: backendValues . interactive
}
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
minimumValue: 0 ;
maximumValue: 1000 ;
decimals: 0
}
ExpandingSpacer {
}
}
Label {
text: qsTr ( "Item count" )
2014-10-30 14:45:56 +01:00
tooltip: qsTr ( "pathItemCount: number of items visible on the path at any one time." )
2013-10-14 20:42:27 +02:00
}
SecondColumnLayout {
SpinBox {
backendValue: backendValues . pathItemCount
minimumValue: - 1 ;
maximumValue: 1000 ;
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 {
model: [ "NoHighlightRange" , "ApplyRange" , "StrictlyEnforceRange" ]
backendValue: backendValues . highlightRangeMode
Layout.fillWidth: true
2014-03-06 13:53:22 +01:00
scope: "PathView"
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
minimumValue: 0 ;
maximumValue: 1000 ;
decimals: 0
}
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 ( "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
minimumValue: 0 ;
2014-05-12 13:54:52 +02:00
maximumValue: 1 ;
decimals: 2
2013-10-30 15:59:50 +01:00
}
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 ( "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
minimumValue: 0 ;
2014-05-12 13:54:52 +02:00
maximumValue: 1 ;
decimals: 2
2013-10-30 15:59:50 +01:00
}
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
}
}
}