4
<exportmacro></exportmacro>
1
<?xml version="1.0" encoding="UTF-8"?>
5
3
<class>QgsGPSDeviceDialogBase</class>
6
<widget class="QDialog" name="QgsGPSDeviceDialogBase" >
7
<property name="geometry" >
4
<widget class="QDialog" name="QgsGPSDeviceDialogBase">
5
<property name="geometry">
15
<property name="sizePolicy" >
17
<hsizetype>1</hsizetype>
18
<vsizetype>1</vsizetype>
13
<property name="sizePolicy">
14
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
19
15
<horstretch>0</horstretch>
20
16
<verstretch>0</verstretch>
23
<property name="windowTitle" >
19
<property name="windowTitle">
24
20
<string>GPS Device Editor</string>
26
<property name="modal" >
22
<property name="modal">
29
<layout class="QVBoxLayout" >
30
<property name="margin" >
33
<property name="spacing" >
37
<widget class="QSplitter" name="splitter" >
38
<property name="orientation" >
39
<enum>Qt::Horizontal</enum>
41
<widget class="QWidget" name="layoutWidget_2" >
42
<layout class="QVBoxLayout" >
43
<property name="margin" >
46
<property name="spacing" >
50
<widget class="QListWidget" name="lbDeviceList" >
51
<property name="sizePolicy" >
53
<hsizetype>5</hsizetype>
54
<vsizetype>5</vsizetype>
55
<horstretch>0</horstretch>
56
<verstretch>0</verstretch>
62
<widget class="QPushButton" name="pbnNewDevice" >
63
<property name="sizePolicy" >
65
<hsizetype>1</hsizetype>
66
<vsizetype>0</vsizetype>
67
<horstretch>0</horstretch>
68
<verstretch>0</verstretch>
71
<property name="text" >
72
<string>New device</string>
77
<widget class="QPushButton" name="pbnDeleteDevice" >
78
<property name="sizePolicy" >
80
<hsizetype>1</hsizetype>
81
<vsizetype>0</vsizetype>
82
<horstretch>0</horstretch>
83
<verstretch>0</verstretch>
86
<property name="text" >
87
<string>Delete device</string>
92
<widget class="QPushButton" name="pbnUpdateDevice" >
93
<property name="sizePolicy" >
95
<hsizetype>1</hsizetype>
96
<vsizetype>0</vsizetype>
97
<horstretch>0</horstretch>
98
<verstretch>0</verstretch>
101
<property name="text" >
102
<string>Update device</string>
108
<widget class="QWidget" name="layoutWidget_3" >
109
<layout class="QVBoxLayout" >
110
<property name="margin" >
113
<property name="spacing" >
117
<layout class="QHBoxLayout" >
118
<property name="margin" >
121
<property name="spacing" >
125
<widget class="QLabel" name="textLabel3" >
126
<property name="sizePolicy" >
128
<hsizetype>1</hsizetype>
129
<vsizetype>5</vsizetype>
130
<horstretch>0</horstretch>
131
<verstretch>0</verstretch>
134
<property name="text" >
135
<string>Device name:</string>
140
<widget class="QLineEdit" name="leDeviceName" >
141
<property name="sizePolicy" >
143
<hsizetype>7</hsizetype>
144
<vsizetype>0</vsizetype>
145
<horstretch>2</horstretch>
146
<verstretch>0</verstretch>
149
<property name="toolTip" >
150
<string>This is the name of the device as it will appear in the lists</string>
157
<widget class="QGroupBox" name="groupBox" >
158
<property name="title" >
159
<string>Commands</string>
161
<property name="alignment" >
162
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
164
<layout class="QGridLayout" >
165
<property name="margin" >
168
<property name="spacing" >
171
<item row="4" column="0" >
172
<widget class="QLabel" name="textLabel1_2_5" >
173
<property name="text" >
174
<string>Track download:</string>
178
<item row="3" column="0" >
179
<widget class="QLabel" name="textLabel1_2_4" >
180
<property name="text" >
181
<string>Route upload:</string>
185
<item row="0" column="0" >
186
<widget class="QLabel" name="textLabel1_2" >
187
<property name="text" >
188
<string>Waypoint download:</string>
192
<item row="2" column="1" >
193
<widget class="QLineEdit" name="leRteDown" >
194
<property name="toolTip" >
195
<string>The command that is used to download routes from the device</string>
199
<item row="2" column="0" >
200
<widget class="QLabel" name="textLabel1_2_3" >
201
<property name="text" >
202
<string>Route download:</string>
206
<item row="1" column="1" >
207
<widget class="QLineEdit" name="leWptUp" >
208
<property name="toolTip" >
209
<string>The command that is used to upload waypoints to the device</string>
213
<item row="5" column="0" >
214
<widget class="QLabel" name="textLabel1_2_5_2" >
215
<property name="text" >
216
<string>Track upload:</string>
220
<item row="4" column="1" >
221
<widget class="QLineEdit" name="leTrkDown" >
222
<property name="toolTip" >
223
<string>The command that is used to download tracks from the device</string>
227
<item row="3" column="1" >
228
<widget class="QLineEdit" name="leRteUp" >
229
<property name="toolTip" >
230
<string>The command that is used to upload routes to the device</string>
234
<item row="0" column="1" >
235
<widget class="QLineEdit" name="leWptDown" >
236
<property name="toolTip" >
237
<string>The command that is used to download waypoints from the device</string>
241
<item row="5" column="1" >
242
<widget class="QLineEdit" name="leTrkUp" >
243
<property name="toolTip" >
244
<string>The command that is used to upload tracks to the device</string>
248
<item row="1" column="0" >
249
<widget class="QLabel" name="textLabel1_2_2" >
250
<property name="text" >
251
<string>Waypoint upload:</string>
259
<widget class="QTextEdit" name="textEdit" >
260
<property name="sizePolicy" >
262
<hsizetype>5</hsizetype>
263
<vsizetype>5</vsizetype>
264
<horstretch>0</horstretch>
265
<verstretch>0</verstretch>
268
<property name="html" >
269
<string><html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">In the download and upload commands there can be special words that will be replaced by QGIS when the commands are used. These words are:<span style=" font-style:italic;">%babel</span> - the path to GPSBabel<br /><span style=" font-style:italic;">%in</span> - the GPX filename when uploading or the port when downloading<br /><span style=" font-style:italic;">%out</span> - the port when uploading or the GPX filename when downloading</p></body></html></string>
25
<layout class="QGridLayout" name="gridLayout_2">
26
<item row="0" column="0">
27
<widget class="QGroupBox" name="groupBox_2">
28
<property name="sizePolicy">
29
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
30
<horstretch>0</horstretch>
31
<verstretch>0</verstretch>
34
<property name="title">
35
<string>Devices</string>
37
<layout class="QGridLayout" name="gridLayout">
38
<item row="1" column="1">
39
<widget class="QPushButton" name="pbnDeleteDevice">
40
<property name="sizePolicy">
41
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
42
<horstretch>0</horstretch>
43
<verstretch>0</verstretch>
46
<property name="text">
47
<string>Delete</string>
51
<item row="1" column="0">
52
<widget class="QPushButton" name="pbnNewDevice">
53
<property name="sizePolicy">
54
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
55
<horstretch>0</horstretch>
56
<verstretch>0</verstretch>
59
<property name="text">
64
<item row="1" column="2">
65
<widget class="QPushButton" name="pbnUpdateDevice">
66
<property name="sizePolicy">
67
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
68
<horstretch>0</horstretch>
69
<verstretch>0</verstretch>
72
<property name="text">
73
<string>Update</string>
77
<item row="0" column="0" colspan="3">
78
<widget class="QListWidget" name="lbDeviceList">
79
<property name="sizePolicy">
80
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
81
<horstretch>0</horstretch>
82
<verstretch>0</verstretch>
85
<property name="minimumSize">
278
<layout class="QHBoxLayout" >
279
<property name="margin" >
282
<property name="spacing" >
287
<property name="orientation" >
288
<enum>Qt::Horizontal</enum>
290
<property name="sizeHint" >
299
<widget class="QPushButton" name="pbnClose" >
300
<property name="text" >
301
<string>Close</string>
303
<property name="default" >
96
<item row="0" column="1">
97
<layout class="QVBoxLayout" name="verticalLayout">
99
<layout class="QHBoxLayout">
100
<property name="spacing">
103
<property name="margin">
107
<widget class="QLabel" name="textLabel3">
108
<property name="sizePolicy">
109
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
110
<horstretch>0</horstretch>
111
<verstretch>0</verstretch>
114
<property name="text">
115
<string>Device name</string>
117
<property name="buddy">
118
<cstring>leDeviceName</cstring>
123
<widget class="QLineEdit" name="leDeviceName">
124
<property name="sizePolicy">
125
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
126
<horstretch>2</horstretch>
127
<verstretch>0</verstretch>
130
<property name="toolTip">
131
<string>This is the name of the device as it will appear in the lists</string>
138
<widget class="QGroupBox" name="groupBox">
139
<property name="title">
140
<string>Commands</string>
142
<property name="alignment">
143
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
145
<layout class="QGridLayout">
146
<property name="margin">
149
<property name="spacing">
152
<item row="4" column="0">
153
<widget class="QLabel" name="textLabel1_2_5">
154
<property name="text">
155
<string>Track download</string>
157
<property name="buddy">
158
<cstring>leTrkDown</cstring>
162
<item row="3" column="0">
163
<widget class="QLabel" name="textLabel1_2_4">
164
<property name="text">
165
<string>Route upload</string>
167
<property name="buddy">
168
<cstring>leRteUp</cstring>
172
<item row="0" column="0">
173
<widget class="QLabel" name="textLabel1_2">
174
<property name="text">
175
<string>Waypoint download</string>
177
<property name="buddy">
178
<cstring>leWptDown</cstring>
182
<item row="2" column="1">
183
<widget class="QLineEdit" name="leRteDown">
184
<property name="toolTip">
185
<string>The command that is used to download routes from the device</string>
189
<item row="2" column="0">
190
<widget class="QLabel" name="textLabel1_2_3">
191
<property name="text">
192
<string>Route download</string>
194
<property name="buddy">
195
<cstring>leRteDown</cstring>
199
<item row="1" column="1">
200
<widget class="QLineEdit" name="leWptUp">
201
<property name="toolTip">
202
<string>The command that is used to upload waypoints to the device</string>
206
<item row="5" column="0">
207
<widget class="QLabel" name="textLabel1_2_5_2">
208
<property name="text">
209
<string>Track upload</string>
211
<property name="buddy">
212
<cstring>leTrkUp</cstring>
216
<item row="4" column="1">
217
<widget class="QLineEdit" name="leTrkDown">
218
<property name="toolTip">
219
<string>The command that is used to download tracks from the device</string>
223
<item row="3" column="1">
224
<widget class="QLineEdit" name="leRteUp">
225
<property name="toolTip">
226
<string>The command that is used to upload routes to the device</string>
230
<item row="0" column="1">
231
<widget class="QLineEdit" name="leWptDown">
232
<property name="toolTip">
233
<string>The command that is used to download waypoints from the device</string>
237
<item row="5" column="1">
238
<widget class="QLineEdit" name="leTrkUp">
239
<property name="toolTip">
240
<string>The command that is used to upload tracks to the device</string>
244
<item row="1" column="0">
245
<widget class="QLabel" name="textLabel1_2_2">
246
<property name="text">
247
<string>Waypoint upload</string>
249
<property name="buddy">
250
<cstring>leWptUp</cstring>
258
<widget class="QTextEdit" name="textEdit">
259
<property name="sizePolicy">
260
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
261
<horstretch>0</horstretch>
262
<verstretch>0</verstretch>
265
<property name="acceptDrops">
268
<property name="readOnly">
304
269
<bool>true</bool>
271
<property name="html">
272
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
273
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
274
p, li { white-space: pre-wrap; }
275
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
276
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">In the download and upload commands there can be special words that will be replaced by QGIS when the commands are used. These words are:</span><span style=" font-family:'Sans Serif'; font-size:9pt; font-style:italic;">%babel</span><span style=" font-family:'Sans Serif'; font-size:9pt;"> - the path to GPSBabel<br /></span><span style=" font-family:'Sans Serif'; font-size:9pt; font-style:italic;">%in</span><span style=" font-family:'Sans Serif'; font-size:9pt;"> - the GPX filename when uploading or the port when downloading<br /></span><span style=" font-family:'Sans Serif'; font-size:9pt; font-style:italic;">%out</span><span style=" font-family:'Sans Serif'; font-size:9pt;"> - the port when uploading or the GPX filename when downloading</span></p></body></html></string>
278
<property name="textInteractionFlags">
279
<set>Qt::NoTextInteraction</set>
285
<item row="1" column="0" colspan="2">
286
<widget class="QDialogButtonBox" name="buttonBox">
287
<property name="standardButtons">
288
<set>QDialogButtonBox::Close</set>
312
<layoutdefault spacing="6" margin="11" />
313
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
294
<layoutdefault spacing="6" margin="11"/>
296
<tabstop>lbDeviceList</tabstop>
297
<tabstop>pbnNewDevice</tabstop>
298
<tabstop>pbnDeleteDevice</tabstop>
299
<tabstop>pbnUpdateDevice</tabstop>
300
<tabstop>leDeviceName</tabstop>
301
<tabstop>leWptDown</tabstop>
302
<tabstop>leWptUp</tabstop>
303
<tabstop>leRteDown</tabstop>
304
<tabstop>leRteUp</tabstop>
305
<tabstop>leTrkDown</tabstop>
306
<tabstop>leTrkUp</tabstop>
307
<tabstop>textEdit</tabstop>
308
<tabstop>buttonBox</tabstop>
313
<sender>buttonBox</sender>
314
<signal>clicked(QAbstractButton*)</signal>
315
<receiver>QgsGPSDeviceDialogBase</receiver>
316
<slot>accept()</slot>
318
<hint type="sourcelabel">
322
<hint type="destinationlabel">