/
qgsdelimitedtextpluginguibase.ui
331 lines (331 loc) · 10.6 KB
/
qgsdelimitedtextpluginguibase.ui
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
<ui version="4.0" >
<class>QgsDelimitedTextPluginGuiBase</class>
<widget class="QDialog" name="QgsDelimitedTextPluginGuiBase" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>522</width>
<height>547</height>
</rect>
</property>
<property name="windowTitle" >
<string>Create a Layer from a Delimited Text File</string>
</property>
<property name="windowIcon" >
<iconset>
<normaloff/>
</iconset>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="7" >
<widget class="QLabel" name="txtHeading" >
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>20</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
<underline>false</underline>
<strikeout>false</strikeout>
</font>
</property>
<property name="text" >
<string>Delimited Text Layer</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="0" colspan="7" >
<widget class="QTextEdit" name="teInstructions" >
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="html" >
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Verdana';"></p></body></html></string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="textLabel1" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Delimited text file</string>
</property>
<property name="buddy" >
<cstring>txtFilePath</cstring>
</property>
</widget>
</item>
<item row="2" column="1" colspan="5" >
<widget class="QgsFileDropEdit" name="txtFilePath" >
<property name="toolTip" >
<string>Full path to the delimited text file</string>
</property>
<property name="whatsThis" >
<string>Full path to the delimited text file. In order to properly parse the fields in the file, the delimiter must be defined prior to entering the file name. Use the Browse button to the right of this field to choose the input file.</string>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="6" >
<widget class="QPushButton" name="btnBrowseForFile" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="toolTip" >
<string>Browse to find the delimited text file to be processed</string>
</property>
<property name="whatsThis" >
<string>Use this button to browse to the location of the delimited text file. This button will not be enabled until a delimiter has been entered in the <i>Delimiter</i> box. Once a file is chosen, the X and Y field drop-down boxes will be populated with the fields from the delimited text file.</string>
</property>
<property name="text" >
<string>...</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="textLabel1_2" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Layer name</string>
</property>
<property name="buddy" >
<cstring>txtLayerName</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="6" >
<widget class="QLineEdit" name="txtLayerName" >
<property name="toolTip" >
<string>Name to display in the map legend</string>
</property>
<property name="whatsThis" >
<string>Name displayed in the map legend</string>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="textLabel3" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Delimiter</string>
</property>
<property name="buddy" >
<cstring>txtDelimiter</cstring>
</property>
</widget>
</item>
<item row="4" column="1" colspan="6" >
<widget class="QLineEdit" name="txtDelimiter" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>32767</width>
<height>32767</height>
</size>
</property>
<property name="toolTip" >
<string>Delimiter to use when splitting fields in the text file. The delimiter can be more than one character.</string>
</property>
<property name="whatsThis" >
<string>Delimiter to use when splitting fields in the delimited text file. The delimiter can be 1 or more characters in length.</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Delimeter type</string>
</property>
<property name="buddy" >
<cstring>delimiterPlain</cstring>
</property>
</widget>
</item>
<item row="5" column="2" colspan="3" >
<widget class="QRadioButton" name="delimiterPlain" >
<property name="toolTip" >
<string>The delimiter is taken as is</string>
</property>
<property name="whatsThis" >
<string>The delimiter is taken as is</string>
</property>
<property name="text" >
<string>Plain characters</string>
</property>
</widget>
</item>
<item row="5" column="5" colspan="2" >
<widget class="QRadioButton" name="delimiterRegexp" >
<property name="toolTip" >
<string>The delimiter is a regular expression</string>
</property>
<property name="whatsThis" >
<string>The delimiter is a regular expression</string>
</property>
<property name="text" >
<string>Regular expression</string>
</property>
</widget>
</item>
<item row="6" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Geometry</string>
</property>
</widget>
</item>
<item row="6" column="1" colspan="2" >
<widget class="QLabel" name="textLabel2" >
<property name="text" >
<string><p align="right">X field</p></string>
</property>
<property name="buddy" >
<cstring>cmbXField</cstring>
</property>
</widget>
</item>
<item row="6" column="3" >
<widget class="QComboBox" name="cmbXField" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="toolTip" >
<string>Name of the field containing x values</string>
</property>
<property name="whatsThis" >
<string>Name of the field containing x values. Choose a field from the list. The list is generated by parsing the header row of the delimited text file.</string>
</property>
<property name="editable" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="4" >
<widget class="QLabel" name="textLabel2_2" >
<property name="text" >
<string><p align="right">Y field</p></string>
</property>
<property name="buddy" >
<cstring>cmbYField</cstring>
</property>
</widget>
</item>
<item row="6" column="5" colspan="2" >
<widget class="QComboBox" name="cmbYField" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="toolTip" >
<string>Name of the field containing y values</string>
</property>
<property name="whatsThis" >
<string>Name of the field containing y values. Choose a field from the list. The list is generated by parsing the header row of the delimited text file.</string>
</property>
<property name="editable" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="7" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Sample text</string>
</property>
<property name="buddy" >
<cstring>txtSample</cstring>
</property>
</widget>
</item>
<item row="8" column="0" colspan="7" >
<widget class="QTextEdit" name="txtSample" >
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="9" column="0" colspan="7" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<customwidgets>
<customwidget>
<class>QgsFileDropEdit</class>
<extends>QLineEdit</extends>
<header>qgsfiledropedit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>teInstructions</tabstop>
<tabstop>txtFilePath</tabstop>
<tabstop>btnBrowseForFile</tabstop>
<tabstop>txtLayerName</tabstop>
<tabstop>txtDelimiter</tabstop>
<tabstop>delimiterPlain</tabstop>
<tabstop>delimiterRegexp</tabstop>
<tabstop>cmbXField</tabstop>
<tabstop>cmbYField</tabstop>
<tabstop>txtSample</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources>
<include location="delimited_text.qrc" />
</resources>
<connections/>
</ui>