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-09-16 16:55:07 +02:00
|
|
|
|
2020-07-03 16:17:54 +02:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import HelperWidgets 2.0
|
2019-10-01 10:48:16 +02:00
|
|
|
import StudioControls 1.0 as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
PropertyEditorPane {
|
2013-09-16 16:55:07 +02:00
|
|
|
id: itemPane
|
2020-07-03 16:17:54 +02:00
|
|
|
|
2021-10-21 13:10:24 +02:00
|
|
|
ComponentSection {
|
|
|
|
|
showState: true
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2022-11-11 15:49:16 +01:00
|
|
|
InsightSection {
|
|
|
|
|
visible: insightEnabled
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-22 16:46:48 +02:00
|
|
|
DynamicPropertiesSection {
|
|
|
|
|
propertiesModel: SelectionDynamicPropertiesModel {}
|
2022-09-16 17:19:02 +02:00
|
|
|
visible: !hasMultiSelection
|
2022-07-22 16:46:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
GeometrySection {}
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Section {
|
|
|
|
|
caption: qsTr("Visibility")
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2020-01-17 15:58:12 +01:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
SectionLayout {
|
|
|
|
|
PropertyLabel { text: qsTr("Visibility") }
|
2020-01-17 15:58:12 +01:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
SecondColumnLayout {
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Visible")
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.visible
|
|
|
|
|
}
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Spacer { implicitWidth: StudioTheme.Values.twoControlColumnGap }
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Clip")
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.clip
|
2013-09-16 16:55:07 +02:00
|
|
|
}
|
|
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
ExpandingSpacer {}
|
2013-10-24 14:19:37 +02:00
|
|
|
}
|
|
|
|
|
|
2023-01-16 16:09:23 +01:00
|
|
|
PropertyLabel {
|
|
|
|
|
text: qsTr("Opacity")
|
|
|
|
|
tooltip: qsTr("Sets the transparency of the component.")
|
|
|
|
|
}
|
2021-08-03 22:16:15 +02:00
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
sliderIndicatorVisible: true
|
|
|
|
|
backendValue: backendValues.opacity
|
|
|
|
|
decimals: 2
|
|
|
|
|
minimumValue: 0
|
|
|
|
|
maximumValue: 1
|
|
|
|
|
hasSlider: true
|
|
|
|
|
stepSize: 0.1
|
|
|
|
|
}
|
2020-07-03 16:17:54 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-04-15 14:54:53 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Item {
|
|
|
|
|
height: 4
|
|
|
|
|
width: 4
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
StudioControls.TabBar {
|
|
|
|
|
id: tabBar
|
2020-07-03 16:17:54 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
StudioControls.TabButton {
|
2022-02-22 12:51:31 +01:00
|
|
|
text: backendValues.__classNamePrivateInternal.value
|
2021-08-03 22:16:15 +02:00
|
|
|
}
|
|
|
|
|
StudioControls.TabButton {
|
|
|
|
|
text: qsTr("Layout")
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
StackLayout {
|
|
|
|
|
id: tabView
|
|
|
|
|
property int currentHeight: children[tabView.currentIndex].implicitHeight
|
|
|
|
|
property int extraHeight: 40
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
currentIndex: tabBar.currentIndex
|
|
|
|
|
height: currentHeight + extraHeight
|
2013-10-29 16:06:07 +01:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Column {
|
|
|
|
|
width: parent.width
|
2013-09-27 17:53:46 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Loader {
|
|
|
|
|
id: specificsTwo
|
2013-09-27 17:53:46 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
property string theSource: specificQmlData
|
2014-04-15 14:54:53 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
visible: theSource !== ""
|
|
|
|
|
sourceComponent: specificQmlComponent
|
|
|
|
|
|
|
|
|
|
onTheSourceChanged: {
|
|
|
|
|
active = false
|
|
|
|
|
active = true
|
2013-09-16 16:55:07 +02:00
|
|
|
}
|
2021-08-03 22:16:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
|
id: specificsOne
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
source: specificsUrl
|
|
|
|
|
visible: specificsOne.source.toString() !== ""
|
|
|
|
|
}
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-09-24 14:59:50 +02:00
|
|
|
AdvancedSection {
|
|
|
|
|
expanded: false
|
|
|
|
|
}
|
2013-09-16 16:55:07 +02:00
|
|
|
|
2021-09-24 14:59:50 +02:00
|
|
|
LayerSection {
|
|
|
|
|
expanded: false
|
|
|
|
|
}
|
2021-08-03 22:16:15 +02:00
|
|
|
}
|
2019-10-01 10:48:16 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Column {
|
|
|
|
|
width: parent.width
|
2019-10-18 14:03:09 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
LayoutSection {}
|
|
|
|
|
|
|
|
|
|
MarginSection {
|
|
|
|
|
visible: anchorBackend.isInLayout
|
|
|
|
|
backendValueTopMargin: backendValues.Layout_topMargin
|
|
|
|
|
backendValueBottomMargin: backendValues.Layout_bottomMargin
|
|
|
|
|
backendValueLeftMargin: backendValues.Layout_leftMargin
|
|
|
|
|
backendValueRightMargin: backendValues.Layout_rightMargin
|
|
|
|
|
backendValueMargins: backendValues.Layout_margins
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AlignDistributeSection {
|
|
|
|
|
visible: !anchorBackend.isInLayout
|
2013-09-16 16:55:07 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|