2023-06-29 15:06:11 +03:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
|
import HelperWidgets as HelperWidgets
|
|
|
|
|
import StudioControls as StudioControls
|
|
|
|
|
import StudioTheme as StudioTheme
|
|
|
|
|
import EffectMakerBackend
|
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
id: root
|
|
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
id: col
|
|
|
|
|
anchors.fill: parent
|
2023-08-16 12:57:41 +03:00
|
|
|
spacing: 1
|
2023-06-29 15:06:11 +03:00
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
EffectMakerTopBar {
|
2023-06-29 15:06:11 +03:00
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
EffectMakerPreview {
|
2023-06-29 15:06:11 +03:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: parent.width
|
|
|
|
|
height: StudioTheme.Values.toolbarHeight
|
|
|
|
|
color: StudioTheme.Values.themeToolbarBackground
|
|
|
|
|
|
2023-08-15 15:40:46 +03:00
|
|
|
EffectNodesComboBox {
|
|
|
|
|
mainRoot: root
|
2023-08-16 12:57:41 +03:00
|
|
|
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2023-08-09 18:15:56 +03:00
|
|
|
}
|
2023-06-29 15:06:11 +03:00
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
HelperWidgets.AbstractButton {
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
anchors.rightMargin: 5
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2023-06-29 15:06:11 +03:00
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
style: StudioTheme.Values.viewBarButtonStyle
|
|
|
|
|
buttonIcon: StudioTheme.Constants.code
|
|
|
|
|
tooltip: qsTr("Open Shader in Code Editor")
|
|
|
|
|
|
|
|
|
|
onClicked: {} // TODO
|
|
|
|
|
}
|
2023-06-29 15:06:11 +03:00
|
|
|
}
|
|
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
|
2023-06-29 15:06:11 +03:00
|
|
|
HelperWidgets.ScrollView {
|
|
|
|
|
id: scrollView
|
|
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
|
height: parent.height - y
|
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
|
|
Behavior on contentY {
|
|
|
|
|
id: contentYBehavior
|
|
|
|
|
PropertyAnimation {
|
|
|
|
|
id: scrollViewAnim
|
|
|
|
|
easing.type: Easing.InOutQuad
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Column {
|
2023-08-17 15:59:46 +03:00
|
|
|
width: scrollView.width
|
|
|
|
|
spacing: 1
|
|
|
|
|
|
|
|
|
|
Repeater {
|
|
|
|
|
id: compositionRepeater
|
|
|
|
|
|
|
|
|
|
width: root.width
|
|
|
|
|
model: EffectMakerBackend.effectMakerModel
|
|
|
|
|
|
|
|
|
|
delegate: EffectCompositionNode {
|
|
|
|
|
width: root.width
|
2023-06-29 15:06:11 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|