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
|
2021-11-03 12:16:42 +01:00
|
|
|
|
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import HelperWidgets 2.0
|
|
|
|
|
import StudioControls 1.0 as StudioControls
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
|
|
|
|
|
|
|
|
|
Section {
|
2021-12-10 17:21:26 +01:00
|
|
|
id: root
|
2021-11-03 12:16:42 +01:00
|
|
|
caption: qsTr("Media Player")
|
|
|
|
|
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
2021-12-10 17:21:26 +01:00
|
|
|
property bool showAudioOutput: false
|
|
|
|
|
property bool showVideoOutput: false
|
|
|
|
|
|
2021-11-03 12:16:42 +01:00
|
|
|
// TODO position property, what should be the range?!
|
|
|
|
|
|
|
|
|
|
SectionLayout {
|
|
|
|
|
PropertyLabel { text: qsTr("Playback rate") }
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
SpinBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
backendValue: backendValues.playbackRate
|
|
|
|
|
decimals: 1
|
|
|
|
|
minimumValue: -1000 // TODO correct range
|
|
|
|
|
maximumValue: 1000
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
2021-12-02 13:04:39 +01:00
|
|
|
|
|
|
|
|
PropertyLabel {
|
2021-12-10 17:21:26 +01:00
|
|
|
visible: root.showAudioOutput
|
2022-02-16 17:09:37 +01:00
|
|
|
text: qsTr("Audio output")
|
|
|
|
|
tooltip: qsTr("Target audio output.")
|
2021-12-02 13:04:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
2021-12-10 17:21:26 +01:00
|
|
|
visible: root.showAudioOutput
|
|
|
|
|
|
2021-12-02 13:04:39 +01:00
|
|
|
ItemFilterComboBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
|
|
|
|
typeFilter: "QtQuick.AudioOutput"
|
|
|
|
|
backendValue: backendValues.audioOutput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PropertyLabel {
|
2021-12-10 17:21:26 +01:00
|
|
|
visible: root.showVideoOutput
|
2022-02-16 17:09:37 +01:00
|
|
|
text: qsTr("Video output")
|
|
|
|
|
tooltip: qsTr("Target video output.")
|
2021-12-02 13:04:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
2021-12-10 17:21:26 +01:00
|
|
|
visible: root.showVideoOutput
|
|
|
|
|
|
2021-12-02 13:04:39 +01:00
|
|
|
ItemFilterComboBox {
|
|
|
|
|
implicitWidth: StudioTheme.Values.singleControlColumnWidth
|
|
|
|
|
+ StudioTheme.Values.actionIndicatorWidth
|
|
|
|
|
width: implicitWidth
|
|
|
|
|
typeFilter: "QtQuick.VideoOutput"
|
|
|
|
|
backendValue: backendValues.videoOutput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ExpandingSpacer {}
|
|
|
|
|
}
|
2021-11-03 12:16:42 +01:00
|
|
|
}
|
|
|
|
|
}
|