forked from AgoraIO/Agora-with-QT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeviceSettingsForm.ui.qml
executable file
·248 lines (232 loc) · 5.8 KB
/
DeviceSettingsForm.ui.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
import QtQuick 2.5
import "./controls"
import AVideoWidget 1.0
Rectangle {
id: rectangle1
width: 512
height: 640
Text {
id: text1
color: "#009eeb"
text: qsTr("Input Device")
font.bold: false
anchors.left: parent.left
anchors.leftMargin: 66
anchors.top: parent.top
anchors.topMargin: 40
font.pixelSize: 14
}
property alias cbMicrophones: cbMicrophones
AComboBox {
id: cbMicrophones
width: 300
height: 40
fontSize: 9
fontBold: false
anchors.left: text1.left
anchors.leftMargin: 0
anchors.top: text1.bottom
anchors.topMargin: 11
model: ListModel {
// ListElement {text: "160x120"}
}
}
property alias btnTestMichrophone: btnTestMichrophone
AButton {
id: btnTestMichrophone
width: 72
height: 40
defaultColor: "#009eed"
hoverColor: "#71caf5"
pressedColor: "#1c1c1c"
color: "#009eed"
textColor: "#ffffff"
text: qsTr("Test")
anchors.left: cbMicrophones.right
anchors.leftMargin: 8
anchors.top: cbMicrophones.top
anchors.topMargin: 0
}
Text {
id: text2
width: 72
height: 24
text: qsTr("Volume")
anchors.left: text1.left
anchors.leftMargin: 0
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
anchors.top: cbMicrophones.bottom
anchors.topMargin: 18
font.pixelSize: 12
}
property alias sliderMicrophoneVolume: sliderMicrophoneVolume
ASlider {
id: sliderMicrophoneVolume
width: 284
height: 24
minimumValue: 0
maximumValue: 255
anchors.top: text2.top
anchors.topMargin: 0
anchors.left: text2.right
anchors.leftMargin: 12
}
Text {
id: text3
color: "#009eeb"
text: qsTr("Output Device")
anchors.left: text1.left
anchors.leftMargin: 0
anchors.top: text2.bottom
anchors.topMargin: 24
font.pixelSize: 14
}
property alias cbSpeakers: cbSpeakers
AComboBox {
id: cbSpeakers
width: 300
height: 40
fontSize: 9
fontBold: false
anchors.left: text1.left
anchors.leftMargin: 0
anchors.top: text3.bottom
anchors.topMargin: 11
model: ListModel {
// ListElement {text: "160x120"}
}
}
property alias btnTestSpeaker: btnTestSpeaker
AButton {
id: btnTestSpeaker
width: 72
height: 40
defaultColor: "#009eed"
hoverColor: "#71caf5"
pressedColor: "#1c1c1c"
color: "#009eed"
textColor: "#ffffff"
text: qsTr("Test")
anchors.left: cbSpeakers.right
anchors.leftMargin: 8
anchors.top: cbSpeakers.top
anchors.topMargin: 0
}
Text {
id: text4
x: 0
y: 0
width: 72
height: 24
text: qsTr("Volume")
anchors.topMargin: 18
anchors.top: cbSpeakers.bottom
font.pixelSize: 12
verticalAlignment: Text.AlignVCenter
anchors.left: text1.left
anchors.leftMargin: 0
horizontalAlignment: Text.AlignLeft
}
property alias sliderSpeakerVolume: sliderSpeakerVolume
ASlider {
id: sliderSpeakerVolume
x: 3
y: 2
width: 284
height: 24
minimumValue: 0
maximumValue: 255
anchors.topMargin: 0
anchors.top: text4.top
anchors.left: text4.right
anchors.leftMargin: 12
}
Text {
id: text5
x: 2
y: -5
color: "#009eeb"
text: qsTr("Camera")
anchors.topMargin: 24
anchors.top: text4.bottom
font.pixelSize: 14
anchors.left: text1.left
anchors.leftMargin: 0
}
property alias cbCameras: cbCameras
AComboBox {
id: cbCameras
x: -6
width: 300
height: 40
fontSize: 9
fontBold: false
anchors.top: text5.bottom
anchors.topMargin: 11
anchors.left: text1.left
anchors.leftMargin: 0
model: ListModel {
// ListElement {text: "160x120"}
}
}
property alias btnTestCamera: btnTestCamera
AButton {
id: btnTestCamera
x: 374
y: -6
width: 72
height: 40
defaultColor: "#009eed"
hoverColor: "#71caf5"
pressedColor: "#1c1c1c"
color: "#009eed"
textColor: "#ffffff"
text: qsTr("Test")
anchors.topMargin: 0
anchors.top: cbCameras.top
anchors.left: cbCameras.right
anchors.leftMargin: 8
}
property alias winVideo: winVideo
Rectangle {
x: 150
width: 192
height: 120
color: "#c8c8c8"
anchors.top: cbCameras.bottom
anchors.topMargin: 18
anchors.horizontalCenter: parent.horizontalCenter
AVideoWidget {
id: winVideo
width: parent.width
height: parent.height
}
}
property alias btnCancel : btnCancel
AButton {
id: btnCancel
width: 180
height: 48
text: qsTr("Cancel")
anchors.bottom: parent.bottom
anchors.bottomMargin: 40
anchors.left: parent.left
anchors.leftMargin: 66
}
property alias btnConfirm : btnConfirm
AButton {
id: btnConfirm
width: 180
height: 48
defaultColor: "#f8aa1e"
hoverColor: "#eebf6b"
pressedColor: "#1c1c1c"
color: "#f8aa1e"
text: qsTr("Confirm")
anchors.left: btnCancel.right
anchors.leftMargin: 20
anchors.top: btnCancel.top
anchors.topMargin: 0
}
}