2023-08-16 12:57:41 +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 QtQuickDesignerTheme
|
|
|
|
|
import HelperWidgets as HelperWidgets
|
|
|
|
|
import StudioControls as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
|
|
|
|
import EffectMakerBackend
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: root
|
|
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
|
height: StudioTheme.Values.toolbarHeight
|
|
|
|
|
color: StudioTheme.Values.themeToolbarBackground
|
|
|
|
|
|
2023-10-19 19:21:31 +03:00
|
|
|
signal saveClicked
|
|
|
|
|
|
2023-08-16 12:57:41 +03:00
|
|
|
HelperWidgets.Button {
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
x: 5
|
|
|
|
|
|
|
|
|
|
text: qsTr("Save in Library")
|
|
|
|
|
|
2023-10-19 19:21:31 +03:00
|
|
|
onClicked: root.saveClicked()
|
2023-08-16 12:57:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HelperWidgets.AbstractButton {
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
anchors.rightMargin: 5
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
|
|
style: StudioTheme.Values.viewBarButtonStyle
|
|
|
|
|
buttonIcon: StudioTheme.Constants.help
|
|
|
|
|
tooltip: qsTr("How to use Effect Maker:
|
|
|
|
|
1. Click \"+ Add Effect\" to add effect node
|
|
|
|
|
2. Adjust the effect nodes properties
|
|
|
|
|
3. Change the order of the effects, if you like
|
|
|
|
|
4. See the preview
|
|
|
|
|
5. Save in the library, if you wish to reuse the effect later") // TODO: revise with doc engineer
|
|
|
|
|
}
|
|
|
|
|
}
|