-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.qml
284 lines (247 loc) · 8.21 KB
/
Main.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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
// framework imports
import QtQuick 6.7
import QtQuick.Controls 6.7
import QtQuick.Layouts
import "./qml"
ApplicationWindow {
id: root
width: 1920
height: 1080
visible: true
visibility: Window.Minimized
title: "Red Eye"
Rectangle {
id: rectangle
color: "white"
anchors.fill: parent
Text {
id: galleryLabel
x: 734
y: 20
text: qsTr("RED EYE 0.2")
anchors.right: parent.right
anchors.top: parent.top
anchors.rightMargin: 40
anchors.topMargin: 50
//font.family: FontManager.victorMonoFamily
//font.styleName: FontManager.boldFontStyle
font.pixelSize: 48
}
ColumnLayout {
id: mainMenu
width: 300
height: 300
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: 20
anchors.topMargin: 200
GalleryMenuButton {
id: botao_robos
implicitHeight: 70
highlighted: false
flat: false
autoExclusive: true
checked: true
buttonLabelText: "Robôs"
Layout.fillWidth: true
Connections {
target: botao_robos
function onClicked() {
galleryPanel.currentIndex = 0
menuPanel.currentIndex = 0
}
}
}
GalleryMenuButton {
id: botao_codigo
implicitHeight: 70
autoExclusive: true
buttonLabelText: "Código"
Layout.fillWidth: true
Connections {
target: botao_codigo
function onClicked() {
galleryPanel.currentIndex = 1
menuPanel.currentIndex = 1
}
}
}
GalleryMenuButton {
id: botao_sobre
implicitHeight: 70
autoExclusive: true
buttonLabelText: "Sobre"
Layout.fillWidth: true
Connections {
target: botao_sobre
function onClicked(){
galleryPanel.currentIndex = 2
menuPanel.currentIndex = 2
}
}
}
}
Rectangle {
id: splitter
width: 300
height: 5
color: "#000000"
anchors.bottom: mainMenu.bottom
anchors.bottomMargin: -20
anchors.horizontalCenter: mainMenu.horizontalCenter
}
StackLayout {
id: menuPanel
width: 300
anchors.left: parent.left
anchors.top: splitter.bottom
anchors.bottom: parent.bottom
anchors.leftMargin: 20
anchors.topMargin: 20
anchors.bottomMargin: 20
currentIndex: 0
ColumnLayout {
id: submenu_robos
Layout.fillWidth: true
GalleryMenuButton {
id: submenu_robos_1
implicitHeight: 70
autoExclusive: true
checked: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: submenu_robos_1
function onClicked() {galleryPanel.currentIndex = 0}
}
}
GalleryMenuButton {
id: submenu_robos_2
implicitHeight: 70
autoExclusive: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: submenu_robos_2
function onClicked() {galleryPanel.currentIndex = 0}
}
}
GalleryMenuButton {
id: submenu_robos_4
implicitHeight: 70
autoExclusive: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: submenu_robos_4
function onClicked() {galleryPanel.currentIndex = 0}
}
}
GalleryMenuButton {
id: submenu_robos_3
implicitHeight: 70
autoExclusive: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: submenu_robos_3
function onClicked() {galleryPanel.currentIndex = 0}
}
}
}
ColumnLayout {
id: codigo_submenu
visible: false
Layout.fillWidth: true
GalleryMenuButton {
id: codigo_submenu_1
implicitHeight: 70
autoExclusive: true
checked: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: codigo_submenu_1
function onClicked() {galleryPanel.currentIndex = 0}
}
}
GalleryMenuButton {
id: codigo_submenu_2
implicitHeight: 70
autoExclusive: true
Layout.fillWidth: true
buttonLabelText: "Botao"
Connections {
target: codigo_submenu_2
function onClicked() {galleryPanel.currentIndex = 0}
}
}
GalleryMenuButton {
id: codigo_submenu_3
implicitHeight: 70
Connections {
target: codigo_submenu_3
function onClicked() {galleryPanel.currentIndex = 0}
}
buttonLabelText: "Botao"
autoExclusive: true
Layout.fillWidth: true
}
}
ColumnLayout {
id: sobre_submenu
Layout.fillWidth: true
GalleryMenuButton {
id: sobre_submenu_1
implicitHeight: 70
autoExclusive: true
checked: true
buttonLabelText: "Botao"
Layout.fillWidth: true
Connections {
target: sobre_submenu_1
function onClicked() {galleryPanel.currentIndex = 0}
}
}
}
}
StackLayout {
id: galleryPanel
anchors.left: menuPanel.right
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.leftMargin: 20
anchors.rightMargin: 20
anchors.topMargin: 200
anchors.bottomMargin: 20
currentIndex: 0
Robo_view {
id: robo_view
}
FieldMap {
id: map_view
}
Text {
id: vis_cod
color: "black"
text: "Red Eye, uma interface para isléu. \n Por: Lealdini"
Layout.leftMargin: 734
Layout.topMargin: 250
font.pixelSize: 50
}
}
Image {
id: logo_red
width: 211
height: 144
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: 65
anchors.topMargin: 20
source: "qrc:/src/img/logo-vermelha2.png"
mipmap: true
fillMode: Image.PreserveAspectFit
}
}
}