Skip to content

Commit 42adb1d

Browse files
author
timlinux
committedNov 4, 2009
Allow more decimal places in interpolator plugin (fixes issue with building dems in decimal degree datasets)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11915 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0bee933 commit 42adb1d

File tree

1 file changed

+188
-181
lines changed

1 file changed

+188
-181
lines changed
 

‎src/plugins/interpolation/qgsinterpolationdialogbase.ui

Lines changed: 188 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -1,274 +1,189 @@
1-
<ui version="4.0" >
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
23
<class>QgsInterpolationDialogBase</class>
3-
<widget class="QDialog" name="QgsInterpolationDialogBase" >
4-
<property name="geometry" >
4+
<widget class="QDialog" name="QgsInterpolationDialogBase">
5+
<property name="geometry">
56
<rect>
67
<x>0</x>
78
<y>0</y>
89
<width>538</width>
910
<height>733</height>
1011
</rect>
1112
</property>
12-
<property name="sizePolicy" >
13-
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
1415
<horstretch>0</horstretch>
1516
<verstretch>0</verstretch>
1617
</sizepolicy>
1718
</property>
18-
<property name="windowTitle" >
19+
<property name="windowTitle">
1920
<string>Interpolation plugin</string>
2021
</property>
21-
<layout class="QGridLayout" name="gridLayout_3" >
22-
<item row="0" column="0" >
23-
<widget class="QGroupBox" name="mInputGroupBox" >
24-
<property name="sizePolicy" >
25-
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
22+
<layout class="QGridLayout" name="gridLayout_3">
23+
<item row="1" column="0">
24+
<widget class="QGroupBox" name="mOutputGroupBox">
25+
<property name="sizePolicy">
26+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
2627
<horstretch>0</horstretch>
2728
<verstretch>0</verstretch>
2829
</sizepolicy>
2930
</property>
30-
<property name="title" >
31-
<string>Input</string>
32-
</property>
33-
<layout class="QGridLayout" name="gridLayout" >
34-
<item row="0" column="0" >
35-
<widget class="QLabel" name="label_2" >
36-
<property name="text" >
37-
<string>Vector layers:</string>
38-
</property>
39-
</widget>
40-
</item>
41-
<item row="0" column="1" colspan="2" >
42-
<widget class="QComboBox" name="mInputLayerComboBox" >
43-
<property name="sizePolicy" >
44-
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
45-
<horstretch>0</horstretch>
46-
<verstretch>0</verstretch>
47-
</sizepolicy>
48-
</property>
49-
</widget>
50-
</item>
51-
<item row="1" column="0" >
52-
<widget class="QLabel" name="mInterpolationAttributeLabel" >
53-
<property name="text" >
54-
<string>Interpolation attribute:</string>
55-
</property>
56-
<property name="buddy" >
57-
<cstring>mInterpolationAttributeComboBox</cstring>
58-
</property>
59-
</widget>
60-
</item>
61-
<item row="1" column="1" colspan="2" >
62-
<widget class="QComboBox" name="mInterpolationAttributeComboBox" >
63-
<property name="sizePolicy" >
64-
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
65-
<horstretch>0</horstretch>
66-
<verstretch>0</verstretch>
67-
</sizepolicy>
68-
</property>
69-
</widget>
70-
</item>
71-
<item row="2" column="0" colspan="3" >
72-
<widget class="QCheckBox" name="mUseZCoordCheckBox" >
73-
<property name="text" >
74-
<string>Use z-Coordinate for interpolation</string>
75-
</property>
76-
</widget>
77-
</item>
78-
<item row="3" column="1" >
79-
<widget class="QPushButton" name="mAddPushButton" >
80-
<property name="text" >
81-
<string>Add</string>
82-
</property>
83-
</widget>
84-
</item>
85-
<item row="3" column="2" >
86-
<widget class="QPushButton" name="mRemovePushButton" >
87-
<property name="text" >
88-
<string>Remove</string>
89-
</property>
90-
</widget>
91-
</item>
92-
<item row="4" column="0" colspan="3" >
93-
<widget class="QTreeWidget" name="mLayersTreeWidget" >
94-
<column>
95-
<property name="text" >
96-
<string>Vector layer</string>
97-
</property>
98-
</column>
99-
<column>
100-
<property name="text" >
101-
<string>Attribute</string>
102-
</property>
103-
</column>
104-
<column>
105-
<property name="text" >
106-
<string>Type</string>
107-
</property>
108-
</column>
109-
</widget>
110-
</item>
111-
</layout>
112-
</widget>
113-
</item>
114-
<item row="1" column="0" >
115-
<widget class="QGroupBox" name="mOutputGroupBox" >
116-
<property name="sizePolicy" >
117-
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
118-
<horstretch>0</horstretch>
119-
<verstretch>0</verstretch>
120-
</sizepolicy>
121-
</property>
122-
<property name="title" >
31+
<property name="title">
12332
<string>Output</string>
12433
</property>
125-
<layout class="QGridLayout" name="gridLayout_2" >
126-
<item row="0" column="0" >
127-
<widget class="QLabel" name="mInterpolationLabel" >
128-
<property name="text" >
34+
<layout class="QGridLayout" name="gridLayout_2">
35+
<item row="0" column="0">
36+
<widget class="QLabel" name="mInterpolationLabel">
37+
<property name="text">
12938
<string>Interpolation method</string>
13039
</property>
131-
<property name="buddy" >
40+
<property name="buddy">
13241
<cstring>mInterpolationMethodComboBox</cstring>
13342
</property>
13443
</widget>
13544
</item>
136-
<item row="0" column="1" >
137-
<widget class="QComboBox" name="mInterpolationMethodComboBox" />
45+
<item row="0" column="1">
46+
<widget class="QComboBox" name="mInterpolationMethodComboBox"/>
13847
</item>
139-
<item row="0" column="2" >
140-
<widget class="QToolButton" name="mConfigureInterpolationButton" >
141-
<property name="text" >
48+
<item row="0" column="2">
49+
<widget class="QToolButton" name="mConfigureInterpolationButton">
50+
<property name="text">
14251
<string>...</string>
14352
</property>
144-
<property name="icon" >
145-
<iconset resource="interpolator.qrc" >
53+
<property name="icon">
54+
<iconset resource="interpolator.qrc">
14655
<normaloff>:/options.png</normaloff>:/options.png</iconset>
14756
</property>
14857
</widget>
14958
</item>
150-
<item row="1" column="0" >
151-
<widget class="QLabel" name="mNumberOfColumnsLabel" >
152-
<property name="text" >
59+
<item row="1" column="0">
60+
<widget class="QLabel" name="mNumberOfColumnsLabel">
61+
<property name="text">
15362
<string>Number of columns</string>
15463
</property>
155-
<property name="buddy" >
64+
<property name="buddy">
15665
<cstring>mNumberOfColumnsSpinBox</cstring>
15766
</property>
15867
</widget>
15968
</item>
160-
<item row="1" column="1" colspan="2" >
161-
<widget class="QSpinBox" name="mNumberOfColumnsSpinBox" >
162-
<property name="maximum" >
69+
<item row="1" column="1" colspan="2">
70+
<widget class="QSpinBox" name="mNumberOfColumnsSpinBox">
71+
<property name="maximum">
16372
<number>10000000</number>
16473
</property>
16574
</widget>
16675
</item>
167-
<item row="2" column="0" >
168-
<widget class="QLabel" name="mNumberOfRowsLabel" >
169-
<property name="text" >
76+
<item row="2" column="0">
77+
<widget class="QLabel" name="mNumberOfRowsLabel">
78+
<property name="text">
17079
<string>Number of rows</string>
17180
</property>
172-
<property name="buddy" >
81+
<property name="buddy">
17382
<cstring>mNumberOfRowsSpinBox</cstring>
17483
</property>
17584
</widget>
17685
</item>
177-
<item row="2" column="1" colspan="2" >
178-
<widget class="QSpinBox" name="mNumberOfRowsSpinBox" >
179-
<property name="maximum" >
86+
<item row="2" column="1" colspan="2">
87+
<widget class="QSpinBox" name="mNumberOfRowsSpinBox">
88+
<property name="maximum">
18089
<number>10000000</number>
18190
</property>
18291
</widget>
18392
</item>
184-
<item row="3" column="0" colspan="3" >
185-
<layout class="QHBoxLayout" name="horizontalLayout_3" >
93+
<item row="3" column="0" colspan="3">
94+
<layout class="QHBoxLayout" name="horizontalLayout_3">
18695
<item>
187-
<widget class="QLabel" name="mCellsizeXLabel" >
188-
<property name="text" >
96+
<widget class="QLabel" name="mCellsizeXLabel">
97+
<property name="text">
18998
<string>Cellsize X:</string>
19099
</property>
191100
</widget>
192101
</item>
193102
<item>
194-
<widget class="QDoubleSpinBox" name="mCellsizeXSpinBox" >
195-
<property name="maximum" >
103+
<widget class="QDoubleSpinBox" name="mCellsizeXSpinBox">
104+
<property name="decimals">
105+
<number>5</number>
106+
</property>
107+
<property name="maximum">
196108
<double>999999.000000000000000</double>
197109
</property>
198110
</widget>
199111
</item>
200112
<item>
201-
<widget class="QLabel" name="mCellsizeYLabel" >
202-
<property name="text" >
113+
<widget class="QLabel" name="mCellsizeYLabel">
114+
<property name="text">
203115
<string>Cellsize Y:</string>
204116
</property>
205117
</widget>
206118
</item>
207119
<item>
208-
<widget class="QDoubleSpinBox" name="mCellSizeYSpinBox" >
209-
<property name="maximum" >
120+
<widget class="QDoubleSpinBox" name="mCellSizeYSpinBox">
121+
<property name="decimals">
122+
<number>5</number>
123+
</property>
124+
<property name="maximum">
210125
<double>999999.000000000000000</double>
211126
</property>
212127
</widget>
213128
</item>
214129
</layout>
215130
</item>
216-
<item row="4" column="0" colspan="3" >
217-
<layout class="QHBoxLayout" name="horizontalLayout" >
131+
<item row="4" column="0" colspan="3">
132+
<layout class="QHBoxLayout" name="horizontalLayout">
218133
<item>
219-
<widget class="QLabel" name="mXMinLabel" >
220-
<property name="text" >
134+
<widget class="QLabel" name="mXMinLabel">
135+
<property name="text">
221136
<string>X Min:</string>
222137
</property>
223138
</widget>
224139
</item>
225140
<item>
226-
<widget class="QLineEdit" name="mXMinLineEdit" />
141+
<widget class="QLineEdit" name="mXMinLineEdit"/>
227142
</item>
228143
<item>
229-
<widget class="QLabel" name="mXMaxLabel" >
230-
<property name="text" >
144+
<widget class="QLabel" name="mXMaxLabel">
145+
<property name="text">
231146
<string>X Max:</string>
232147
</property>
233148
</widget>
234149
</item>
235150
<item>
236-
<widget class="QLineEdit" name="mXMaxLineEdit" />
151+
<widget class="QLineEdit" name="mXMaxLineEdit"/>
237152
</item>
238153
</layout>
239154
</item>
240-
<item row="5" column="0" colspan="3" >
241-
<layout class="QHBoxLayout" name="horizontalLayout_2" >
155+
<item row="5" column="0" colspan="3">
156+
<layout class="QHBoxLayout" name="horizontalLayout_2">
242157
<item>
243-
<widget class="QLabel" name="mYMinLabel" >
244-
<property name="text" >
158+
<widget class="QLabel" name="mYMinLabel">
159+
<property name="text">
245160
<string>Y Min:</string>
246161
</property>
247162
</widget>
248163
</item>
249164
<item>
250-
<widget class="QLineEdit" name="mYMinLineEdit" />
165+
<widget class="QLineEdit" name="mYMinLineEdit"/>
251166
</item>
252167
<item>
253-
<widget class="QLabel" name="mYMaxLabel" >
254-
<property name="text" >
168+
<widget class="QLabel" name="mYMaxLabel">
169+
<property name="text">
255170
<string>Y Max:</string>
256171
</property>
257172
</widget>
258173
</item>
259174
<item>
260-
<widget class="QLineEdit" name="mYMaxLineEdit" />
175+
<widget class="QLineEdit" name="mYMaxLineEdit"/>
261176
</item>
262177
</layout>
263178
</item>
264-
<item row="6" column="0" colspan="3" >
265-
<layout class="QHBoxLayout" name="horizontalLayout_4" >
179+
<item row="6" column="0" colspan="3">
180+
<layout class="QHBoxLayout" name="horizontalLayout_4">
266181
<item>
267-
<spacer name="horizontalSpacer" >
268-
<property name="orientation" >
182+
<spacer name="horizontalSpacer">
183+
<property name="orientation">
269184
<enum>Qt::Horizontal</enum>
270185
</property>
271-
<property name="sizeHint" stdset="0" >
186+
<property name="sizeHint" stdset="0">
272187
<size>
273188
<width>298</width>
274189
<height>20</height>
@@ -277,47 +192,139 @@
277192
</spacer>
278193
</item>
279194
<item>
280-
<widget class="QPushButton" name="mBBoxToCurrentExtent" >
281-
<property name="text" >
195+
<widget class="QPushButton" name="mBBoxToCurrentExtent">
196+
<property name="text">
282197
<string>Set to current extent</string>
283198
</property>
284199
</widget>
285200
</item>
286201
</layout>
287202
</item>
288-
<item row="7" column="0" >
289-
<widget class="QLabel" name="mOutputFileLabel" >
290-
<property name="text" >
203+
<item row="7" column="0">
204+
<widget class="QLabel" name="mOutputFileLabel">
205+
<property name="text">
291206
<string>Output file </string>
292207
</property>
293-
<property name="buddy" >
208+
<property name="buddy">
294209
<cstring>mOutputFileLineEdit</cstring>
295210
</property>
296211
</widget>
297212
</item>
298-
<item row="7" column="1" >
299-
<widget class="QLineEdit" name="mOutputFileLineEdit" />
213+
<item row="7" column="1">
214+
<widget class="QLineEdit" name="mOutputFileLineEdit"/>
300215
</item>
301-
<item row="7" column="2" >
302-
<widget class="QToolButton" name="mOutputFileButton" >
303-
<property name="text" >
216+
<item row="7" column="2">
217+
<widget class="QToolButton" name="mOutputFileButton">
218+
<property name="text">
304219
<string>...</string>
305220
</property>
306221
</widget>
307222
</item>
308223
</layout>
309224
</widget>
310225
</item>
311-
<item row="2" column="0" >
312-
<widget class="QDialogButtonBox" name="buttonBox" >
313-
<property name="orientation" >
226+
<item row="2" column="0">
227+
<widget class="QDialogButtonBox" name="buttonBox">
228+
<property name="orientation">
314229
<enum>Qt::Horizontal</enum>
315230
</property>
316-
<property name="standardButtons" >
231+
<property name="standardButtons">
317232
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
318233
</property>
319234
</widget>
320235
</item>
236+
<item row="0" column="0">
237+
<widget class="QGroupBox" name="mInputGroupBox">
238+
<property name="sizePolicy">
239+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
240+
<horstretch>0</horstretch>
241+
<verstretch>0</verstretch>
242+
</sizepolicy>
243+
</property>
244+
<property name="title">
245+
<string>Input</string>
246+
</property>
247+
<layout class="QGridLayout" name="gridLayout">
248+
<item row="0" column="0">
249+
<widget class="QLabel" name="label_2">
250+
<property name="text">
251+
<string>Vector layers:</string>
252+
</property>
253+
</widget>
254+
</item>
255+
<item row="0" column="1" colspan="2">
256+
<widget class="QComboBox" name="mInputLayerComboBox">
257+
<property name="sizePolicy">
258+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
259+
<horstretch>0</horstretch>
260+
<verstretch>0</verstretch>
261+
</sizepolicy>
262+
</property>
263+
</widget>
264+
</item>
265+
<item row="1" column="0">
266+
<widget class="QLabel" name="mInterpolationAttributeLabel">
267+
<property name="text">
268+
<string>Interpolation attribute:</string>
269+
</property>
270+
<property name="buddy">
271+
<cstring>mInterpolationAttributeComboBox</cstring>
272+
</property>
273+
</widget>
274+
</item>
275+
<item row="1" column="1" colspan="2">
276+
<widget class="QComboBox" name="mInterpolationAttributeComboBox">
277+
<property name="sizePolicy">
278+
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
279+
<horstretch>0</horstretch>
280+
<verstretch>0</verstretch>
281+
</sizepolicy>
282+
</property>
283+
</widget>
284+
</item>
285+
<item row="2" column="0" colspan="3">
286+
<widget class="QCheckBox" name="mUseZCoordCheckBox">
287+
<property name="text">
288+
<string>Use z-Coordinate for interpolation</string>
289+
</property>
290+
</widget>
291+
</item>
292+
<item row="3" column="1">
293+
<widget class="QPushButton" name="mAddPushButton">
294+
<property name="text">
295+
<string>Add</string>
296+
</property>
297+
</widget>
298+
</item>
299+
<item row="3" column="2">
300+
<widget class="QPushButton" name="mRemovePushButton">
301+
<property name="text">
302+
<string>Remove</string>
303+
</property>
304+
</widget>
305+
</item>
306+
<item row="4" column="0" colspan="3">
307+
<widget class="QTreeWidget" name="mLayersTreeWidget">
308+
<column>
309+
<property name="text">
310+
<string>Vector layer</string>
311+
</property>
312+
</column>
313+
<column>
314+
<property name="text">
315+
<string>Attribute</string>
316+
</property>
317+
</column>
318+
<column>
319+
<property name="text">
320+
<string>Type</string>
321+
</property>
322+
</column>
323+
</widget>
324+
</item>
325+
</layout>
326+
</widget>
327+
</item>
321328
</layout>
322329
</widget>
323330
<tabstops>
@@ -330,7 +337,7 @@
330337
<tabstop>buttonBox</tabstop>
331338
</tabstops>
332339
<resources>
333-
<include location="interpolator.qrc" />
340+
<include location="interpolator.qrc"/>
334341
</resources>
335342
<connections>
336343
<connection>
@@ -339,11 +346,11 @@
339346
<receiver>QgsInterpolationDialogBase</receiver>
340347
<slot>accept()</slot>
341348
<hints>
342-
<hint type="sourcelabel" >
349+
<hint type="sourcelabel">
343350
<x>257</x>
344351
<y>362</y>
345352
</hint>
346-
<hint type="destinationlabel" >
353+
<hint type="destinationlabel">
347354
<x>157</x>
348355
<y>274</y>
349356
</hint>
@@ -355,11 +362,11 @@
355362
<receiver>QgsInterpolationDialogBase</receiver>
356363
<slot>reject()</slot>
357364
<hints>
358-
<hint type="sourcelabel" >
365+
<hint type="sourcelabel">
359366
<x>325</x>
360367
<y>362</y>
361368
</hint>
362-
<hint type="destinationlabel" >
369+
<hint type="destinationlabel">
363370
<x>286</x>
364371
<y>274</y>
365372
</hint>

0 commit comments

Comments
 (0)
Please sign in to comment.