Skip to content

Commit 474e04b

Browse files
committedMay 24, 2012
minor fixes in gui fTools
1 parent 860f66d commit 474e04b

File tree

2 files changed

+134
-142
lines changed

2 files changed

+134
-142
lines changed
 

‎python/plugins/fTools/tools/frmSpatialJoin.ui

Lines changed: 68 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<property name="sizeGripEnabled">
2020
<bool>true</bool>
2121
</property>
22-
<layout class="QGridLayout" name="gridLayout">
23-
<item row="0" column="0" colspan="3">
22+
<layout class="QVBoxLayout" name="verticalLayout">
23+
<item>
2424
<layout class="QVBoxLayout">
2525
<item>
2626
<widget class="QLabel" name="label_3">
@@ -34,7 +34,7 @@
3434
</item>
3535
</layout>
3636
</item>
37-
<item row="1" column="0" colspan="3">
37+
<item>
3838
<layout class="QVBoxLayout">
3939
<item>
4040
<widget class="QLabel" name="label">
@@ -48,28 +48,24 @@
4848
</item>
4949
</layout>
5050
</item>
51-
<item row="2" column="0" colspan="3">
51+
<item>
5252
<widget class="QGroupBox" name="groupBox_2">
5353
<property name="title">
5454
<string>Attribute Summary</string>
5555
</property>
5656
<layout class="QGridLayout">
57-
<item row="0" column="0" colspan="7">
58-
<widget class="QRadioButton" name="rdoFirst">
59-
<property name="text">
60-
<string>Take attributes of first located feature</string>
61-
</property>
62-
<property name="checked">
63-
<bool>true</bool>
57+
<item row="2" column="6">
58+
<spacer>
59+
<property name="orientation">
60+
<enum>Qt::Horizontal</enum>
6461
</property>
65-
</widget>
66-
</item>
67-
<item row="1" column="0" colspan="7">
68-
<widget class="QRadioButton" name="rdoSummary">
69-
<property name="text">
70-
<string>Take summary of intersecting features</string>
62+
<property name="sizeHint" stdset="0">
63+
<size>
64+
<width>40</width>
65+
<height>20</height>
66+
</size>
7167
</property>
72-
</widget>
68+
</spacer>
7369
</item>
7470
<item row="2" column="0">
7571
<spacer>
@@ -97,23 +93,20 @@
9793
</property>
9894
</widget>
9995
</item>
100-
<item row="2" column="2">
101-
<widget class="QCheckBox" name="chkMin">
102-
<property name="enabled">
103-
<bool>false</bool>
104-
</property>
96+
<item row="1" column="0" colspan="7">
97+
<widget class="QRadioButton" name="rdoSummary">
10598
<property name="text">
106-
<string>Min</string>
99+
<string>Take summary of intersecting features</string>
107100
</property>
108101
</widget>
109102
</item>
110-
<item row="2" column="3">
111-
<widget class="QCheckBox" name="chkMax">
103+
<item row="2" column="2">
104+
<widget class="QCheckBox" name="chkMin">
112105
<property name="enabled">
113106
<bool>false</bool>
114107
</property>
115108
<property name="text">
116-
<string>Max</string>
109+
<string>Min</string>
117110
</property>
118111
</widget>
119112
</item>
@@ -127,19 +120,6 @@
127120
</property>
128121
</widget>
129122
</item>
130-
<item row="2" column="6">
131-
<spacer>
132-
<property name="orientation">
133-
<enum>Qt::Horizontal</enum>
134-
</property>
135-
<property name="sizeHint" stdset="0">
136-
<size>
137-
<width>40</width>
138-
<height>20</height>
139-
</size>
140-
</property>
141-
</spacer>
142-
</item>
143123
<item row="2" column="5">
144124
<widget class="QCheckBox" name="chkMedian">
145125
<property name="enabled">
@@ -150,10 +130,30 @@
150130
</property>
151131
</widget>
152132
</item>
133+
<item row="2" column="3">
134+
<widget class="QCheckBox" name="chkMax">
135+
<property name="enabled">
136+
<bool>false</bool>
137+
</property>
138+
<property name="text">
139+
<string>Max</string>
140+
</property>
141+
</widget>
142+
</item>
143+
<item row="0" column="0" colspan="7">
144+
<widget class="QRadioButton" name="rdoFirst">
145+
<property name="text">
146+
<string>Take attributes of first located feature</string>
147+
</property>
148+
<property name="checked">
149+
<bool>true</bool>
150+
</property>
151+
</widget>
152+
</item>
153153
</layout>
154154
</widget>
155155
</item>
156-
<item row="3" column="0" colspan="3">
156+
<item>
157157
<layout class="QVBoxLayout">
158158
<item>
159159
<widget class="QLabel" name="label_2">
@@ -182,7 +182,7 @@
182182
</item>
183183
</layout>
184184
</item>
185-
<item row="4" column="0" colspan="3">
185+
<item>
186186
<widget class="QGroupBox" name="groupBox_3">
187187
<property name="title">
188188
<string>Output table</string>
@@ -208,41 +208,32 @@
208208
</layout>
209209
</widget>
210210
</item>
211-
<item row="5" column="0" rowspan="3" colspan="3">
212-
<spacer>
213-
<property name="orientation">
214-
<enum>Qt::Vertical</enum>
215-
</property>
216-
<property name="sizeHint" stdset="0">
217-
<size>
218-
<width>359</width>
219-
<height>16</height>
220-
</size>
221-
</property>
222-
</spacer>
223-
</item>
224-
<item row="7" column="1">
225-
<widget class="QProgressBar" name="progressBar">
226-
<property name="value">
227-
<number>24</number>
228-
</property>
229-
<property name="alignment">
230-
<set>Qt::AlignCenter</set>
231-
</property>
232-
<property name="textVisible">
233-
<bool>true</bool>
234-
</property>
235-
</widget>
236-
</item>
237-
<item row="6" column="2" rowspan="2">
238-
<widget class="QDialogButtonBox" name="buttonBox_2">
239-
<property name="orientation">
240-
<enum>Qt::Horizontal</enum>
241-
</property>
242-
<property name="standardButtons">
243-
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
244-
</property>
245-
</widget>
211+
<item>
212+
<layout class="QHBoxLayout" name="horizontalLayout">
213+
<item>
214+
<widget class="QProgressBar" name="progressBar">
215+
<property name="value">
216+
<number>24</number>
217+
</property>
218+
<property name="alignment">
219+
<set>Qt::AlignCenter</set>
220+
</property>
221+
<property name="textVisible">
222+
<bool>true</bool>
223+
</property>
224+
</widget>
225+
</item>
226+
<item>
227+
<widget class="QDialogButtonBox" name="buttonBox_2">
228+
<property name="orientation">
229+
<enum>Qt::Horizontal</enum>
230+
</property>
231+
<property name="standardButtons">
232+
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
233+
</property>
234+
</widget>
235+
</item>
236+
</layout>
246237
</item>
247238
</layout>
248239
</widget>

