|
153 | 153 | <string>Options</string>
|
154 | 154 | </property>
|
155 | 155 | <layout class="QGridLayout" name="gridLayout">
|
| 156 | + <item row="5" column="0" colspan="2"> |
| 157 | + <widget class="QCheckBox" name="chkDropTable"> |
| 158 | + <property name="text"> |
| 159 | + <string>Replace destination table (if exists)</string> |
| 160 | + </property> |
| 161 | + </widget> |
| 162 | + </item> |
156 | 163 | <item row="0" column="0">
|
157 | 164 | <widget class="QCheckBox" name="chkPrimaryKey">
|
158 | 165 | <property name="text">
|
|
181 | 188 | </property>
|
182 | 189 | </widget>
|
183 | 190 | </item>
|
184 |
| - <item row="2" column="0" colspan="2"> |
185 |
| - <layout class="QHBoxLayout" name="horizontalLayout"> |
186 |
| - <item> |
187 |
| - <widget class="QCheckBox" name="chkSourceSrid"> |
188 |
| - <property name="text"> |
189 |
| - <string>Source SRID</string> |
190 |
| - </property> |
191 |
| - </widget> |
192 |
| - </item> |
193 |
| - <item> |
194 |
| - <widget class="QLineEdit" name="editSourceSrid"> |
195 |
| - <property name="enabled"> |
196 |
| - <bool>false</bool> |
197 |
| - </property> |
198 |
| - </widget> |
199 |
| - </item> |
200 |
| - <item> |
201 |
| - <spacer name="spacer"> |
202 |
| - <property name="orientation"> |
203 |
| - <enum>Qt::Horizontal</enum> |
204 |
| - </property> |
205 |
| - <property name="sizeType"> |
206 |
| - <enum>QSizePolicy::Fixed</enum> |
207 |
| - </property> |
208 |
| - <property name="sizeHint" stdset="0"> |
209 |
| - <size> |
210 |
| - <width>40</width> |
211 |
| - <height>20</height> |
212 |
| - </size> |
213 |
| - </property> |
214 |
| - </spacer> |
215 |
| - </item> |
216 |
| - <item> |
217 |
| - <widget class="QCheckBox" name="chkTargetSrid"> |
218 |
| - <property name="text"> |
219 |
| - <string>Target SRID</string> |
220 |
| - </property> |
221 |
| - </widget> |
222 |
| - </item> |
223 |
| - <item> |
224 |
| - <widget class="QLineEdit" name="editTargetSrid"> |
225 |
| - <property name="enabled"> |
226 |
| - <bool>false</bool> |
227 |
| - </property> |
228 |
| - </widget> |
229 |
| - </item> |
230 |
| - </layout> |
231 |
| - </item> |
232 |
| - <item row="3" column="0"> |
| 191 | + <item row="4" column="0"> |
233 | 192 | <widget class="QCheckBox" name="chkEncoding">
|
234 | 193 | <property name="text">
|
235 | 194 | <string>Encoding</string>
|
236 | 195 | </property>
|
237 | 196 | </widget>
|
238 | 197 | </item>
|
239 |
| - <item row="3" column="1"> |
| 198 | + <item row="4" column="1"> |
240 | 199 | <widget class="QComboBox" name="cboEncoding">
|
241 | 200 | <property name="enabled">
|
242 | 201 | <bool>false</bool>
|
|
246 | 205 | </property>
|
247 | 206 | </widget>
|
248 | 207 | </item>
|
249 |
| - <item row="6" column="0" colspan="2"> |
| 208 | + <item row="7" column="0" colspan="2"> |
250 | 209 | <widget class="QCheckBox" name="chkSinglePart">
|
251 | 210 | <property name="text">
|
252 | 211 | <string>Create single-part geometries instead of multi-part</string>
|
253 | 212 | </property>
|
254 | 213 | </widget>
|
255 | 214 | </item>
|
256 |
| - <item row="8" column="0" colspan="2"> |
| 215 | + <item row="9" column="0" colspan="2"> |
257 | 216 | <widget class="QCheckBox" name="chkSpatialIndex">
|
258 | 217 | <property name="text">
|
259 | 218 | <string>Create spatial index</string>
|
260 | 219 | </property>
|
261 | 220 | </widget>
|
262 | 221 | </item>
|
263 |
| - <item row="4" column="0" colspan="2"> |
264 |
| - <widget class="QCheckBox" name="chkDropTable"> |
| 222 | + <item row="8" column="0"> |
| 223 | + <widget class="QCheckBox" name="chkLowercaseFieldNames"> |
265 | 224 | <property name="text">
|
266 |
| - <string>Replace destination table (if exists)</string> |
| 225 | + <string>Convert field names to lowercase</string> |
267 | 226 | </property>
|
268 | 227 | </widget>
|
269 | 228 | </item>
|
270 |
| - <item row="7" column="0"> |
271 |
| - <widget class="QCheckBox" name="chkLowercaseFieldNames"> |
| 229 | + <item row="3" column="0"> |
| 230 | + <widget class="QCheckBox" name="chkTargetSrid"> |
272 | 231 | <property name="text">
|
273 |
| - <string>Convert field names to lowercase</string> |
| 232 | + <string>Target SRID</string> |
| 233 | + </property> |
| 234 | + </widget> |
| 235 | + </item> |
| 236 | + <item row="3" column="1"> |
| 237 | + <widget class="QgsProjectionSelectionWidget" name="widgetTargetSrid" native="true"> |
| 238 | + <property name="enabled"> |
| 239 | + <bool>false</bool> |
| 240 | + </property> |
| 241 | + </widget> |
| 242 | + </item> |
| 243 | + <item row="2" column="1"> |
| 244 | + <widget class="QgsProjectionSelectionWidget" name="widgetSourceSrid" native="true"> |
| 245 | + <property name="enabled"> |
| 246 | + <bool>false</bool> |
| 247 | + </property> |
| 248 | + </widget> |
| 249 | + </item> |
| 250 | + <item row="2" column="0"> |
| 251 | + <widget class="QCheckBox" name="chkSourceSrid"> |
| 252 | + <property name="text"> |
| 253 | + <string>Source SRID</string> |
274 | 254 | </property>
|
275 | 255 | </widget>
|
276 | 256 | </item>
|
|
293 | 273 | <zorder>groupBox_3</zorder>
|
294 | 274 | <zorder>wdgInput</zorder>
|
295 | 275 | </widget>
|
| 276 | + <customwidgets> |
| 277 | + <customwidget> |
| 278 | + <class>QgsProjectionSelectionWidget</class> |
| 279 | + <extends>QWidget</extends> |
| 280 | + <header>qgis.gui</header> |
| 281 | + <container>1</container> |
| 282 | + </customwidget> |
| 283 | + </customwidgets> |
296 | 284 | <tabstops>
|
| 285 | + <tabstop>cboInputLayer</tabstop> |
| 286 | + <tabstop>btnChooseInputFile</tabstop> |
| 287 | + <tabstop>chkSelectedFeatures</tabstop> |
| 288 | + <tabstop>btnUpdateInputLayer</tabstop> |
| 289 | + <tabstop>cboSchema</tabstop> |
| 290 | + <tabstop>cboTable</tabstop> |
| 291 | + <tabstop>chkPrimaryKey</tabstop> |
| 292 | + <tabstop>editPrimaryKey</tabstop> |
| 293 | + <tabstop>chkGeomColumn</tabstop> |
| 294 | + <tabstop>editGeomColumn</tabstop> |
297 | 295 | <tabstop>chkSourceSrid</tabstop>
|
298 |
| - <tabstop>editSourceSrid</tabstop> |
| 296 | + <tabstop>chkTargetSrid</tabstop> |
299 | 297 | <tabstop>chkEncoding</tabstop>
|
300 | 298 | <tabstop>cboEncoding</tabstop>
|
| 299 | + <tabstop>chkDropTable</tabstop> |
301 | 300 | <tabstop>chkSinglePart</tabstop>
|
| 301 | + <tabstop>chkLowercaseFieldNames</tabstop> |
302 | 302 | <tabstop>chkSpatialIndex</tabstop>
|
303 |
| - <tabstop>buttonBox</tabstop> |
304 | 303 | </tabstops>
|
305 | 304 | <resources/>
|
306 | 305 | <connections>
|
|
311 | 310 | <slot>reject()</slot>
|
312 | 311 | <hints>
|
313 | 312 | <hint type="sourcelabel">
|
314 |
| - <x>325</x> |
315 |
| - <y>518</y> |
| 313 | + <x>334</x> |
| 314 | + <y>486</y> |
316 | 315 | </hint>
|
317 | 316 | <hint type="destinationlabel">
|
318 | 317 | <x>286</x>
|
|
327 | 326 | <slot>setEnabled(bool)</slot>
|
328 | 327 | <hints>
|
329 | 328 | <hint type="sourcelabel">
|
330 |
| - <x>108</x> |
331 |
| - <y>347</y> |
| 329 | + <x>129</x> |
| 330 | + <y>239</y> |
332 | 331 | </hint>
|
333 | 332 | <hint type="destinationlabel">
|
334 |
| - <x>207</x> |
335 |
| - <y>345</y> |
| 333 | + <x>460</x> |
| 334 | + <y>239</y> |
336 | 335 | </hint>
|
337 | 336 | </hints>
|
338 | 337 | </connection>
|
|
343 | 342 | <slot>setEnabled(bool)</slot>
|
344 | 343 | <hints>
|
345 | 344 | <hint type="sourcelabel">
|
346 |
| - <x>120</x> |
347 |
| - <y>367</y> |
| 345 | + <x>141</x> |
| 346 | + <y>265</y> |
348 | 347 | </hint>
|
349 | 348 | <hint type="destinationlabel">
|
350 |
| - <x>188</x> |
351 |
| - <y>367</y> |
| 349 | + <x>442</x> |
| 350 | + <y>265</y> |
352 | 351 | </hint>
|
353 | 352 | </hints>
|
354 | 353 | </connection>
|
355 | 354 | <connection>
|
356 |
| - <sender>chkSourceSrid</sender> |
| 355 | + <sender>chkEncoding</sender> |
357 | 356 | <signal>toggled(bool)</signal>
|
358 |
| - <receiver>editSourceSrid</receiver> |
| 357 | + <receiver>cboEncoding</receiver> |
359 | 358 | <slot>setEnabled(bool)</slot>
|
360 | 359 | <hints>
|
361 | 360 | <hint type="sourcelabel">
|
362 |
| - <x>115</x> |
363 |
| - <y>390</y> |
| 361 | + <x>119</x> |
| 362 | + <y>343</y> |
364 | 363 | </hint>
|
365 | 364 | <hint type="destinationlabel">
|
366 |
| - <x>166</x> |
367 |
| - <y>394</y> |
| 365 | + <x>455</x> |
| 366 | + <y>343</y> |
368 | 367 | </hint>
|
369 | 368 | </hints>
|
370 | 369 | </connection>
|
371 | 370 | <connection>
|
372 |
| - <sender>chkTargetSrid</sender> |
373 |
| - <signal>toggled(bool)</signal> |
374 |
| - <receiver>editTargetSrid</receiver> |
375 |
| - <slot>setEnabled(bool)</slot> |
| 371 | + <sender>buttonBox</sender> |
| 372 | + <signal>accepted()</signal> |
| 373 | + <receiver>DbManagerDlgImportVector</receiver> |
| 374 | + <slot>accept()</slot> |
376 | 375 | <hints>
|
377 | 376 | <hint type="sourcelabel">
|
378 |
| - <x>360</x> |
379 |
| - <y>396</y> |
| 377 | + <x>461</x> |
| 378 | + <y>486</y> |
380 | 379 | </hint>
|
381 | 380 | <hint type="destinationlabel">
|
382 |
| - <x>435</x> |
383 |
| - <y>394</y> |
| 381 | + <x>508</x> |
| 382 | + <y>243</y> |
384 | 383 | </hint>
|
385 | 384 | </hints>
|
386 | 385 | </connection>
|
387 | 386 | <connection>
|
388 |
| - <sender>chkEncoding</sender> |
| 387 | + <sender>chkSourceSrid</sender> |
389 | 388 | <signal>toggled(bool)</signal>
|
390 |
| - <receiver>cboEncoding</receiver> |
| 389 | + <receiver>widgetSourceSrid</receiver> |
391 | 390 | <slot>setEnabled(bool)</slot>
|
392 | 391 | <hints>
|
393 | 392 | <hint type="sourcelabel">
|
394 |
| - <x>98</x> |
395 |
| - <y>415</y> |
| 393 | + <x>134</x> |
| 394 | + <y>281</y> |
396 | 395 | </hint>
|
397 | 396 | <hint type="destinationlabel">
|
398 |
| - <x>201</x> |
399 |
| - <y>414</y> |
| 397 | + <x>357</x> |
| 398 | + <y>281</y> |
400 | 399 | </hint>
|
401 | 400 | </hints>
|
402 | 401 | </connection>
|
403 | 402 | <connection>
|
404 |
| - <sender>buttonBox</sender> |
405 |
| - <signal>accepted()</signal> |
406 |
| - <receiver>DbManagerDlgImportVector</receiver> |
407 |
| - <slot>accept()</slot> |
| 403 | + <sender>chkTargetSrid</sender> |
| 404 | + <signal>toggled(bool)</signal> |
| 405 | + <receiver>widgetTargetSrid</receiver> |
| 406 | + <slot>setEnabled(bool)</slot> |
408 | 407 | <hints>
|
409 | 408 | <hint type="sourcelabel">
|
410 |
| - <x>452</x> |
411 |
| - <y>505</y> |
| 409 | + <x>134</x> |
| 410 | + <y>307</y> |
412 | 411 | </hint>
|
413 | 412 | <hint type="destinationlabel">
|
414 |
| - <x>508</x> |
415 |
| - <y>243</y> |
| 413 | + <x>357</x> |
| 414 | + <y>307</y> |
416 | 415 | </hint>
|
417 | 416 | </hints>
|
418 | 417 | </connection>
|
|
0 commit comments