Skip to content

Commit 302a019

Browse files
author
timlinux
committedAug 27, 2008
Gui tidy ups:
- use buddies - set tab order - get rid of superfluos layouts - remove colons from labels for sonsistency with other qgis dialogs - adjust sizing behaviour a little git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9193 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+272
-332
lines changed

1 file changed

+272
-332
lines changed
 

‎src/plugins/ogr_converter/ogrconverterguibase.ui

Lines changed: 272 additions & 332 deletions
Original file line numberDiff line numberDiff line change
@@ -5,374 +5,314 @@
55
<rect>
66
<x>0</x>
77
<y>0</y>
8-
<width>521</width>
9-
<height>450</height>
8+
<width>491</width>
9+
<height>400</height>
1010
</rect>
1111
</property>
1212
<property name="sizePolicy" >
13-
<sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
13+
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
1414
<horstretch>0</horstretch>
1515
<verstretch>0</verstretch>
1616
</sizepolicy>
1717
</property>
1818
<property name="minimumSize" >
1919
<size>
20-
<width>520</width>
21-
<height>450</height>
20+
<width>400</width>
21+
<height>400</height>
2222
</size>
2323
</property>
2424
<property name="windowTitle" >
2525
<string>OGR Layer Converter</string>
2626
</property>
2727
<property name="windowIcon" >
28-
<iconset>
29-
<normaloff/>
30-
</iconset>
28+
<iconset/>
3129
</property>
32-
<layout class="QGridLayout" name="gridLayout" >
30+
<layout class="QGridLayout" >
3331
<item row="0" column="0" >
3432
<widget class="QGroupBox" name="srcGroupBox" >
33+
<property name="sizePolicy" >
34+
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
35+
<horstretch>0</horstretch>
36+
<verstretch>0</verstretch>
37+
</sizepolicy>
38+
</property>
3539
<property name="title" >
3640
<string>Source</string>
3741
</property>
38-
<widget class="QWidget" name="" >
39-
<property name="geometry" >
40-
<rect>
41-
<x>20</x>
42-
<y>30</y>
43-
<width>461</width>
44-
<height>28</height>
45-
</rect>
46-
</property>
47-
<layout class="QHBoxLayout" name="horizontalLayout" >
48-
<item>
49-
<widget class="QLabel" name="labelSrcFormat" >
50-
<property name="minimumSize" >
51-
<size>
52-
<width>52</width>
53-
<height>22</height>
54-
</size>
55-
</property>
56-
<property name="text" >
57-
<string>Format:</string>
58-
</property>
59-
</widget>
60-
</item>
61-
<item>
62-
<widget class="QComboBox" name="comboSrcFormats" >
63-
<property name="minimumSize" >
64-
<size>
65-
<width>200</width>
66-
<height>0</height>
67-
</size>
68-
</property>
69-
<property name="maxCount" >
70-
<number>200</number>
71-
</property>
72-
</widget>
73-
</item>
74-
<item>
75-
<spacer name="horizontalSpacer_3" >
76-
<property name="orientation" >
77-
<enum>Qt::Horizontal</enum>
78-
</property>
79-
<property name="sizeHint" stdset="0" >
80-
<size>
81-
<width>40</width>
82-
<height>20</height>
83-
</size>
84-
</property>
85-
</spacer>
86-
</item>
87-
</layout>
88-
</widget>
89-
<widget class="QWidget" name="" >
90-
<property name="geometry" >
91-
<rect>
92-
<x>20</x>
93-
<y>70</y>
94-
<width>461</width>
95-
<height>21</height>
96-
</rect>
97-
</property>
98-
<layout class="QHBoxLayout" name="horizontalLayout_4" >
99-
<item>
100-
<widget class="QRadioButton" name="radioSrcFile" >
101-
<property name="text" >
102-
<string>File</string>
103-
</property>
104-
</widget>
105-
</item>
106-
<item>
107-
<widget class="QRadioButton" name="radioSrcDirectory" >
108-
<property name="text" >
109-
<string>Directory</string>
110-
</property>
111-
</widget>
112-
</item>
113-
<item>
114-
<widget class="QRadioButton" name="radioSrcProtocol" >
115-
<property name="text" >
116-
<string>Remote source</string>
117-
</property>
118-
</widget>
119-
</item>
120-
</layout>
121-
</widget>
122-
<widget class="QWidget" name="" >
123-
<property name="geometry" >
124-
<rect>
125-
<x>21</x>
126-
<y>140</y>
127-
<width>461</width>
128-
<height>28</height>
129-
</rect>
130-
</property>
131-
<layout class="QHBoxLayout" name="horizontalLayout_2" >
132-
<item>
133-
<widget class="QLabel" name="labelSrcLayer" >
134-
<property name="minimumSize" >
135-
<size>
136-
<width>52</width>
137-
<height>22</height>
138-
</size>
139-
</property>
140-
<property name="text" >
141-
<string>Layer:</string>
142-
</property>
143-
</widget>
144-
</item>
145-
<item>
146-
<widget class="QComboBox" name="comboSrcLayer" >
147-
<property name="minimumSize" >
148-
<size>
149-
<width>300</width>
150-
<height>0</height>
151-
</size>
152-
</property>
153-
</widget>
154-
</item>
155-
<item>
156-
<spacer name="horizontalSpacer_2" >
157-
<property name="orientation" >
158-
<enum>Qt::Horizontal</enum>
159-
</property>
160-
<property name="sizeHint" stdset="0" >
161-
<size>
162-
<width>88</width>
163-
<height>17</height>
164-
</size>
165-
</property>
166-
</spacer>
167-
</item>
168-
</layout>
169-
</widget>
170-
<widget class="QWidget" name="" >
171-
<property name="geometry" >
172-
<rect>
173-
<x>21</x>
174-
<y>100</y>
175-
<width>457</width>
176-
<height>34</height>
177-
</rect>
178-
</property>
179-
<layout class="QHBoxLayout" name="horizontalLayout_6" >
180-
<item>
181-
<widget class="QLabel" name="labelSrcDataset" >
182-
<property name="text" >
183-
<string>Dataset:</string>
184-
</property>
185-
</widget>
186-
</item>
187-
<item>
188-
<widget class="QLineEdit" name="inputSrcDataset" >
189-
<property name="minimumSize" >
190-
<size>
191-
<width>300</width>
192-
<height>0</height>
193-
</size>
194-
</property>
195-
</widget>
196-
</item>
197-
<item>
198-
<widget class="QPushButton" name="buttonSelectSrc" >
199-
<property name="minimumSize" >
200-
<size>
201-
<width>90</width>
202-
<height>0</height>
203-
</size>
204-
</property>
205-
<property name="text" >
206-
<string>Browse</string>
207-
</property>
208-
</widget>
209-
</item>
210-
</layout>
211-
</widget>
212-
</widget>
213-
</item>
214-
<item row="2" column="0" >
215-
<widget class="QDialogButtonBox" name="buttonBox" >
216-
<property name="standardButtons" >
217-
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
218-
</property>
42+
<layout class="QGridLayout" >
43+
<item row="0" column="0" >
44+
<widget class="QLabel" name="labelSrcFormat" >
45+
<property name="minimumSize" >
46+
<size>
47+
<width>52</width>
48+
<height>22</height>
49+
</size>
50+
</property>
51+
<property name="text" >
52+
<string>Format</string>
53+
</property>
54+
<property name="buddy" >
55+
<cstring>comboSrcFormats</cstring>
56+
</property>
57+
</widget>
58+
</item>
59+
<item row="0" column="1" colspan="5" >
60+
<widget class="QComboBox" name="comboSrcFormats" >
61+
<property name="minimumSize" >
62+
<size>
63+
<width>200</width>
64+
<height>25</height>
65+
</size>
66+
</property>
67+
<property name="maxCount" >
68+
<number>200</number>
69+
</property>
70+
</widget>
71+
</item>
72+
<item row="1" column="0" colspan="2" >
73+
<spacer>
74+
<property name="orientation" >
75+
<enum>Qt::Horizontal</enum>
76+
</property>
77+
<property name="sizeHint" >
78+
<size>
79+
<width>40</width>
80+
<height>20</height>
81+
</size>
82+
</property>
83+
</spacer>
84+
</item>
85+
<item row="1" column="2" >
86+
<widget class="QRadioButton" name="radioSrcFile" >
87+
<property name="text" >
88+
<string>File</string>
89+
</property>
90+
</widget>
91+
</item>
92+
<item row="1" column="3" >
93+
<widget class="QRadioButton" name="radioSrcDirectory" >
94+
<property name="text" >
95+
<string>Directory</string>
96+
</property>
97+
</widget>
98+
</item>
99+
<item row="1" column="4" colspan="2" >
100+
<widget class="QRadioButton" name="radioSrcProtocol" >
101+
<property name="text" >
102+
<string>Remote source</string>
103+
</property>
104+
</widget>
105+
</item>
106+
<item row="2" column="0" >
107+
<widget class="QLabel" name="labelSrcDataset" >
108+
<property name="text" >
109+
<string>Dataset</string>
110+
</property>
111+
<property name="buddy" >
112+
<cstring>inputSrcDataset</cstring>
113+
</property>
114+
</widget>
115+
</item>
116+
<item row="2" column="1" colspan="4" >
117+
<widget class="QLineEdit" name="inputSrcDataset" >
118+
<property name="minimumSize" >
119+
<size>
120+
<width>200</width>
121+
<height>25</height>
122+
</size>
123+
</property>
124+
</widget>
125+
</item>
126+
<item row="2" column="5" >
127+
<widget class="QPushButton" name="buttonSelectSrc" >
128+
<property name="text" >
129+
<string>Browse</string>
130+
</property>
131+
</widget>
132+
</item>
133+
<item row="3" column="0" >
134+
<widget class="QLabel" name="labelSrcLayer" >
135+
<property name="minimumSize" >
136+
<size>
137+
<width>52</width>
138+
<height>22</height>
139+
</size>
140+
</property>
141+
<property name="text" >
142+
<string>Layer</string>
143+
</property>
144+
<property name="buddy" >
145+
<cstring>comboSrcLayer</cstring>
146+
</property>
147+
</widget>
148+
</item>
149+
<item row="3" column="1" colspan="5" >
150+
<widget class="QComboBox" name="comboSrcLayer" >
151+
<property name="minimumSize" >
152+
<size>
153+
<width>300</width>
154+
<height>25</height>
155+
</size>
156+
</property>
157+
</widget>
158+
</item>
159+
</layout>
219160
</widget>
220161
</item>
221162
<item row="1" column="0" >
222163
<widget class="QGroupBox" name="dstGroupBox" >
164+
<property name="sizePolicy" >
165+
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
166+
<horstretch>0</horstretch>
167+
<verstretch>0</verstretch>
168+
</sizepolicy>
169+
</property>
223170
<property name="title" >
224171
<string>Target</string>
225172
</property>
226-
<widget class="QWidget" name="" >
227-
<property name="geometry" >
228-
<rect>
229-
<x>22</x>
230-
<y>33</y>
231-
<width>454</width>
232-
<height>28</height>
233-
</rect>
234-
</property>
235-
<layout class="QHBoxLayout" name="horizontalLayout_3" >
236-
<item>
237-
<widget class="QLabel" name="labelDstFormat" >
238-
<property name="minimumSize" >
239-
<size>
240-
<width>52</width>
241-
<height>22</height>
242-
</size>
243-
</property>
244-
<property name="text" >
245-
<string>Format:</string>
246-
</property>
247-
</widget>
248-
</item>
249-
<item>
250-
<widget class="QComboBox" name="comboDstFormats" >
251-
<property name="minimumSize" >
252-
<size>
253-
<width>300</width>
254-
<height>0</height>
255-
</size>
256-
</property>
257-
<property name="maxCount" >
258-
<number>200</number>
259-
</property>
260-
</widget>
261-
</item>
262-
<item>
263-
<spacer name="horizontalSpacer" >
264-
<property name="orientation" >
265-
<enum>Qt::Horizontal</enum>
266-
</property>
267-
<property name="sizeHint" stdset="0" >
268-
<size>
269-
<width>88</width>
270-
<height>17</height>
271-
</size>
272-
</property>
273-
</spacer>
274-
</item>
275-
</layout>
276-
</widget>
277-
<widget class="QWidget" name="" >
278-
<property name="geometry" >
279-
<rect>
280-
<x>20</x>
281-
<y>71</y>
282-
<width>457</width>
283-
<height>34</height>
284-
</rect>
285-
</property>
286-
<layout class="QHBoxLayout" name="horizontalLayout_7" >
287-
<item>
288-
<widget class="QLabel" name="labelDstDataset" >
289-
<property name="text" >
290-
<string>Dataset:</string>
291-
</property>
292-
</widget>
293-
</item>
294-
<item>
295-
<widget class="QLineEdit" name="inputDstDataset" >
296-
<property name="minimumSize" >
297-
<size>
298-
<width>300</width>
299-
<height>0</height>
300-
</size>
301-
</property>
302-
</widget>
303-
</item>
304-
<item>
305-
<widget class="QPushButton" name="buttonSelectDst" >
306-
<property name="minimumSize" >
307-
<size>
308-
<width>90</width>
309-
<height>0</height>
310-
</size>
311-
</property>
312-
<property name="text" >
313-
<string>Browse</string>
314-
</property>
315-
</widget>
316-
</item>
317-
</layout>
318-
</widget>
319-
<widget class="QWidget" name="" >
320-
<property name="geometry" >
321-
<rect>
322-
<x>20</x>
323-
<y>110</y>
324-
<width>451</width>
325-
<height>24</height>
326-
</rect>
327-
</property>
328-
<layout class="QHBoxLayout" name="horizontalLayout_8" >
329-
<item>
330-
<widget class="QLabel" name="labelDstLayer" >
331-
<property name="minimumSize" >
332-
<size>
333-
<width>52</width>
334-
<height>0</height>
335-
</size>
336-
</property>
337-
<property name="text" >
338-
<string>Layer:</string>
339-
</property>
340-
</widget>
341-
</item>
342-
<item>
343-
<widget class="QLineEdit" name="inputDstLayer" >
344-
<property name="minimumSize" >
345-
<size>
346-
<width>300</width>
347-
<height>0</height>
348-
</size>
349-
</property>
350-
</widget>
351-
</item>
352-
<item>
353-
<spacer name="horizontalSpacer_5" >
354-
<property name="orientation" >
355-
<enum>Qt::Horizontal</enum>
356-
</property>
357-
<property name="sizeHint" stdset="0" >
358-
<size>
359-
<width>40</width>
360-
<height>20</height>
361-
</size>
362-
</property>
363-
</spacer>
364-
</item>
365-
</layout>
366-
</widget>
173+
<layout class="QGridLayout" >
174+
<item row="0" column="0" >
175+
<widget class="QLabel" name="labelDstFormat" >
176+
<property name="minimumSize" >
177+
<size>
178+
<width>52</width>
179+
<height>22</height>
180+
</size>
181+
</property>
182+
<property name="text" >
183+
<string>Format</string>
184+
</property>
185+
<property name="buddy" >
186+
<cstring>comboDstFormats</cstring>
187+
</property>
188+
</widget>
189+
</item>
190+
<item row="0" column="1" colspan="2" >
191+
<widget class="QComboBox" name="comboDstFormats" >
192+
<property name="minimumSize" >
193+
<size>
194+
<width>300</width>
195+
<height>25</height>
196+
</size>
197+
</property>
198+
<property name="maxCount" >
199+
<number>200</number>
200+
</property>
201+
</widget>
202+
</item>
203+
<item row="1" column="0" >
204+
<widget class="QLabel" name="labelDstDataset" >
205+
<property name="text" >
206+
<string>Dataset</string>
207+
</property>
208+
<property name="buddy" >
209+
<cstring>inputDstDataset</cstring>
210+
</property>
211+
</widget>
212+
</item>
213+
<item row="1" column="1" >
214+
<widget class="QLineEdit" name="inputDstDataset" >
215+
<property name="minimumSize" >
216+
<size>
217+
<width>200</width>
218+
<height>25</height>
219+
</size>
220+
</property>
221+
</widget>
222+
</item>
223+
<item row="1" column="2" >
224+
<widget class="QPushButton" name="buttonSelectDst" >
225+
<property name="text" >
226+
<string>Browse</string>
227+
</property>
228+
</widget>
229+
</item>
230+
<item row="2" column="0" >
231+
<widget class="QLabel" name="labelDstLayer" >
232+
<property name="minimumSize" >
233+
<size>
234+
<width>52</width>
235+
<height>0</height>
236+
</size>
237+
</property>
238+
<property name="text" >
239+
<string>Layer</string>
240+
</property>
241+
<property name="buddy" >
242+
<cstring>inputDstLayer</cstring>
243+
</property>
244+
</widget>
245+
</item>
246+
<item row="2" column="1" colspan="2" >
247+
<widget class="QLineEdit" name="inputDstLayer" >
248+
<property name="minimumSize" >
249+
<size>
250+
<width>300</width>
251+
<height>25</height>
252+
</size>
253+
</property>
254+
</widget>
255+
</item>
256+
</layout>
257+
</widget>
258+
</item>
259+
<item row="2" column="0" >
260+
<widget class="QDialogButtonBox" name="buttonBox" >
261+
<property name="standardButtons" >
262+
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
263+
</property>
367264
</widget>
368265
</item>
369266
</layout>
370267
</widget>
371268
<layoutdefault spacing="6" margin="11" />
372269
<tabstops>
270+
<tabstop>comboSrcFormats</tabstop>
271+
<tabstop>radioSrcFile</tabstop>
272+
<tabstop>radioSrcDirectory</tabstop>
273+
<tabstop>radioSrcProtocol</tabstop>
373274
<tabstop>inputSrcDataset</tabstop>
374275
<tabstop>buttonSelectSrc</tabstop>
276+
<tabstop>comboSrcLayer</tabstop>
277+
<tabstop>comboDstFormats</tabstop>
278+
<tabstop>inputDstDataset</tabstop>
279+
<tabstop>buttonSelectDst</tabstop>
280+
<tabstop>inputDstLayer</tabstop>
281+
<tabstop>buttonBox</tabstop>
375282
</tabstops>
376283
<resources/>
377-
<connections/>
284+
<connections>
285+
<connection>
286+
<sender>buttonBox</sender>
287+
<signal>accepted()</signal>
288+
<receiver>OgrConverterGuiBase</receiver>
289+
<slot>accept()</slot>
290+
<hints>
291+
<hint type="sourcelabel" >
292+
<x>424</x>
293+
<y>322</y>
294+
</hint>
295+
<hint type="destinationlabel" >
296+
<x>481</x>
297+
<y>297</y>
298+
</hint>
299+
</hints>
300+
</connection>
301+
<connection>
302+
<sender>buttonBox</sender>
303+
<signal>rejected()</signal>
304+
<receiver>OgrConverterGuiBase</receiver>
305+
<slot>reject()</slot>
306+
<hints>
307+
<hint type="sourcelabel" >
308+
<x>365</x>
309+
<y>323</y>
310+
</hint>
311+
<hint type="destinationlabel" >
312+
<x>281</x>
313+
<y>339</y>
314+
</hint>
315+
</hints>
316+
</connection>
317+
</connections>
378318
</ui>

0 commit comments

Comments
 (0)
Please sign in to comment.