|
6 | 6 | <rect>
|
7 | 7 | <x>0</x>
|
8 | 8 | <y>0</y>
|
9 |
| - <width>782</width> |
10 |
| - <height>663</height> |
| 9 | + <width>871</width> |
| 10 | + <height>712</height> |
11 | 11 | </rect>
|
12 | 12 | </property>
|
13 | 13 | <layout class="QGridLayout" name="gridLayout_6">
|
| 14 | + <item row="1" column="5"> |
| 15 | + <widget class="QLabel" name="label_3"> |
| 16 | + <property name="toolTip"> |
| 17 | + <string>QGIS forms can have a Python function that is called when the form is opened. |
| 18 | +Use this function to add extra logic to your forms. |
| 19 | + |
| 20 | +An example is (in module MyForms.py): |
| 21 | + |
| 22 | + def open(dialog, layer, feature): |
| 23 | + geom = feature.geometry() |
| 24 | + control = dialog.findChild(QWidget,"MyLineEdit") |
| 25 | + |
| 26 | +Reference in Python Init Function like so: MyForms.open |
| 27 | + |
| 28 | +MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.</string> |
| 29 | + </property> |
| 30 | + <property name="text"> |
| 31 | + <string>Python Init function</string> |
| 32 | + </property> |
| 33 | + </widget> |
| 34 | + </item> |
| 35 | + <item row="0" column="4"> |
| 36 | + <spacer> |
| 37 | + <property name="orientation"> |
| 38 | + <enum>Qt::Horizontal</enum> |
| 39 | + </property> |
| 40 | + <property name="sizeHint" stdset="0"> |
| 41 | + <size> |
| 42 | + <width>100</width> |
| 43 | + <height>19</height> |
| 44 | + </size> |
| 45 | + </property> |
| 46 | + </spacer> |
| 47 | + </item> |
14 | 48 | <item row="0" column="0">
|
15 | 49 | <widget class="QToolButton" name="mAddAttributeButton">
|
16 | 50 | <property name="sizePolicy">
|
|
34 | 68 | </property>
|
35 | 69 | </widget>
|
36 | 70 | </item>
|
37 |
| - <item row="0" column="3"> |
38 |
| - <widget class="QToolButton" name="mCalculateFieldButton"> |
39 |
| - <property name="toolTip"> |
40 |
| - <string>Field calculator</string> |
41 |
| - </property> |
42 |
| - <property name="whatsThis"> |
43 |
| - <string>Click to toggle table editing</string> |
44 |
| - </property> |
| 71 | + <item row="1" column="6"> |
| 72 | + <widget class="QLineEdit" name="leEditFormInit"/> |
| 73 | + </item> |
| 74 | + <item row="0" column="5"> |
| 75 | + <widget class="QLabel" name="label_2"> |
45 | 76 | <property name="text">
|
46 |
| - <string/> |
47 |
| - </property> |
48 |
| - <property name="checkable"> |
49 |
| - <bool>false</bool> |
| 77 | + <string>Attribute editor layout:</string> |
50 | 78 | </property>
|
51 | 79 | </widget>
|
52 | 80 | </item>
|
53 |
| - <item row="0" column="1"> |
54 |
| - <widget class="QToolButton" name="mDeleteAttributeButton"> |
| 81 | + <item row="0" column="2"> |
| 82 | + <widget class="QToolButton" name="mToggleEditingButton"> |
55 | 83 | <property name="toolTip">
|
56 |
| - <string>Delete column</string> |
| 84 | + <string>Toggle editing mode</string> |
| 85 | + </property> |
| 86 | + <property name="whatsThis"> |
| 87 | + <string>Click to toggle table editing</string> |
57 | 88 | </property>
|
58 | 89 | <property name="text">
|
59 | 90 | <string/>
|
60 | 91 | </property>
|
61 |
| - <property name="icon"> |
62 |
| - <iconset> |
63 |
| - <normaloff>.designer/xpm/delete_attribute.png</normaloff>.designer/xpm/delete_attribute.png</iconset> |
64 |
| - </property> |
65 |
| - <property name="shortcut"> |
66 |
| - <string>Ctrl+X</string> |
| 92 | + <property name="checkable"> |
| 93 | + <bool>true</bool> |
67 | 94 | </property>
|
68 | 95 | </widget>
|
69 | 96 | </item>
|
70 |
| - <item row="0" column="4"> |
71 |
| - <spacer> |
72 |
| - <property name="orientation"> |
73 |
| - <enum>Qt::Horizontal</enum> |
74 |
| - </property> |
75 |
| - <property name="sizeHint" stdset="0"> |
76 |
| - <size> |
77 |
| - <width>100</width> |
78 |
| - <height>19</height> |
79 |
| - </size> |
80 |
| - </property> |
81 |
| - </spacer> |
82 |
| - </item> |
83 | 97 | <item row="0" column="6">
|
84 | 98 | <widget class="QComboBox" name="mEditorLayoutComboBox">
|
85 | 99 | <property name="sizePolicy">
|
|
105 | 119 | </item>
|
106 | 120 | </widget>
|
107 | 121 | </item>
|
108 |
| - <item row="1" column="5"> |
109 |
| - <widget class="QLabel" name="label_3"> |
110 |
| - <property name="toolTip"> |
111 |
| - <string>QGIS forms can have a Python function that is called when the form is opened. |
112 |
| -Use this function to add extra logic to your forms. |
113 |
| - |
114 |
| -An example is (in module MyForms.py): |
115 |
| - |
116 |
| - def open(dialog, layer, feature): |
117 |
| - geom = feature.geometry() |
118 |
| - control = dialog.findChild(QWidget,"MyLineEdit") |
119 |
| - |
120 |
| -Reference in Python Init Function like so: MyForms.open |
121 |
| - |
122 |
| -MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.</string> |
123 |
| - </property> |
124 |
| - <property name="text"> |
125 |
| - <string>Python Init function</string> |
126 |
| - </property> |
127 |
| - </widget> |
128 |
| - </item> |
129 |
| - <item row="0" column="2"> |
130 |
| - <widget class="QToolButton" name="mToggleEditingButton"> |
131 |
| - <property name="toolTip"> |
132 |
| - <string>Toggle editing mode</string> |
133 |
| - </property> |
134 |
| - <property name="whatsThis"> |
135 |
| - <string>Click to toggle table editing</string> |
136 |
| - </property> |
137 |
| - <property name="text"> |
138 |
| - <string/> |
139 |
| - </property> |
140 |
| - <property name="checkable"> |
141 |
| - <bool>true</bool> |
142 |
| - </property> |
143 |
| - </widget> |
144 |
| - </item> |
145 |
| - <item row="1" column="6"> |
146 |
| - <widget class="QLineEdit" name="leEditFormInit"/> |
147 |
| - </item> |
148 |
| - <item row="0" column="5"> |
149 |
| - <widget class="QLabel" name="label_2"> |
150 |
| - <property name="text"> |
151 |
| - <string>Attribute editor layout:</string> |
152 |
| - </property> |
153 |
| - </widget> |
154 |
| - </item> |
155 | 122 | <item row="2" column="0" colspan="7">
|
156 | 123 | <widget class="QSplitter" name="mSplitter">
|
157 | 124 | <property name="orientation">
|
@@ -230,9 +197,6 @@ MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.<
|
230 | 197 | </size>
|
231 | 198 | </property>
|
232 | 199 | <layout class="QVBoxLayout" name="verticalLayout">
|
233 |
| - <property name="spacing"> |
234 |
| - <number>6</number> |
235 |
| - </property> |
236 | 200 | <property name="margin">
|
237 | 201 | <number>0</number>
|
238 | 202 | </property>
|
@@ -342,6 +306,93 @@ MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.<
|
342 | 306 | </widget>
|
343 | 307 | </widget>
|
344 | 308 | </item>
|
| 309 | + <item row="0" column="3"> |
| 310 | + <widget class="QToolButton" name="mCalculateFieldButton"> |
| 311 | + <property name="toolTip"> |
| 312 | + <string>Field calculator</string> |
| 313 | + </property> |
| 314 | + <property name="whatsThis"> |
| 315 | + <string>Click to toggle table editing</string> |
| 316 | + </property> |
| 317 | + <property name="text"> |
| 318 | + <string/> |
| 319 | + </property> |
| 320 | + <property name="checkable"> |
| 321 | + <bool>false</bool> |
| 322 | + </property> |
| 323 | + </widget> |
| 324 | + </item> |
| 325 | + <item row="0" column="1"> |
| 326 | + <widget class="QToolButton" name="mDeleteAttributeButton"> |
| 327 | + <property name="toolTip"> |
| 328 | + <string>Delete column</string> |
| 329 | + </property> |
| 330 | + <property name="text"> |
| 331 | + <string/> |
| 332 | + </property> |
| 333 | + <property name="icon"> |
| 334 | + <iconset> |
| 335 | + <normaloff>.designer/xpm/delete_attribute.png</normaloff>.designer/xpm/delete_attribute.png</iconset> |
| 336 | + </property> |
| 337 | + <property name="shortcut"> |
| 338 | + <string>Ctrl+X</string> |
| 339 | + </property> |
| 340 | + </widget> |
| 341 | + </item> |
| 342 | + <item row="3" column="0" colspan="7"> |
| 343 | + <layout class="QHBoxLayout" name="horizontalLayout"> |
| 344 | + <item> |
| 345 | + <widget class="QLabel" name="mFormSuppressLabel"> |
| 346 | + <property name="sizePolicy"> |
| 347 | + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> |
| 348 | + <horstretch>0</horstretch> |
| 349 | + <verstretch>0</verstretch> |
| 350 | + </sizepolicy> |
| 351 | + </property> |
| 352 | + <property name="minimumSize"> |
| 353 | + <size> |
| 354 | + <width>150</width> |
| 355 | + <height>0</height> |
| 356 | + </size> |
| 357 | + </property> |
| 358 | + <property name="text"> |
| 359 | + <string>Suppress attribute form pop-up after feature creation</string> |
| 360 | + </property> |
| 361 | + <property name="alignment"> |
| 362 | + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
| 363 | + </property> |
| 364 | + <property name="wordWrap"> |
| 365 | + <bool>true</bool> |
| 366 | + </property> |
| 367 | + </widget> |
| 368 | + </item> |
| 369 | + <item> |
| 370 | + <widget class="QComboBox" name="mFormSuppressCmbBx"> |
| 371 | + <property name="sizePolicy"> |
| 372 | + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> |
| 373 | + <horstretch>0</horstretch> |
| 374 | + <verstretch>0</verstretch> |
| 375 | + </sizepolicy> |
| 376 | + </property> |
| 377 | + <item> |
| 378 | + <property name="text"> |
| 379 | + <string>Default</string> |
| 380 | + </property> |
| 381 | + </item> |
| 382 | + <item> |
| 383 | + <property name="text"> |
| 384 | + <string>On</string> |
| 385 | + </property> |
| 386 | + </item> |
| 387 | + <item> |
| 388 | + <property name="text"> |
| 389 | + <string>Off</string> |
| 390 | + </property> |
| 391 | + </item> |
| 392 | + </widget> |
| 393 | + </item> |
| 394 | + </layout> |
| 395 | + </item> |
345 | 396 | </layout>
|
346 | 397 | </widget>
|
347 | 398 | <resources>
|
|
0 commit comments