‎python/plugins/fTools/tools/frmVectorSplit.ui

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,106 @@
1-
<ui version="4.0" >
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
23
<class>Dialog</class>
3-
<widget class="QDialog" name="Dialog" >
4-
<property name="windowModality" >
4+
<widget class="QDialog" name="Dialog">
5+
<property name="windowModality">
56
<enum>Qt::NonModal</enum>
67
</property>
7-
<property name="geometry" >
8+
<property name="geometry">
89
<rect>
910
<x>0</x>
1011
<y>0</y>
11-
<width>374</width>
12-
<height>306</height>
12+
<width>378</width>
13+
<height>239</height>
1314
</rect>
1415
</property>
15-
<property name="windowTitle" >
16+
<property name="windowTitle">
1617
<string>Vector Split</string>
1718
</property>
18-
<property name="sizeGripEnabled" >
19+
<property name="sizeGripEnabled">
1920
<bool>true</bool>
2021
</property>
21-
<layout class="QGridLayout" name="gridLayout" >
22-
<item row="0" column="0" colspan="2" >
23-
<widget class="QLabel" name="label_3" >
24-
<property name="text" >
25-
<string>Input vector layer</string>
26-
</property>
27-
</widget>
28-
</item>
29-
<item row="1" column="0" colspan="2" >
30-
<widget class="QComboBox" name="inShape" />
31-
</item>
32-
<item row="2" column="0" colspan="2" >
33-
<widget class="QLabel" name="label_4" >
34-
<property name="text" >
35-
<string>Unique ID field</string>
36-
</property>
37-
</widget>
38-
</item>
39-
<item row="3" column="0" colspan="2" >
40-
<widget class="QComboBox" name="inField" />
41-
</item>
42-
<item row="4" column="0" colspan="2" >
43-
<widget class="QLabel" name="label_2" >
44-
<property name="text" >
45-
<string>Output folder</string>
46-
</property>
47-
</widget>
48-
</item>
49-
<item row="5" column="0" colspan="2" >
50-
<layout class="QHBoxLayout" >
22+
<layout class="QGridLayout" name="gridLayout">
23+
<item row="5" column="0" colspan="2">
24+
<layout class="QHBoxLayout">
5125
<item>
52-
<widget class="QLineEdit" name="outShape" >
53-
<property name="readOnly" >
26+
<widget class="QLineEdit" name="outShape">
27+
<property name="readOnly">
5428
<bool>true</bool>
5529
</property>
5630
</widget>
5731
</item>
5832
<item>
59-
<widget class="QToolButton" name="toolOut" >
60-
<property name="text" >
33+
<widget class="QToolButton" name="toolOut">
34+
<property name="text">
6135
<string>Browse</string>
6236
</property>
6337
</widget>
6438
</item>
6539
</layout>
6640
</item>
67-
<item row="6" column="0" >
68-
<spacer>
69-
<property name="orientation" >
70-
<enum>Qt::Vertical</enum>
41+
<item row="2" column="0" colspan="2">
42+
<widget class="QLabel" name="label_4">
43+
<property name="text">
44+
<string>Unique ID field</string>
7145
</property>
72-
<property name="sizeHint" stdset="0" >
73-
<size>
74-
<width>20</width>
75-
<height>40</height>
76-
</size>
46+
</widget>
47+
</item>
48+
<item row="3" column="0" colspan="2">
49+
<widget class="QComboBox" name="inField"/>
50+
</item>
51+
<item row="1" column="0" colspan="2">
52+
<widget class="QComboBox" name="inShape"/>
53+
</item>
54+
<item row="4" column="0" colspan="2">
55+
<widget class="QLabel" name="label_2">
56+
<property name="text">
57+
<string>Output folder</string>
7758
</property>
78-
</spacer>
59+
</widget>
60+
</item>
61+
<item row="0" column="0" colspan="2">
62+
<widget class="QLabel" name="label_3">
63+
<property name="text">
64+
<string>Input vector layer</string>
65+
</property>
66+
</widget>
7967
</item>
80-
<item row="7" column="0" >
81-
<widget class="QProgressBar" name="progressBar" >
82-
<property name="value" >
68+
<item row="7" column="0">
69+
<widget class="QProgressBar" name="progressBar">
70+
<property name="value">
8371
<number>0</number>
8472
</property>
85-
<property name="alignment" >
73+
<property name="alignment">
8674
<set>Qt::AlignHCenter</set>
8775
</property>
88-
<property name="textVisible" >
76+
<property name="textVisible">
8977
<bool>true</bool>
9078
</property>
9179
</widget>
9280
</item>
93-
<item row="7" column="1" >
94-
<widget class="QDialogButtonBox" name="buttonBox_2" >
95-
<property name="orientation" >
81+
<item row="7" column="1">
82+
<widget class="QDialogButtonBox" name="buttonBox_2">
83+
<property name="orientation">
9684
<enum>Qt::Horizontal</enum>
9785
</property>
98-
<property name="standardButtons" >
86+
<property name="standardButtons">
9987
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
10088
</property>
10189
</widget>
10290
</item>
91+
<item row="6" column="0">
92+
<spacer>
93+
<property name="orientation">
94+
<enum>Qt::Vertical</enum>
95+
</property>
96+
<property name="sizeHint" stdset="0">
97+
<size>
98+
<width>20</width>
99+
<height>40</height>
100+
</size>
101+
</property>
102+
</spacer>
103+
</item>
103104
</layout>
104105
</widget>
105106
<resources/>
@@ -110,11 +111,11 @@
110111
<receiver>Dialog</receiver>
111112
<slot>accept()</slot>
112113
<hints>
113-
<hint type="sourcelabel" >
114+
<hint type="sourcelabel">
114115
<x>124</x>
115116
<y>355</y>
116117
</hint>
117-
<hint type="destinationlabel" >
118+
<hint type="destinationlabel">
118119
<x>215</x>
119120
<y>290</y>
120121
</hint>
@@ -126,11 +127,11 @@
126127
<receiver>Dialog</receiver>
127128
<slot>close()</slot>
128129
<hints>
129-
<hint type="sourcelabel" >
130+
<hint type="sourcelabel">
130131
<x>50</x>
131132
<y>350</y>
132133
</hint>
133-
<hint type="destinationlabel" >
134+
<hint type="destinationlabel">
134135
<x>132</x>
135136
<y>239</y>
136137
</hint>

0 commit comments

Comments
 (0)
Please sign in to comment.