|
1 |
| -<?xml version="1.0" encoding="UTF-8"?> |
2 |
| -<ui version="4.0"> |
| 1 | +<ui version="4.0" > |
3 | 2 | <class>QgsFieldCalculatorBase</class>
|
4 |
| - <widget class="QDialog" name="QgsFieldCalculatorBase"> |
5 |
| - <property name="geometry"> |
| 3 | + <widget class="QDialog" name="QgsFieldCalculatorBase" > |
| 4 | + <property name="geometry" > |
6 | 5 | <rect>
|
7 | 6 | <x>0</x>
|
8 | 7 | <y>0</y>
|
9 |
| - <width>383</width> |
10 |
| - <height>496</height> |
| 8 | + <width>615</width> |
| 9 | + <height>628</height> |
11 | 10 | </rect>
|
12 | 11 | </property>
|
13 |
| - <property name="windowTitle"> |
| 12 | + <property name="windowTitle" > |
14 | 13 | <string>Field calculator</string>
|
15 | 14 | </property>
|
16 |
| - <layout class="QGridLayout" name="gridLayout_3"> |
17 |
| - <item row="0" column="0"> |
18 |
| - <widget class="QLabel" name="mFieldNameLabel"> |
19 |
| - <property name="text"> |
20 |
| - <string>Output field name:</string> |
| 15 | + <layout class="QGridLayout" name="gridLayout_5" > |
| 16 | + <item row="0" column="0" > |
| 17 | + <widget class="QCheckBox" name="mUpdateExistingFieldCheckBox" > |
| 18 | + <property name="text" > |
| 19 | + <string>Update existing field</string> |
21 | 20 | </property>
|
22 | 21 | </widget>
|
23 | 22 | </item>
|
24 |
| - <item row="0" column="2"> |
25 |
| - <widget class="QLineEdit" name="mOutputFieldNameLineEdit"/> |
| 23 | + <item row="0" column="1" colspan="2" > |
| 24 | + <widget class="QComboBox" name="mExistingFieldComboBox" /> |
26 | 25 | </item>
|
27 |
| - <item row="1" column="0"> |
28 |
| - <widget class="QLabel" name="mOutputFieldTypeLabel"> |
29 |
| - <property name="text"> |
30 |
| - <string>Output field type:</string> |
| 26 | + <item row="1" column="0" colspan="3" > |
| 27 | + <widget class="QCheckBox" name="mOnlyUpdateSelectedCheckBox" > |
| 28 | + <property name="text" > |
| 29 | + <string>Only update selected features</string> |
31 | 30 | </property>
|
32 | 31 | </widget>
|
33 | 32 | </item>
|
34 |
| - <item row="1" column="2"> |
35 |
| - <widget class="QComboBox" name="mOutputFieldTypeComboBox"/> |
36 |
| - </item> |
37 |
| - <item row="2" column="0"> |
38 |
| - <widget class="QLabel" name="mOutputFieldWidthLabel"> |
39 |
| - <property name="text"> |
40 |
| - <string>Output field width:</string> |
41 |
| - </property> |
42 |
| - </widget> |
43 |
| - </item> |
44 |
| - <item row="2" column="1"> |
45 |
| - <widget class="QSpinBox" name="mOuputFieldWidthSpinBox"/> |
46 |
| - </item> |
47 |
| - <item row="2" column="2"> |
48 |
| - <widget class="QLabel" name="mOutputFieldPrecisionLabel"> |
49 |
| - <property name="text"> |
50 |
| - <string>Output field precision:</string> |
| 33 | + <item row="2" column="0" colspan="3" > |
| 34 | + <widget class="QGroupBox" name="mNewFieldGroupBox" > |
| 35 | + <property name="title" > |
| 36 | + <string>New field</string> |
51 | 37 | </property>
|
| 38 | + <layout class="QGridLayout" name="gridLayout_3" > |
| 39 | + <item row="0" column="0" > |
| 40 | + <widget class="QLabel" name="mFieldNameLabel" > |
| 41 | + <property name="text" > |
| 42 | + <string>Output field name:</string> |
| 43 | + </property> |
| 44 | + </widget> |
| 45 | + </item> |
| 46 | + <item row="0" column="1" colspan="3" > |
| 47 | + <widget class="QLineEdit" name="mOutputFieldNameLineEdit" /> |
| 48 | + </item> |
| 49 | + <item row="1" column="0" > |
| 50 | + <widget class="QLabel" name="mOutputFieldTypeLabel" > |
| 51 | + <property name="text" > |
| 52 | + <string>Output field type:</string> |
| 53 | + </property> |
| 54 | + </widget> |
| 55 | + </item> |
| 56 | + <item row="1" column="1" colspan="3" > |
| 57 | + <widget class="QComboBox" name="mOutputFieldTypeComboBox" /> |
| 58 | + </item> |
| 59 | + <item row="2" column="0" > |
| 60 | + <widget class="QLabel" name="mOutputFieldWidthLabel" > |
| 61 | + <property name="text" > |
| 62 | + <string>Output field width:</string> |
| 63 | + </property> |
| 64 | + </widget> |
| 65 | + </item> |
| 66 | + <item row="2" column="1" > |
| 67 | + <widget class="QSpinBox" name="mOuputFieldWidthSpinBox" /> |
| 68 | + </item> |
| 69 | + <item row="2" column="2" > |
| 70 | + <widget class="QLabel" name="mOutputFieldPrecisionLabel" > |
| 71 | + <property name="text" > |
| 72 | + <string>Output field precision:</string> |
| 73 | + </property> |
| 74 | + </widget> |
| 75 | + </item> |
| 76 | + <item row="2" column="3" > |
| 77 | + <widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox" /> |
| 78 | + </item> |
| 79 | + </layout> |
52 | 80 | </widget>
|
53 | 81 | </item>
|
54 |
| - <item row="2" column="3"> |
55 |
| - <widget class="QSpinBox" name="mOutputFieldPrecisionSpinBox"/> |
56 |
| - </item> |
57 |
| - <item row="3" column="0" colspan="2"> |
58 |
| - <widget class="QGroupBox" name="mFieldsGroupBox"> |
59 |
| - <property name="title"> |
| 82 | + <item row="3" column="0" colspan="2" > |
| 83 | + <widget class="QGroupBox" name="mFieldsGroupBox" > |
| 84 | + <property name="title" > |
60 | 85 | <string>Fields</string>
|
61 | 86 | </property>
|
62 |
| - <widget class="QListWidget" name="mFieldsListWidget"> |
63 |
| - <property name="geometry"> |
64 |
| - <rect> |
65 |
| - <x>10</x> |
66 |
| - <y>20</y> |
67 |
| - <width>221</width> |
68 |
| - <height>151</height> |
69 |
| - </rect> |
70 |
| - </property> |
71 |
| - </widget> |
| 87 | + <layout class="QGridLayout" name="gridLayout_4" > |
| 88 | + <item row="0" column="0" > |
| 89 | + <widget class="QListWidget" name="mFieldsListWidget" /> |
| 90 | + </item> |
| 91 | + </layout> |
72 | 92 | </widget>
|
73 | 93 | </item>
|
74 |
| - <item row="3" column="2" colspan="2"> |
75 |
| - <widget class="QGroupBox" name="mValuesGroupBox"> |
76 |
| - <property name="title"> |
| 94 | + <item row="3" column="2" > |
| 95 | + <widget class="QGroupBox" name="mValuesGroupBox" > |
| 96 | + <property name="title" > |
77 | 97 | <string>Values</string>
|
78 | 98 | </property>
|
79 |
| - <layout class="QGridLayout" name="gridLayout_2"> |
80 |
| - <item row="0" column="0" colspan="2"> |
81 |
| - <widget class="QListWidget" name="mValueListWidget"/> |
| 99 | + <layout class="QGridLayout" name="gridLayout_2" > |
| 100 | + <item row="0" column="0" colspan="2" > |
| 101 | + <widget class="QListWidget" name="mValueListWidget" /> |
82 | 102 | </item>
|
83 |
| - <item row="1" column="0"> |
84 |
| - <widget class="QPushButton" name="mSamplePushButton"> |
85 |
| - <property name="text"> |
| 103 | + <item row="1" column="0" > |
| 104 | + <widget class="QPushButton" name="mSamplePushButton" > |
| 105 | + <property name="text" > |
86 | 106 | <string>Sample</string>
|
87 | 107 | </property>
|
88 | 108 | </widget>
|
89 | 109 | </item>
|
90 |
| - <item row="1" column="1"> |
91 |
| - <widget class="QPushButton" name="mAllPushButton"> |
92 |
| - <property name="text"> |
| 110 | + <item row="1" column="1" > |
| 111 | + <widget class="QPushButton" name="mAllPushButton" > |
| 112 | + <property name="text" > |
93 | 113 | <string>All</string>
|
94 | 114 | </property>
|
95 | 115 | </widget>
|
96 | 116 | </item>
|
97 | 117 | </layout>
|
98 | 118 | </widget>
|
99 | 119 | </item>
|
100 |
| - <item row="4" column="0" colspan="4"> |
101 |
| - <widget class="QGroupBox" name="mOperatorsGroupBox"> |
102 |
| - <property name="title"> |
| 120 | + <item row="4" column="0" colspan="3" > |
| 121 | + <widget class="QGroupBox" name="mOperatorsGroupBox" > |
| 122 | + <property name="title" > |
103 | 123 | <string>Operators</string>
|
104 | 124 | </property>
|
105 |
| - <layout class="QGridLayout" name="gridLayout"> |
106 |
| - <item row="0" column="0"> |
107 |
| - <widget class="QPushButton" name="mPlusPushButton"> |
108 |
| - <property name="text"> |
| 125 | + <layout class="QGridLayout" name="gridLayout" > |
| 126 | + <item row="0" column="0" > |
| 127 | + <widget class="QPushButton" name="mPlusPushButton" > |
| 128 | + <property name="text" > |
109 | 129 | <string>+</string>
|
110 | 130 | </property>
|
111 | 131 | </widget>
|
112 | 132 | </item>
|
113 |
| - <item row="0" column="1"> |
114 |
| - <widget class="QPushButton" name="mMultiplyPushButton"> |
115 |
| - <property name="text"> |
| 133 | + <item row="0" column="1" > |
| 134 | + <widget class="QPushButton" name="mMultiplyPushButton" > |
| 135 | + <property name="text" > |
116 | 136 | <string>*</string>
|
117 | 137 | </property>
|
118 | 138 | </widget>
|
119 | 139 | </item>
|
120 |
| - <item row="0" column="2"> |
121 |
| - <widget class="QPushButton" name="mSqrtButton"> |
122 |
| - <property name="text"> |
| 140 | + <item row="0" column="2" > |
| 141 | + <widget class="QPushButton" name="mSqrtButton" > |
| 142 | + <property name="text" > |
123 | 143 | <string>sqrt</string>
|
124 | 144 | </property>
|
125 | 145 | </widget>
|
126 | 146 | </item>
|
127 |
| - <item row="0" column="3"> |
128 |
| - <widget class="QPushButton" name="mSinButton"> |
129 |
| - <property name="text"> |
| 147 | + <item row="0" column="3" > |
| 148 | + <widget class="QPushButton" name="mSinButton" > |
| 149 | + <property name="text" > |
130 | 150 | <string>sin</string>
|
131 | 151 | </property>
|
132 | 152 | </widget>
|
133 | 153 | </item>
|
134 |
| - <item row="0" column="4"> |
135 |
| - <widget class="QPushButton" name="mTanButton"> |
136 |
| - <property name="text"> |
| 154 | + <item row="0" column="4" > |
| 155 | + <widget class="QPushButton" name="mTanButton" > |
| 156 | + <property name="text" > |
137 | 157 | <string>tan</string>
|
138 | 158 | </property>
|
139 | 159 | </widget>
|
140 | 160 | </item>
|
141 |
| - <item row="0" column="5"> |
142 |
| - <widget class="QPushButton" name="mACosButton"> |
143 |
| - <property name="text"> |
| 161 | + <item row="0" column="5" > |
| 162 | + <widget class="QPushButton" name="mACosButton" > |
| 163 | + <property name="text" > |
144 | 164 | <string>acos</string>
|
145 | 165 | </property>
|
146 | 166 | </widget>
|
147 | 167 | </item>
|
148 |
| - <item row="0" column="6"> |
149 |
| - <widget class="QPushButton" name="mOpenBracketPushButton"> |
150 |
| - <property name="text"> |
| 168 | + <item row="0" column="6" > |
| 169 | + <widget class="QPushButton" name="mOpenBracketPushButton" > |
| 170 | + <property name="text" > |
151 | 171 | <string>(</string>
|
152 | 172 | </property>
|
153 | 173 | </widget>
|
154 | 174 | </item>
|
155 |
| - <item row="1" column="0"> |
156 |
| - <widget class="QPushButton" name="mMinusPushButton"> |
157 |
| - <property name="text"> |
| 175 | + <item row="1" column="0" > |
| 176 | + <widget class="QPushButton" name="mMinusPushButton" > |
| 177 | + <property name="text" > |
158 | 178 | <string>-</string>
|
159 | 179 | </property>
|
160 | 180 | </widget>
|
161 | 181 | </item>
|
162 |
| - <item row="1" column="1"> |
163 |
| - <widget class="QPushButton" name="mDividePushButton"> |
164 |
| - <property name="text"> |
| 182 | + <item row="1" column="1" > |
| 183 | + <widget class="QPushButton" name="mDividePushButton" > |
| 184 | + <property name="text" > |
165 | 185 | <string>/</string>
|
166 | 186 | </property>
|
167 | 187 | </widget>
|
168 | 188 | </item>
|
169 |
| - <item row="1" column="2"> |
170 |
| - <widget class="QPushButton" name="mExpButton"> |
171 |
| - <property name="text"> |
| 189 | + <item row="1" column="2" > |
| 190 | + <widget class="QPushButton" name="mExpButton" > |
| 191 | + <property name="text" > |
172 | 192 | <string>^</string>
|
173 | 193 | </property>
|
174 | 194 | </widget>
|
175 | 195 | </item>
|
176 |
| - <item row="1" column="3"> |
177 |
| - <widget class="QPushButton" name="mCosButton"> |
178 |
| - <property name="text"> |
| 196 | + <item row="1" column="3" > |
| 197 | + <widget class="QPushButton" name="mCosButton" > |
| 198 | + <property name="text" > |
179 | 199 | <string>cos</string>
|
180 | 200 | </property>
|
181 | 201 | </widget>
|
182 | 202 | </item>
|
183 |
| - <item row="1" column="4"> |
184 |
| - <widget class="QPushButton" name="mASinButton"> |
185 |
| - <property name="text"> |
| 203 | + <item row="1" column="4" > |
| 204 | + <widget class="QPushButton" name="mASinButton" > |
| 205 | + <property name="text" > |
186 | 206 | <string>asin</string>
|
187 | 207 | </property>
|
188 | 208 | </widget>
|
189 | 209 | </item>
|
190 |
| - <item row="1" column="5"> |
191 |
| - <widget class="QPushButton" name="mATanButton"> |
192 |
| - <property name="text"> |
| 210 | + <item row="1" column="5" > |
| 211 | + <widget class="QPushButton" name="mATanButton" > |
| 212 | + <property name="text" > |
193 | 213 | <string>atan</string>
|
194 | 214 | </property>
|
195 | 215 | </widget>
|
196 | 216 | </item>
|
197 |
| - <item row="1" column="6"> |
198 |
| - <widget class="QPushButton" name="mCloseBracketPushButton"> |
199 |
| - <property name="text"> |
| 217 | + <item row="1" column="6" > |
| 218 | + <widget class="QPushButton" name="mCloseBracketPushButton" > |
| 219 | + <property name="text" > |
200 | 220 | <string>)</string>
|
201 | 221 | </property>
|
202 | 222 | </widget>
|
203 | 223 | </item>
|
204 | 224 | </layout>
|
205 | 225 | </widget>
|
206 | 226 | </item>
|
207 |
| - <item row="5" column="0" colspan="2"> |
208 |
| - <widget class="QLabel" name="mFieldCalculatorExpressionLabel"> |
209 |
| - <property name="text"> |
| 227 | + <item row="5" column="0" colspan="2" > |
| 228 | + <widget class="QLabel" name="mFieldCalculatorExpressionLabel" > |
| 229 | + <property name="text" > |
210 | 230 | <string>Field calculator expression:</string>
|
211 | 231 | </property>
|
212 | 232 | </widget>
|
213 | 233 | </item>
|
214 |
| - <item row="6" column="0" colspan="4"> |
215 |
| - <widget class="QTextEdit" name="mExpressionTextEdit"/> |
| 234 | + <item row="6" column="0" colspan="3" > |
| 235 | + <widget class="QTextEdit" name="mExpressionTextEdit" /> |
216 | 236 | </item>
|
217 |
| - <item row="7" column="0" colspan="2"> |
218 |
| - <widget class="QDialogButtonBox" name="mButtonBox"> |
219 |
| - <property name="orientation"> |
| 237 | + <item row="7" column="0" colspan="2" > |
| 238 | + <widget class="QDialogButtonBox" name="mButtonBox" > |
| 239 | + <property name="orientation" > |
220 | 240 | <enum>Qt::Horizontal</enum>
|
221 | 241 | </property>
|
222 |
| - <property name="standardButtons"> |
| 242 | + <property name="standardButtons" > |
223 | 243 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
224 | 244 | </property>
|
225 | 245 | </widget>
|
|
234 | 254 | <receiver>QgsFieldCalculatorBase</receiver>
|
235 | 255 | <slot>accept()</slot>
|
236 | 256 | <hints>
|
237 |
| - <hint type="sourcelabel"> |
| 257 | + <hint type="sourcelabel" > |
238 | 258 | <x>248</x>
|
239 | 259 | <y>254</y>
|
240 | 260 | </hint>
|
241 |
| - <hint type="destinationlabel"> |
| 261 | + <hint type="destinationlabel" > |
242 | 262 | <x>157</x>
|
243 | 263 | <y>274</y>
|
244 | 264 | </hint>
|
|
250 | 270 | <receiver>QgsFieldCalculatorBase</receiver>
|
251 | 271 | <slot>reject()</slot>
|
252 | 272 | <hints>
|
253 |
| - <hint type="sourcelabel"> |
| 273 | + <hint type="sourcelabel" > |
254 | 274 | <x>316</x>
|
255 | 275 | <y>260</y>
|
256 | 276 | </hint>
|
257 |
| - <hint type="destinationlabel"> |
| 277 | + <hint type="destinationlabel" > |
258 | 278 | <x>286</x>
|
259 | 279 | <y>274</y>
|
260 | 280 | </hint>
|
|
0 commit comments