-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
140 lines (102 loc) · 2.87 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
import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 1.2
import QtGraphicalEffects 1.0
import QtQuick.Controls.Styles 1.0
import "view" as ROVView
Window {
property string rovName: "X8"
property string cerulean: "#6D9BC3"
property string teal: "#00BCD4"
property string amber: "#FFC107"
property string slate: "#455A64"
property string mainColor: slate
property string mainAccent: amber
id: mainWindow
visible: true
width: 1920
height: 1010
visibility: "Maximized"
color: "#151515"
title: "Purdue IEEE | ROV " + rovName
objectName: "mainWindow"
Rectangle {
id: actionBar
height: 60
width: mainWindow.width
color: mainColor
Text {
x: 20
height: actionBar.height
font.pixelSize: 30
color: "white"
verticalAlignment: Text.AlignVCenter
text: "BattleStation"
font.weight: Font.Thin
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: actionBar.bottom
height: 5
color: "black"
opacity: 0.2
}
ROVView.ROVHamburger {
drawer: drawer
}
}
ROVView.ROVDrawer {
id: drawer
ROVView.GUIDrawerConfiguration{}
}
Item {
objectName: "mainGrid"
id: mainGrid
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.top: actionBar.bottom
anchors.margins: 10
anchors.topMargin: 20
anchors.bottomMargin: 20
clip: true
transformOrigin: Item.TopLeft
//Left Column
Column {
id: leftColumn
width: mainGrid.width*0.3 - 10
height: mainGrid.height
spacing: 20
anchors.top: mainGrid.top
anchors.left: mainGrid.left
anchors.leftMargin: 0
ROVView.GUITimer{}
ROVView.GUIMissionTasks{}
}
//Center Column
Column {
id: centerColumn
width: mainGrid.width*0.4 - 10
height: mainGrid.height
spacing: 20
anchors.top: mainGrid.top
anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
ROVView.GUISystemStatus{}
ROVView.GUIConfiguration{}
}
//Right Column
Column {
id: rightColumn
width: mainGrid.width*0.3 - 10
height: mainGrid.height
spacing: 20
anchors.top: mainGrid.top
anchors.right: mainGrid.right
anchors.rightMargin: 0
ROVView.GUISensorData{}
ROVView.GUIThrusters{}
}
}
}