2013-10-09 18:20:48 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2021-06-21 16:48:19 +02:00
|
|
|
** Copyright (C) 2021 The Qt Company Ltd.
|
2016-01-15 14:59:14 +01:00
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-10-09 18:20:48 +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-09 18:20:48 +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-09 18:20:48 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick 2.15
|
2013-10-09 18:20:48 +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-09 18:20:48 +02:00
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
FlickableSection {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Grid View")
|
|
|
|
|
|
2013-10-09 18:20:48 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel { text: qsTr("Cell size") }
|
2013-10-09 18:20:48 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
SecondColumnLayout {
|
2013-10-09 18:20:48 +02:00
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.contentWidth
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
2021-06-21 16:48:19 +02:00
|
|
|
maximumValue: 10000
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
|
2013-10-09 18:20:48 +02:00
|
|
|
|
2021-07-13 18:36:25 +02:00
|
|
|
ControlLabel {
|
|
|
|
|
//: The width of the object
|
|
|
|
|
text: qsTr("W", "width")
|
|
|
|
|
}
|
2013-10-09 18:20:48 +02:00
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
2019-08-21 16:37:15 +02:00
|
|
|
|
2013-10-09 18:20:48 +02:00
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.contentHeight
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
2021-06-21 16:48:19 +02:00
|
|
|
maximumValue: 10000
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
|
|
|
|
|
|
2021-07-13 18:36:25 +02:00
|
|
|
ControlLabel {
|
|
|
|
|
//: The height of the object
|
|
|
|
|
text: qsTr("H", "height")
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
|
|
|
|
|
|
|
|
|
LinkIndicator2D {}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel { text: qsTr("Flow") }
|
|
|
|
|
|
2013-10-09 18:20:48 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.flow
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["FlowLeftToRight", "FlowTopToBottom"]
|
|
|
|
|
scope: "GridView"
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel { text: qsTr("Layout direction") }
|
2013-10-09 18:20:48 +02:00
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.layoutDirection
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["LeftToRight", "RightToLeft"]
|
|
|
|
|
scope: "Qt"
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Snap mode")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Determines how the view scrolling will settle following a drag or flick.")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.snapMode
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["NoSnap", "SnapToRow", "SnapOneRow"]
|
|
|
|
|
scope: "GridView"
|
2019-08-21 16:37:15 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Cache")
|
|
|
|
|
tooltip: qsTr("Cache buffer")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.cacheBuffer.isAvailable
|
2021-06-21 16:48:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.cacheBuffer
|
|
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
|
|
|
|
decimals: 0
|
|
|
|
|
enabled: backendValue.isAvailable
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Navigation wraps")
|
|
|
|
|
tooltip: qsTr("Whether the grid wraps key navigation.")
|
2021-07-13 18:36:25 +02:00
|
|
|
blockedByTemplate: !backendValues.keyNavigationWraps.isAvailable
|
2021-06-21 16:48:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: backendValues.keyNavigationWraps.valueToString
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.keyNavigationWraps
|
|
|
|
|
enabled: backendValue.isAvailable
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-06-21 16:48:19 +02:00
|
|
|
caption: qsTr("Grid View Highlight")
|
|
|
|
|
|
2013-10-09 18:20:48 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Range")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Highlight range")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
ComboBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.highlightRangeMode
|
2021-06-21 16:48:19 +02:00
|
|
|
model: ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"]
|
|
|
|
|
scope: "GridView"
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Move duration")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Move animation duration of the highlight delegate.")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.highlightMoveDuration
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-09 18:20:48 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Preferred begin")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Preferred highlight begin - must be smaller than Preferred end.")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.preferredHighlightBegin
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-09 18:20:48 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Preferred end")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Preferred highlight end - must be larger than Preferred begin.")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
|
|
|
|
SpinBox {
|
2021-06-21 16:48:19 +02:00
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
backendValue: backendValues.preferredHighlightEnd
|
2019-08-21 16:37:15 +02:00
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1000
|
2013-10-09 18:20:48 +02:00
|
|
|
decimals: 0
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
PropertyLabel {
|
2013-10-09 18:20:48 +02:00
|
|
|
text: qsTr("Follows current")
|
2020-07-01 16:33:23 +02:00
|
|
|
tooltip: qsTr("Whether the highlight is managed by the view.")
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
|
|
|
|
CheckBox {
|
2019-08-21 16:37:15 +02:00
|
|
|
text: backendValues.highlightFollowsCurrentItem.valueToString
|
2021-06-21 16:48:19 +02:00
|
|
|
backendValue: backendValues.highlightFollowsCurrentItem
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-06-21 16:48:19 +02:00
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
2013-10-09 18:20:48 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|