Skip to content

Commit c48ff8d

Browse files
author
timlinux
committedNov 19, 2009
[Feature] Implement property list ui for qgsoptions dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@12196 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9375071 commit c48ff8d

File tree

1 file changed

+98
-128
lines changed

1 file changed

+98
-128
lines changed
 

‎src/ui/qgsoptionsbase.ui

Lines changed: 98 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>722</width>
10-
<height>529</height>
9+
<width>833</width>
10+
<height>532</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -19,17 +19,58 @@
1919
<property name="modal">
2020
<bool>true</bool>
2121
</property>
22-
<layout class="QGridLayout">
22+
<layout class="QGridLayout" name="gridLayout_3">
2323
<item row="0" column="0">
24-
<widget class="QTabWidget" name="tabWidget">
25-
<property name="currentIndex">
26-
<number>0</number>
27-
</property>
28-
<widget class="QWidget" name="tabGeneral">
29-
<attribute name="title">
30-
<string>&amp;General</string>
31-
</attribute>
24+
<widget class="QListWidget" name="listWidget">
25+
<item>
26+
<property name="text">
27+
<string>General</string>
28+
</property>
29+
</item>
30+
<item>
31+
<property name="text">
32+
<string>Rendering &amp; SVG</string>
33+
</property>
34+
</item>
35+
<item>
36+
<property name="text">
37+
<string>Map tools</string>
38+
</property>
39+
</item>
40+
<item>
41+
<property name="text">
42+
<string>Overlay</string>
43+
</property>
44+
</item>
45+
<item>
46+
<property name="text">
47+
<string>Digitising</string>
48+
</property>
49+
</item>
50+
<item>
51+
<property name="text">
52+
<string>CRS</string>
53+
</property>
54+
</item>
55+
<item>
56+
<property name="text">
57+
<string>Locale</string>
58+
</property>
59+
</item>
60+
<item>
61+
<property name="text">
62+
<string>Network &amp; Proxy</string>
63+
</property>
64+
</item>
65+
</widget>
66+
</item>
67+
<item row="0" column="1">
68+
<widget class="QStackedWidget" name="stackedWidget">
69+
<widget class="QWidget" name="stackedWidgetPage1" native="true">
3270
<layout class="QGridLayout">
71+
<property name="margin">
72+
<number>0</number>
73+
</property>
3374
<item row="0" column="0">
3475
<widget class="QGroupBox" name="groupBox_11">
3576
<property name="title">
@@ -67,9 +108,6 @@
67108
<property name="text">
68109
<string>Selection color</string>
69110
</property>
70-
<property name="buddy">
71-
<cstring>pbnSelectionColour</cstring>
72-
</property>
73111
</widget>
74112
</item>
75113
<item row="0" column="3">
@@ -90,9 +128,6 @@
90128
<property name="text">
91129
<string>Background color</string>
92130
</property>
93-
<property name="buddy">
94-
<cstring>pbnCanvasColor</cstring>
95-
</property>
96131
</widget>
97132
</item>
98133
<item row="1" column="2">
@@ -154,9 +189,6 @@
154189
<property name="text">
155190
<string>Icon theme</string>
156191
</property>
157-
<property name="buddy">
158-
<cstring>cmbTheme</cstring>
159-
</property>
160192
</widget>
161193
</item>
162194
<item row="1" column="0" colspan="2">
@@ -234,11 +266,11 @@
234266
</item>
235267
</layout>
236268
</widget>
237-
<widget class="QWidget" name="tabRendering">
238-
<attribute name="title">
239-
<string>&amp;Rendering and SVG</string>
240-
</attribute>
269+
<widget class="QWidget" name="stackedWidgetPage2" native="true">
241270
<layout class="QGridLayout">
271+
<property name="margin">
272+
<number>0</number>
273+
</property>
242274
<item row="0" column="0">
243275
<widget class="QGroupBox" name="groupBox_5">
244276
<property name="title">
@@ -257,9 +289,6 @@
257289
<property name="text">
258290
<string>Number of features to draw before updating the display</string>
259291
</property>
260-
<property name="buddy">
261-
<cstring>spinBoxUpdateThreshold</cstring>
262-
</property>
263292
</widget>
264293
</item>
265294
<item row="1" column="1">
@@ -385,13 +414,10 @@
385414
</item>
386415
</layout>
387416
</widget>
388-
<widget class="QWidget" name="tabMap">
389-
<attribute name="title">
390-
<string>&amp;Map tools</string>
391-
</attribute>
417+
<widget class="QWidget" name="stackedWidgetPage3" native="true">
392418
<layout class="QGridLayout">
393419
<property name="margin">
394-
<number>11</number>
420+
<number>0</number>
395421
</property>
396422
<item row="2" column="0">
397423
<widget class="QGroupBox" name="groupBox_10">
@@ -431,19 +457,13 @@
431457
<property name="text">
432458
<string>Zoom factor</string>
433459
</property>
434-
<property name="buddy">
435-
<cstring>spinZoomFactor</cstring>
436-
</property>
437460
</widget>
438461
</item>
439462
<item row="0" column="0">
440463
<widget class="QLabel" name="label_2">
441464
<property name="text">
442465
<string>Mouse wheel action</string>
443466
</property>
444-
<property name="buddy">
445-
<cstring>cmbWheelAction</cstring>
446-
</property>
447467
</widget>
448468
</item>
449469
<item row="1" column="1">
@@ -486,9 +506,6 @@
486506
<property name="text">
487507
<string>Search radius for identifying features and displaying map tips</string>
488508
</property>
489-
<property name="buddy">
490-
<cstring>spinBoxIdentifyValue</cstring>
491-
</property>
492509
</widget>
493510
</item>
494511
<item row="2" column="1">
@@ -515,9 +532,6 @@
515532
<property name="text">
516533
<string>Mode</string>
517534
</property>
518-
<property name="buddy">
519-
<cstring>cmbIdentifyMode</cstring>
520-
</property>
521535
</widget>
522536
</item>
523537
<item row="1" column="0" colspan="2">
@@ -586,29 +600,20 @@
586600
<property name="text">
587601
<string>Rubberband color</string>
588602
</property>
589-
<property name="buddy">
590-
<cstring>pbnMeasureColour</cstring>
591-
</property>
592603
</widget>
593604
</item>
594605
<item row="0" column="0">
595606
<widget class="QLabel" name="textLabel1_8">
596607
<property name="text">
597608
<string>Ellipsoid for distance calculations</string>
598609
</property>
599-
<property name="buddy">
600-
<cstring>cmbEllipsoid</cstring>
601-
</property>
602610
</widget>
603611
</item>
604612
<item row="2" column="0">
605613
<widget class="QLabel" name="textLabel1_11">
606614
<property name="text">
607615
<string>Preferred measurements units</string>
608616
</property>
609-
<property name="buddy">
610-
<cstring>radMeters</cstring>
611-
</property>
612617
</widget>
613618
</item>
614619
<item row="2" column="1">
@@ -630,11 +635,11 @@
630635
</item>
631636
</layout>
632637
</widget>
633-
<widget class="QWidget" name="mOverlayTab">
634-
<attribute name="title">
635-
<string>Overlay</string>
636-
</attribute>
638+
<widget class="QWidget" name="stackedWidgetPage4" native="true">
637639
<layout class="QGridLayout">
640+
<property name="margin">
641+
<number>0</number>
642+
</property>
638643
<item row="0" column="0">
639644
<widget class="QGroupBox" name="mPositionGroupBox">
640645
<property name="title">
@@ -646,9 +651,6 @@
646651
<property name="text">
647652
<string>Placement algorithm:</string>
648653
</property>
649-
<property name="buddy">
650-
<cstring>mOverlayAlgorithmComboBox</cstring>
651-
</property>
652654
</widget>
653655
</item>
654656
<item row="0" column="1">
@@ -685,11 +687,11 @@
685687
</item>
686688
</layout>
687689
</widget>
688-
<widget class="QWidget" name="tabDigitizing">
689-
<attribute name="title">
690-
<string>Digitizing</string>
691-
</attribute>
690+
<widget class="QWidget" name="stackedWidgetPage5" native="true">
692691
<layout class="QGridLayout">
692+
<property name="margin">
693+
<number>0</number>
694+
</property>
693695
<item row="0" column="0">
694696
<widget class="QGroupBox" name="mRubberBandGroupBox">
695697
<property name="title">
@@ -701,9 +703,6 @@
701703
<property name="text">
702704
<string>Line width</string>
703705
</property>
704-
<property name="buddy">
705-
<cstring>mLineWidthSpinBox</cstring>
706-
</property>
707706
</widget>
708707
</item>
709708
<item row="0" column="1">
@@ -721,9 +720,6 @@
721720
<property name="text">
722721
<string>Line colour</string>
723722
</property>
724-
<property name="buddy">
725-
<cstring>mLineColourToolButton</cstring>
726-
</property>
727723
</widget>
728724
</item>
729725
<item row="1" column="1">
@@ -753,9 +749,6 @@
753749
<property name="text">
754750
<string>Default snap mode</string>
755751
</property>
756-
<property name="buddy">
757-
<cstring>mDefaultSnapModeComboBox</cstring>
758-
</property>
759752
</widget>
760753
</item>
761754
<item row="0" column="1" colspan="3">
@@ -786,9 +779,6 @@
786779
<property name="text">
787780
<string>Default snapping tolerance</string>
788781
</property>
789-
<property name="buddy">
790-
<cstring>mDefaultSnappingToleranceSpinBox</cstring>
791-
</property>
792782
</widget>
793783
</item>
794784
<item row="1" column="2" colspan="2">
@@ -819,9 +809,6 @@
819809
<property name="text">
820810
<string>Search radius for vertex edits</string>
821811
</property>
822-
<property name="buddy">
823-
<cstring>mSearchRadiusVertexEditSpinBox</cstring>
824-
</property>
825812
</widget>
826813
</item>
827814
<item row="2" column="3">
@@ -902,9 +889,6 @@
902889
<property name="text">
903890
<string>Marker style</string>
904891
</property>
905-
<property name="buddy">
906-
<cstring>mMarkerStyleComboBox</cstring>
907-
</property>
908892
</widget>
909893
</item>
910894
<item row="1" column="1">
@@ -948,9 +932,6 @@
948932
<property name="text">
949933
<string>Marker size</string>
950934
</property>
951-
<property name="buddy">
952-
<cstring>mMarkerSizeSpinBox</cstring>
953-
</property>
954935
</widget>
955936
</item>
956937
<item row="2" column="1">
@@ -1003,13 +984,10 @@
1003984
</item>
1004985
</layout>
1005986
</widget>
1006-
<widget class="QWidget" name="tabCRS">
1007-
<attribute name="title">
1008-
<string>CRS</string>
1009-
</attribute>
987+
<widget class="QWidget" name="stackedWidgetPage6" native="true">
1010988
<layout class="QGridLayout">
1011989
<property name="margin">
1012-
<number>11</number>
990+
<number>0</number>
1013991
</property>
1014992
<item row="3" column="0">
1015993
<spacer>
@@ -1069,11 +1047,11 @@
10691047
</item>
10701048
</layout>
10711049
</widget>
1072-
<widget class="QWidget" name="tabLocale">
1073-
<attribute name="title">
1074-
<string>Locale</string>
1075-
</attribute>
1050+
<widget class="QWidget" name="stackedWidgetPage7" native="true">
10761051
<layout class="QGridLayout">
1052+
<property name="margin">
1053+
<number>0</number>
1054+
</property>
10771055
<item row="0" column="0">
10781056
<widget class="QGroupBox" name="grpLocale">
10791057
<property name="title">
@@ -1088,9 +1066,6 @@
10881066
<property name="text">
10891067
<string>Locale to use instead</string>
10901068
</property>
1091-
<property name="buddy">
1092-
<cstring>cboLocale</cstring>
1093-
</property>
10941069
</widget>
10951070
</item>
10961071
<item row="0" column="1">
@@ -1140,21 +1115,18 @@
11401115
</item>
11411116
</layout>
11421117
</widget>
1143-
<widget class="QWidget" name="tab">
1144-
<attribute name="title">
1145-
<string>Network and Proxy</string>
1146-
</attribute>
1118+
<widget class="QWidget" name="stackedWidgetPage8" native="true">
11471119
<layout class="QGridLayout" name="gridLayout_2">
1120+
<property name="margin">
1121+
<number>0</number>
1122+
</property>
11481123
<item row="0" column="0">
11491124
<layout class="QHBoxLayout" name="horizontalLayout">
11501125
<item>
11511126
<widget class="QLabel" name="mNetworkTimeoutLabel">
11521127
<property name="text">
11531128
<string>Timeout for network requests (ms):</string>
11541129
</property>
1155-
<property name="buddy">
1156-
<cstring>mNetworkTimeoutSpinBox</cstring>
1157-
</property>
11581130
</widget>
11591131
</item>
11601132
<item>
@@ -1183,9 +1155,6 @@
11831155
<property name="text">
11841156
<string>Host</string>
11851157
</property>
1186-
<property name="buddy">
1187-
<cstring>leProxyHost</cstring>
1188-
</property>
11891158
</widget>
11901159
</item>
11911160
<item row="0" column="1" colspan="5">
@@ -1196,9 +1165,6 @@
11961165
<property name="text">
11971166
<string>Port</string>
11981167
</property>
1199-
<property name="buddy">
1200-
<cstring>leProxyPort</cstring>
1201-
</property>
12021168
</widget>
12031169
</item>
12041170
<item row="1" column="1" colspan="5">
@@ -1209,9 +1175,6 @@
12091175
<property name="text">
12101176
<string>User</string>
12111177
</property>
1212-
<property name="buddy">
1213-
<cstring>leProxyUser</cstring>
1214-
</property>
12151178
</widget>
12161179
</item>
12171180
<item row="2" column="1" colspan="5">
@@ -1226,9 +1189,6 @@
12261189
<property name="text">
12271190
<string>Password</string>
12281191
</property>
1229-
<property name="buddy">
1230-
<cstring>leProxyPassword</cstring>
1231-
</property>
12321192
</widget>
12331193
</item>
12341194
<item row="3" column="1" colspan="5">
@@ -1246,9 +1206,6 @@
12461206
<property name="text">
12471207
<string>Proxy type</string>
12481208
</property>
1249-
<property name="buddy">
1250-
<cstring>mProxyTypeComboBox</cstring>
1251-
</property>
12521209
</widget>
12531210
</item>
12541211
<item row="4" column="1" colspan="2">
@@ -1272,9 +1229,6 @@
12721229
<property name="text">
12731230
<string>Exclude URLs (starting with):</string>
12741231
</property>
1275-
<property name="buddy">
1276-
<cstring>mAddUrlPushButton</cstring>
1277-
</property>
12781232
</widget>
12791233
</item>
12801234
<item row="5" column="2" colspan="2">
@@ -1314,7 +1268,7 @@
13141268
</widget>
13151269
</widget>
13161270
</item>
1317-
<item row="1" column="0">
1271+
<item row="1" column="0" colspan="2">
13181272
<widget class="QDialogButtonBox" name="buttonBox">
13191273
<property name="orientation">
13201274
<enum>Qt::Horizontal</enum>
@@ -1335,7 +1289,7 @@
13351289
</customwidget>
13361290
</customwidgets>
13371291
<tabstops>
1338-
<tabstop>tabWidget</tabstop>
1292+
<tabstop>stackedWidget</tabstop>
13391293
<tabstop>chbAskToSaveProjectChanges</tabstop>
13401294
<tabstop>chbWarnOldProjectVersion</tabstop>
13411295
<tabstop>pbnSelectionColour</tabstop>
@@ -1403,8 +1357,8 @@
14031357
<slot>reject()</slot>
14041358
<hints>
14051359
<hint type="sourcelabel">
1406-
<x>611</x>
1407-
<y>531</y>
1360+
<x>186</x>
1361+
<y>574</y>
14081362
</hint>
14091363
<hint type="destinationlabel">
14101364
<x>730</x>
@@ -1419,14 +1373,30 @@
14191373
<slot>accept()</slot>
14201374
<hints>
14211375
<hint type="sourcelabel">
1422-
<x>686</x>
1423-
<y>525</y>
1376+
<x>186</x>
1377+
<y>574</y>
14241378
</hint>
14251379
<hint type="destinationlabel">
14261380
<x>731</x>
14271381
<y>353</y>
14281382
</hint>
14291383
</hints>
14301384
</connection>
1385+
<connection>
1386+
<sender>listWidget</sender>
1387+
<signal>currentRowChanged(int)</signal>
1388+
<receiver>stackedWidget</receiver>
1389+
<slot>setCurrentIndex(int)</slot>
1390+
<hints>
1391+
<hint type="sourcelabel">
1392+
<x>136</x>
1393+
<y>21</y>
1394+
</hint>
1395+
<hint type="destinationlabel">
1396+
<x>864</x>
1397+
<y>14</y>
1398+
</hint>
1399+
</hints>
1400+
</connection>
14311401
</connections>
14321402
</ui>

0 commit comments

Comments
 (0)
Please sign in to comment.