Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Advanced.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2014-2015 Harald Sitter <sitter@kde.org> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU General Public License as | ||||
6 | published by the Free Software Foundation; either version 2 of | ||||
7 | the License or (at your option) version 3 or any later version | ||||
8 | accepted by the membership of KDE e.V. (or its successor approved | ||||
9 | by the membership of KDE e.V.), which shall act as a proxy | ||||
10 | defined in Section 14 of version 3 of the license. | ||||
11 | | ||||
12 | This program is distributed in the hope that it will be useful, | ||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | GNU General Public License for more details. | ||||
16 | | ||||
17 | You should have received a copy of the GNU General Public License | ||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
19 | */ | ||||
20 | | ||||
21 | import QtQuick 2.0 | ||||
22 | import QtQuick.Layouts 1.1 | ||||
23 | import QtQuick.Controls 1.3 | ||||
24 | | ||||
25 | import org.kde.plasma.private.volume 0.1 | ||||
26 | | ||||
27 | ScrollView { | ||||
28 | id: scrollView | ||||
29 | | ||||
30 | ColumnLayout { | ||||
31 | width: scrollView.viewport.width | ||||
32 | | ||||
33 | Header { | ||||
34 | Layout.fillWidth: true | ||||
35 | enabled: 0 < view.count | ||||
36 | text: i18n("Device Profiles") | ||||
37 | disabledText: i18nc("@label", "No Device Profiles Available") | ||||
38 | } | ||||
39 | | ||||
40 | ListView { | ||||
41 | id: view | ||||
42 | Layout.fillWidth: true | ||||
43 | Layout.preferredHeight: contentHeight | ||||
44 | Layout.margins: units.gridUnit / 2 | ||||
45 | interactive: false | ||||
46 | spacing: units.smallSpacing * 2 | ||||
47 | model: CardModel {} | ||||
48 | delegate: CardListItem {} | ||||
49 | } | ||||
50 | | ||||
51 | Header { | ||||
52 | Layout.fillWidth: true | ||||
53 | text: i18n("Advanced Output Configuration") | ||||
54 | } | ||||
55 | ModuleManager { | ||||
56 | id: moduleManager | ||||
57 | } | ||||
58 | CheckBox { | ||||
59 | Layout.fillWidth: true | ||||
60 | Layout.topMargin: units.smallSpacing | ||||
61 | Layout.leftMargin: units.gridUnit / 2 | ||||
62 | Layout.rightMargin: units.gridUnit / 2 | ||||
63 | width: parent.width | ||||
64 | text: i18n("Add virtual output device for simultaneous output on all local sound cards") | ||||
65 | checked: moduleManager.combineSinks | ||||
66 | onCheckedChanged: moduleManager.combineSinks = checked; | ||||
67 | } | ||||
68 | CheckBox { | ||||
69 | Layout.fillWidth: true | ||||
70 | Layout.leftMargin: units.gridUnit / 2 | ||||
71 | Layout.rightMargin: units.gridUnit / 2 | ||||
72 | text: i18n("Automatically switch all running streams when a new output becomes available") | ||||
73 | checked: moduleManager.switchOnConnect | ||||
74 | onCheckedChanged: moduleManager.switchOnConnect = checked; | ||||
75 | } | ||||
76 | | ||||
77 | } | ||||
78 | } |