-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.qml
476 lines (453 loc) · 10.2 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import"mirrorjs.js" as Handler
Rectangle {
id:home
width: 1024
height: 728
Header{
id:topright
hexcolor:"#444"
x:570
y:-40
}
HeaderWeather{
hexcolor:"#444"
id: secondWeather
x:-40
y:-40
}
WeatherIcon{
hexcolor: "#444"
MouseArea{
anchors.fill:parent
onClicked: Handler.click_icon("Weather")
}
}
//Health Icon
WindowSize1{
id: firstHealth
text: "Health"
x:10
y:110
}
//Changing Room Icon
WindowSize1{
id: firstOutfit
text: "Outfit"
x:10
y:220
}
//Stocks Icon
WindowSize1{
id: firstStocks
text: "Stocks"
x:10
y:330
}
//Music Icon
WindowSize1{
id: firstMusic
text: "Music"
x:10
y:440
}
//TV Icon
WindowSize1{
id: firstTV
text: "TV"
x:10
y:550
}
//Preferences Icon
WindowSize1{
id: firstPreferences
text: "Pref"
x:10
y:660
}
//Health Window 2
WindowSize2{
id: secondHealth
text: "Health"
hexcolor: "#222"
x:70
y:110
Item{
x:10
y:20
height:70
width:150
//color: parent.color
Item{
width:50
height:10
//color:parent.color
Text{
color:"#fff"
text: "Health"
anchors.centerIn: parent
}
}
Item{
x:50
width:50
height:10
//color:parent.color
Text{
color:"#999"
text: "Exercise"
anchors.centerIn: parent
}
}
Item{
x:100
width:50
height:10
//color:parent.color
Text{
color:"#999"
text: "Sleep"
anchors.centerIn: parent
}
}
Rectangle{
y:10
x:-1
height:60
width:2
//width:129
//height:20
}
Rectangle{
x:-1
y:70
width:149
height:2
}
Rectangle{
x:9
y:60
width:10
height:10
}
Rectangle{
x:29
y:50
width:10
height:20
}
Rectangle{
x:49
y:40
width:10
height:30
}
Rectangle{
x:69
y:30
width:10
height:40
}
Rectangle{
x:89
y:20
width:10
height:50
Rectangle{
x:2
y:2
width:6
height:48
color:secondHealth.color
}
}
Rectangle{
color:secondHealth.color
x:109
y:20
width:40
height:40
Text{
color:"#fff"
anchors.centerIn: parent
font.pixelSize: 24
text: "4"
}
}
}
}
//Changing Room Window 2
//Shows quick wardrobe advice for the day
WindowSize2{
id: secondOutfit
text: "Outfit"
hexcolor: "#222"
x:70
y:220
Item{
x:10
y:20
height:70
width:150
//color: parent.color
//INSERT OUTFIT APPLICATION HERE
Text{
color:"#fff"
text: "Today:"
}
Rectangle{
y:25
width:parent.width
Text{
anchors.centerIn: parent
color:"#fff"
text: "Sweater"
font.pixelSize: 24
}
}
Text{
y:35
color:"#fff"
text: "Tonight:"
}
Rectangle{
y:60
width:parent.width
Text{
anchors.centerIn: parent
color:"#fff"
text: "Umbrella"
font.pixelSize: 24
}
}
}
}
//Stocks Window 2
//Shows quick stock quotes from Google Finance
WindowSize2{
id: secondStocks
text: "Stocks"
hexcolor: "#222"
x:70
y:330
Item{
x:10
y:20
height:70
width:150
//color:parent.color
//INSERT STOCKS APPLICATION HERE
Stock{
symbol: "GOOG"
value: 500.5
change: 10
}
Stock{
y:20
symbol: "MSFT"
value: 25.75
change: -2.45
}
Stock{
y:40
symbol: "MSFT"
value: 25.75
change: -2.45
}
Stock{
y:60
symbol: "MSFT"
value: 25.75
change: -2.45
}
}
}
//Music Window
//Allows playing of music, pausing, volume increase, song selection.
Music_TV_Window{
id: secondMusic
text: "Music"
x:70
y:440
Rectangle{
x:10
y:20
height:250
width:320
color:"#000"
//INSERT MUSIC APPLICATION HERE
}
}
//TV Window
//Allows starting television, turning off, increase in volume, channel selection.
Music_TV_Window{
id: secondTV
text: "TV"
x:70
y:440
Rectangle{
x:10
y:20
height:250
width:320
color:"#000"
//INSERT TV APPLICATION HERE
}
}
//Large Health Window
//Shows detailed health information
WindowSize3{
id: thirdHealth
text: "Health"
visible: false
}
//Large Changing Room Window
//Allows the user to put together an outfit
WindowSize3{
id: thirdOutfit
text: "Outfit"
visible: false
}
//Large stock window
//Allows user to view stocks in detail and over time.
WindowSize3{
id: thirdStocks
text: "Stocks"
}
//Large Preferences Window
//Gives the user the ablility to set up Google account, Wifi Connections, location.
WindowSize3{
id: thirdPreferences
text: "Preferences"
Item{
x: 10
y: 29
Rectangle{
y:10
width:500
height:270
color:"#000"
border.width:2
border.color:"#fff"
Item{
x:10
y:16
id: content_general
visible: true
Text{
color:"#fff"
text: "General"
}
}
Item{
x:10
y:16
id: content_google
visible: false
Text{
color:"#fff"
text: "Google"
}
}
Item{
x:10
y:16
id: content_wifi
visible: false
Text{
color:"#fff"
text: "Wifi"
}
}
}
Tab{
x:10
id: tab_general
hexcolor: "#fff"
text:"General"
}
Tab{
id: tab_google
x:122
hexcolor: "#444"
text:"Google"
}
Tab{
id: tab_wifi
x:234
hexcolor: "#444"
text:"Wifi"
}
}
}
//Large CTA Window
//
WindowSize3{
id: thirdCTA
text: "CTA"
}
//Large Calendar Window
//
WindowSize3{
id: thirdCalendar
text: "Calendar"
}
//Large Todo Window
//
WindowSize3{
id: thirdTodo
text: "Todo List"
}
//CTA Tracker/Traffic Information Quick Window
//Viewable information of traveling in Chicago
PermanentWindow{
id: firstCTA
hexcolor:"#444"
text:"CTA"
x:784
y:110
Item{
x:10
y:20
height:170
width:220
//color:"#222"
//INSERT CTA APPLICATION HERE
}
}
//Calendar Window 1
//View of what to do today
PermanentWindow{
id: firstCalendar
hexcolor:"#444"
text:"Calendar"
x:784
y:320
Item{
x:10
y:20
height:170
width:220
//color:"#222"
//INSERT CALENDAR APPLICATION HERE
}
}
//Todo List Window 1
//Things the user wants to do/should do according to the application
PermanentWindow{
id: firstTodo
hexcolor:"#444"
text:"Todo List"
x:784
y:530
Item{
x:10
y:20
height:170
width:220
//color:"#222"
//INSERT TODOLIST APPLICATION HERE
}
}
}