forked from AgoraIO/Agora-with-QT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInRoomForm.ui.qml
executable file
·192 lines (178 loc) · 5.88 KB
/
InRoomForm.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
import QtQuick 2.5
import "./controls"
Rectangle {
id: rectangleRoom
width: 800
height: 800
property alias rectangleRoom: rectangleRoom
property alias btnSettingsCall: btnSettings
property alias btnVoiceCall: btnVoice
property alias btnMuteVoice: btnMuteVoice
property alias btnExpandView: btnExpandView
property alias btnEndCall: btnEndCall
property int maxViewWidth: rectangleRoom.width
property int maxViewHeight: rectangleRoom.height-titleBar.height-rectToolbar.height
ATitleBar {
id: titleBar
width: parent.width
height: 24
anchors.top: parent.top
anchors.topMargin: 0
}
property alias channelName: channelName
Text {
id: channelName
x: 342
y: 50
width: 100
color: "#ffffff"
text: qsTr("")
font.bold: true
z: 1
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: titleBar.bottom
anchors.topMargin: 20
font.pixelSize: 14
}
property alias localVideo: localVideo
AVideoView {
id: localVideo
showVideo: true
width: rectangleRoom.maxViewWidth
height: rectangleRoom.maxViewHeight
backgroundImage: "images/icon_background_video.png"
anchors.top: titleBar.bottom
anchors.topMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
}
property alias remoteVideo1: remoteVideo1
AVideoView {
id: remoteVideo1
visible: false
showVideo: false
z: 1
width: rectangleRoom.maxViewWidth/4
height: rectangleRoom.maxViewHeight/4
backgroundImage: "images/icon_background_video.png"
anchors.top: titleBar.bottom
anchors.topMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
}
property alias remoteVideo2: remoteVideo2
AVideoView {
id: remoteVideo2
visible: false
showVideo: false
z: 1
width: rectangleRoom.maxViewWidth/4
height: rectangleRoom.maxViewHeight/4
backgroundImage: "images/icon_background_video.png"
anchors.top: titleBar.bottom
anchors.topMargin: rectangleRoom.maxViewHeight/4
anchors.right: parent.right
anchors.rightMargin: 0
}
property alias remoteVideo3: remoteVideo3
AVideoView {
id: remoteVideo3
visible: false
showVideo: false
z: 1
width: rectangleRoom.maxViewWidth/4
height: rectangleRoom.maxViewHeight/4
backgroundImage: "images/icon_background_video.png"
anchors.top: titleBar.bottom
anchors.topMargin: rectangleRoom.maxViewHeight/2
anchors.right: parent.right
anchors.rightMargin: 0
}
property alias remoteVideo4: remoteVideo4
AVideoView {
id: remoteVideo4
visible: false
showVideo: false
z: 1
width: rectangleRoom.maxViewWidth/4
height: rectangleRoom.maxViewHeight/4
backgroundImage: "images/icon_background_video.png"
anchors.top: titleBar.bottom
anchors.topMargin: rectangleRoom.maxViewHeight*3/4
anchors.right: parent.right
anchors.rightMargin: 0
}
Rectangle {
id: rectToolbar
x: 0
width: parent.width
height: 96
color: "#262626"
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
Rectangle {
id: rectControlBar
x: 109
y: 0
width: 432
height: rectToolbar.height
color: "#00000000"
anchors.horizontalCenter: parent.horizontalCenter
AImageButton {
id: btnSettings
width: 72
height: 72
anchors.left: parent.left
anchors.leftMargin: 0
anchors.verticalCenter: parent.verticalCenter
defaultImageSource: "images/btn_settings.png"
hoverImageSource: "images/btn_settings_touch.png"
pressedImageSource: "images/btn_settings_push.png"
}
AImageButton {
id: btnVoice
width: 72
height: 72
anchors.verticalCenter: parent.verticalCenter
anchors.left: btnSettings.right
anchors.leftMargin: 48
defaultImageSource: "images/btn_voice.png"
hoverImageSource: "images/btn_voice_touch.png"
pressedImageSource: "images/btn_voice_push.png"
}
AImageButton {
id: btnMuteVoice
width: 72
height: 72
anchors.left: btnVoice.right
anchors.leftMargin: 48
anchors.verticalCenter: parent.verticalCenter
defaultImageSource: "images/btn_mute_close.png"
hoverImageSource: "images/btn_mute_close_touch.png"
pressedImageSource: "images/btn_mute_close_push.png"
}
AImageButton {
id: btnExpandView
width: 72
height: 72
anchors.left: btnMuteVoice.right
anchors.leftMargin: 48
anchors.verticalCenter: parent.verticalCenter
defaultImageSource: "images/btn_maximize.png"
hoverImageSource: "images/btn_maximize_touch.png"
pressedImageSource: "images/btn_maximize_push.png"
}
}
AImageButton {
id: btnEndCall
width: 72
height: 72
anchors.verticalCenter: parent.verticalCenter
anchors.right: rectToolbar.right
anchors.rightMargin: 48
defaultImageSource: "images/btn_endcall.png"
hoverImageSource: "images/btn_endcall.png"
pressedImageSource: "images/btn_endcall_push.png"
}
}
}