|
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | | - <width>624</width> |
10 | | - <height>686</height> |
| 9 | + <width>689</width> |
| 10 | + <height>569</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | 13 | <property name="windowTitle"> |
14 | 14 | <string>Field calculator</string> |
15 | 15 | </property> |
16 | 16 | <layout class="QGridLayout" name="gridLayout_2"> |
17 | 17 | <item row="0" column="0"> |
18 | | - <widget class="QCheckBox" name="mUpdateExistingFieldCheckBox"> |
| 18 | + <widget class="QCheckBox" name="mOnlyUpdateSelectedCheckBox"> |
19 | 19 | <property name="text"> |
20 | | - <string>Update existing field</string> |
| 20 | + <string>Only update selected features</string> |
21 | 21 | </property> |
22 | 22 | </widget> |
23 | 23 | </item> |
24 | 24 | <item row="0" column="1"> |
25 | | - <widget class="QComboBox" name="mExistingFieldComboBox"/> |
26 | | - </item> |
27 | | - <item row="1" column="0" colspan="2"> |
28 | | - <widget class="QCheckBox" name="mOnlyUpdateSelectedCheckBox"> |
| 25 | + <widget class="QCheckBox" name="mUpdateExistingFieldCheckBox"> |
29 | 26 | <property name="text"> |
30 | | - <string>Only update selected features</string> |
| 27 | + <string>Update existing field</string> |
31 | 28 | </property> |
32 | 29 | </widget> |
33 | 30 | </item> |
34 | | - <item row="2" column="0" colspan="3"> |
| 31 | + <item row="0" column="2"> |
| 32 | + <widget class="QComboBox" name="mExistingFieldComboBox"/> |
| 33 | + </item> |
| 34 | + <item row="1" column="0" colspan="3"> |
35 | 35 | <widget class="QGroupBox" name="mNewFieldGroupBox"> |
36 | 36 | <property name="title"> |
37 | 37 | <string>New field</string> |
38 | 38 | </property> |
39 | 39 | <layout class="QGridLayout"> |
| 40 | + <property name="bottomMargin"> |
| 41 | + <number>0</number> |
| 42 | + </property> |
40 | 43 | <item row="0" column="0"> |
41 | 44 | <widget class="QLabel" name="mFieldNameLabel"> |
42 | 45 | <property name="text"> |
|
74 | 77 | </widget> |
75 | 78 | </item> |
76 | 79 | <item row="2" column="1"> |
77 | | - <widget class="QSpinBox" name="mOuputFieldWidthSpinBox"/> |
| 80 | + <widget class="QSpinBox" name="mOuputFieldWidthSpinBox"> |
| 81 | + <property name="toolTip"> |
| 82 | + <string>Width of complete output. For example 123,456 means 6 as field width.</string> |
| 83 | + </property> |
| 84 | + <property name="minimum"> |
| 85 | + <number>0</number> |
| 86 | + </property> |
| 87 | + <property name="value"> |
| 88 | + <number>5</number> |
| 89 | + </property> |
| 90 | + </widget> |
78 | 91 | </item> |
79 | 92 | <item row="2" column="2"> |
80 | 93 | <widget class="QLabel" name="mOutputFieldPrecisionLabel"> |
81 | 94 | <property name="text"> |
82 | | - <string>Output field precision</string> |
| 95 | + <string>Precision</string> |
83 | 96 | </property> |
84 | 97 | <property name="buddy"> |
85 | 98 | <cstring>mOutputFieldPrecisionSpinBox</cstring> |
86 | 99 | </property> |
87 | 100 | </widget> |
88 | 101 | </item> |
89 | 102 | <item row="2" column="3"> |
90 | | - <widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox"/> |
91 | | - </item> |
92 | | - </layout> |
93 | | - </widget> |
94 | | - </item> |
95 | | - <item row="3" column="0" colspan="2"> |
96 | | - <widget class="QGroupBox" name="mFieldsGroupBox"> |
97 | | - <property name="title"> |
98 | | - <string>Fields</string> |
99 | | - </property> |
100 | | - <layout class="QGridLayout"> |
101 | | - <item row="0" column="0"> |
102 | | - <widget class="QListWidget" name="mFieldsListWidget"/> |
103 | | - </item> |
104 | | - </layout> |
105 | | - </widget> |
106 | | - </item> |
107 | | - <item row="3" column="2"> |
108 | | - <widget class="QGroupBox" name="mValuesGroupBox"> |
109 | | - <property name="title"> |
110 | | - <string>Values</string> |
111 | | - </property> |
112 | | - <layout class="QGridLayout"> |
113 | | - <item row="0" column="0" colspan="2"> |
114 | | - <widget class="QListWidget" name="mValueListWidget"/> |
115 | | - </item> |
116 | | - <item row="1" column="0"> |
117 | | - <widget class="QPushButton" name="mSamplePushButton"> |
118 | | - <property name="text"> |
119 | | - <string>Sample</string> |
120 | | - </property> |
121 | | - </widget> |
122 | | - </item> |
123 | | - <item row="1" column="1"> |
124 | | - <widget class="QPushButton" name="mAllPushButton"> |
125 | | - <property name="text"> |
126 | | - <string>All</string> |
| 103 | + <widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox"> |
| 104 | + <property name="value"> |
| 105 | + <number>2</number> |
127 | 106 | </property> |
128 | 107 | </widget> |
129 | 108 | </item> |
|
136 | 115 | <string>Operators</string> |
137 | 116 | </property> |
138 | 117 | <layout class="QGridLayout" name="gridLayout_1"> |
| 118 | + <property name="topMargin"> |
| 119 | + <number>5</number> |
| 120 | + </property> |
| 121 | + <property name="bottomMargin"> |
| 122 | + <number>5</number> |
| 123 | + </property> |
139 | 124 | <item row="0" column="0"> |
140 | 125 | <widget class="QPushButton" name="mPlusPushButton"> |
141 | 126 | <property name="text"> |
|
309 | 294 | </property> |
310 | 295 | </widget> |
311 | 296 | </item> |
| 297 | + <item row="3" column="0" colspan="3"> |
| 298 | + <widget class="QFrame" name="frame"> |
| 299 | + <layout class="QGridLayout" name="gridLayout"> |
| 300 | + <item row="1" column="1" rowspan="2" colspan="2"> |
| 301 | + <widget class="QFrame" name="mValuesFrame"> |
| 302 | + <layout class="QGridLayout"> |
| 303 | + <property name="leftMargin"> |
| 304 | + <number>9</number> |
| 305 | + </property> |
| 306 | + <property name="topMargin"> |
| 307 | + <number>0</number> |
| 308 | + </property> |
| 309 | + <property name="bottomMargin"> |
| 310 | + <number>6</number> |
| 311 | + </property> |
| 312 | + <item row="2" column="2"> |
| 313 | + <widget class="QPushButton" name="mAllPushButton"> |
| 314 | + <property name="text"> |
| 315 | + <string>All</string> |
| 316 | + </property> |
| 317 | + </widget> |
| 318 | + </item> |
| 319 | + <item row="0" column="1" rowspan="3"> |
| 320 | + <widget class="QListWidget" name="mValueListWidget"/> |
| 321 | + </item> |
| 322 | + </layout> |
| 323 | + </widget> |
| 324 | + </item> |
| 325 | + <item row="1" column="0"> |
| 326 | + <widget class="QListWidget" name="mFieldsListWidget"/> |
| 327 | + </item> |
| 328 | + <item row="0" column="0"> |
| 329 | + <widget class="QLabel" name="label"> |
| 330 | + <property name="text"> |
| 331 | + <string>Fields</string> |
| 332 | + </property> |
| 333 | + <property name="textFormat"> |
| 334 | + <enum>Qt::AutoText</enum> |
| 335 | + </property> |
| 336 | + </widget> |
| 337 | + </item> |
| 338 | + <item row="0" column="1"> |
| 339 | + <widget class="QLabel" name="label_2"> |
| 340 | + <property name="text"> |
| 341 | + <string>Values</string> |
| 342 | + </property> |
| 343 | + </widget> |
| 344 | + </item> |
| 345 | + </layout> |
| 346 | + <zorder>mValuesFrame</zorder> |
| 347 | + <zorder>mFieldsListWidget</zorder> |
| 348 | + <zorder>label</zorder> |
| 349 | + <zorder>label_2</zorder> |
| 350 | + </widget> |
| 351 | + </item> |
312 | 352 | </layout> |
313 | 353 | </widget> |
314 | 354 | <tabstops> |
315 | | - <tabstop>mUpdateExistingFieldCheckBox</tabstop> |
316 | | - <tabstop>mExistingFieldComboBox</tabstop> |
317 | | - <tabstop>mOnlyUpdateSelectedCheckBox</tabstop> |
318 | 355 | <tabstop>mOutputFieldNameLineEdit</tabstop> |
319 | 356 | <tabstop>mOutputFieldTypeComboBox</tabstop> |
320 | 357 | <tabstop>mOuputFieldWidthSpinBox</tabstop> |
321 | 358 | <tabstop>mOutputFieldPrecisionSpinBox</tabstop> |
322 | | - <tabstop>mFieldsListWidget</tabstop> |
323 | 359 | <tabstop>mValueListWidget</tabstop> |
324 | | - <tabstop>mSamplePushButton</tabstop> |
325 | 360 | <tabstop>mAllPushButton</tabstop> |
326 | 361 | <tabstop>mPlusPushButton</tabstop> |
327 | 362 | <tabstop>mMultiplyPushButton</tabstop> |
|
355 | 390 | <slot>accept()</slot> |
356 | 391 | <hints> |
357 | 392 | <hint type="sourcelabel"> |
358 | | - <x>321</x> |
359 | | - <y>676</y> |
| 393 | + <x>679</x> |
| 394 | + <y>559</y> |
360 | 395 | </hint> |
361 | 396 | <hint type="destinationlabel"> |
362 | 397 | <x>157</x> |
|
371 | 406 | <slot>reject()</slot> |
372 | 407 | <hints> |
373 | 408 | <hint type="sourcelabel"> |
374 | | - <x>321</x> |
375 | | - <y>676</y> |
| 409 | + <x>679</x> |
| 410 | + <y>559</y> |
376 | 411 | </hint> |
377 | 412 | <hint type="destinationlabel"> |
378 | 413 | <x>286</x> |
|
0 commit comments