-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmain.qml
157 lines (140 loc) · 3.49 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
import QtQuick 2.0
import QtQuick.Window 2.0
import QtLocation 5.6
import QtPositioning 5.6
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.3
Window {
id: mainWindow
objectName: "mainWindow"
width: 1024
height: 500
color: "#f4ba22"
title: "Kitti Dataset GPS-INS Viewer"
visible: true
Plugin {
id: mapPlugin
name: "osm"
}
property var initialPosition: QtPositioning.coordinate(32.7767828,35.0253158) // Technion
Map {
anchors.topMargin: 70
anchors.fill: parent
plugin: mapPlugin
center: initialPosition
zoomLevel: 20
objectName: "osmMap"
MapCircle {
objectName: "mapCircleStart"
center: initialPosition
color: "red"
opacity: 0.7
radius: 2.5
}
MapCircle {
objectName: "mapCircleRoute"
center: initialPosition
color: "green"
opacity: 0.7
radius: 1
visible: false
}
Text {
id: velocityText
objectName: "velocityText"
x: 844
y: 8
width: 126
height: 50
text: qsTr("0.0 [Km/h]")
lineHeight: 1
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18
}
Text {
id: azimuthText
objectName: "azimuthText"
visible: true
x: 844
y: 38
width: 126
height: 50
text: qsTr("0.0 [°]")
lineHeight: 1
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.bold: true
font.pixelSize: 18
}
}
Item {
id: loadButton
x: parent.width/2 - width - 50
y: parent.y + 2
width: 150
height: 42
Button {
x: 532
y: 10
text: "Load"
objectName: "loadButton"
}
}
Item {
id: startButton
x: parent.width/2 + 50
y: parent.y + 2
width: 150
height: 42
Button {
x: 374
y: 10
text: "Start"
objectName: "startButton"
}
}
FileDialog {
id: folderDialog
objectName: "folderDialog"
selectFolder: true
selectExisting: true
title: "Select Kitti Dataset Folder"
onAccepted: textInput.text = folderDialog.fileUrl
}
Item {
id: textEntry
x: 8
y: 8
width: 320
height: 32
Button {
id: browseButton
objectName: "browseButton"
x: 679
y: 5
text: qsTr("Browse")
onClicked: folderDialog.open()
}
}
Rectangle {
id: rectangle
x: 8
y: 8
width: 668
height: 36
color: "#e0f98b"
border.width: 1
TextInput {
id: textInput
objectName: "folderPath"
x: 8
y: 8
width: parent.width
height: parent.height
text: qsTr("Please browse and select an oxts folder...")
font.pixelSize: 12
}
}
}