Skip to content

Commit 94c2017

Browse files
author
timlinux
committed
make editing button a toolbutton
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8996 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f63c1dd commit 94c2017

File tree

1 file changed

+164
-153
lines changed

1 file changed

+164
-153
lines changed

src/ui/qgsattributetablebase.ui

+164-153
Original file line numberDiff line numberDiff line change
@@ -16,164 +16,175 @@
1616
<iconset/>
1717
</property>
1818
<layout class="QGridLayout" >
19+
<property name="leftMargin" >
20+
<number>0</number>
21+
</property>
22+
<property name="topMargin" >
23+
<number>0</number>
24+
</property>
25+
<property name="rightMargin" >
26+
<number>0</number>
27+
</property>
28+
<property name="bottomMargin" >
29+
<number>0</number>
30+
</property>
1931
<property name="horizontalSpacing" >
20-
<number>2</number>
32+
<number>6</number>
2133
</property>
2234
<property name="verticalSpacing" >
2335
<number>2</number>
2436
</property>
2537
<item row="0" column="0" >
26-
<layout class="QHBoxLayout" >
27-
<item>
28-
<widget class="QToolButton" name="mRemoveSelectionButton" >
29-
<property name="toolTip" >
30-
<string>Remove selection</string>
31-
</property>
32-
<property name="text" >
33-
<string/>
34-
</property>
35-
<property name="icon" >
36-
<iconset>../xpm/remove_selection.xpm</iconset>
37-
</property>
38-
<property name="shortcut" >
39-
<string/>
40-
</property>
41-
</widget>
42-
</item>
43-
<item>
44-
<widget class="QToolButton" name="mSelectedToTopButton" >
45-
<property name="toolTip" >
46-
<string>Move selected to top</string>
47-
</property>
48-
<property name="text" >
49-
<string/>
50-
</property>
51-
<property name="icon" >
52-
<iconset>../xpm/selected_to_top.png</iconset>
53-
</property>
54-
<property name="shortcut" >
55-
<string>Ctrl+T</string>
56-
</property>
57-
</widget>
58-
</item>
59-
<item>
60-
<widget class="QToolButton" name="mInvertSelectionButton" >
61-
<property name="toolTip" >
62-
<string>Invert selection</string>
63-
</property>
64-
<property name="text" >
65-
<string/>
66-
</property>
67-
<property name="icon" >
68-
<iconset>../xpm/switch_selection.png</iconset>
69-
</property>
70-
<property name="shortcut" >
71-
<string>Ctrl+S</string>
72-
</property>
73-
</widget>
74-
</item>
75-
<item>
76-
<widget class="QToolButton" name="mCopySelectedRowsButton" >
77-
<property name="toolTip" >
78-
<string>Copy selected rows to clipboard (Ctrl+C)</string>
79-
</property>
80-
<property name="whatsThis" >
81-
<string>Copies the selected rows to the clipboard</string>
82-
</property>
83-
<property name="text" >
84-
<string/>
85-
</property>
86-
<property name="icon" >
87-
<iconset>../xpm/copy_selection.png</iconset>
88-
</property>
89-
<property name="shortcut" >
90-
<string>Ctrl+C</string>
91-
</property>
92-
</widget>
93-
</item>
94-
<item>
95-
<widget class="QToolButton" name="mZoomMapToSelectedRowsButton" >
96-
<property name="toolTip" >
97-
<string>Zoom map to the selected rows (Ctrl-F)</string>
98-
</property>
99-
<property name="whatsThis" >
100-
<string>Zoom map to the selected rows</string>
101-
</property>
102-
<property name="text" >
103-
<string/>
104-
</property>
105-
<property name="shortcut" >
106-
<string>Ctrl+F</string>
107-
</property>
108-
</widget>
109-
</item>
110-
<item>
111-
<widget class="QToolButton" name="mAddAttributeButton" >
112-
<property name="sizePolicy" >
113-
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
114-
<horstretch>0</horstretch>
115-
<verstretch>0</verstretch>
116-
</sizepolicy>
117-
</property>
118-
<property name="toolTip" >
119-
<string>New column</string>
120-
</property>
121-
<property name="text" >
122-
<string/>
123-
</property>
124-
<property name="icon" >
125-
<iconset>../xpm/new_attribute.png</iconset>
126-
</property>
127-
<property name="shortcut" >
128-
<string>Ctrl+N</string>
129-
</property>
130-
</widget>
131-
</item>
132-
<item>
133-
<widget class="QToolButton" name="mDeleteAttributeButton" >
134-
<property name="toolTip" >
135-
<string>Delete column</string>
136-
</property>
137-
<property name="text" >
138-
<string/>
139-
</property>
140-
<property name="icon" >
141-
<iconset>../xpm/delete_attribute.png</iconset>
142-
</property>
143-
<property name="shortcut" >
144-
<string>Ctrl+X</string>
145-
</property>
146-
</widget>
147-
</item>
148-
<item>
149-
<spacer>
150-
<property name="orientation" >
151-
<enum>Qt::Horizontal</enum>
152-
</property>
153-
<property name="sizeType" >
154-
<enum>QSizePolicy::Expanding</enum>
155-
</property>
156-
<property name="sizeHint" >
157-
<size>
158-
<width>271</width>
159-
<height>25</height>
160-
</size>
161-
</property>
162-
</spacer>
163-
</item>
164-
<item>
165-
<widget class="QPushButton" name="btnEdit" >
166-
<property name="text" >
167-
<string>Start editing</string>
168-
</property>
169-
<property name="checkable" >
170-
<bool>true</bool>
171-
</property>
172-
</widget>
173-
</item>
174-
</layout>
38+
<widget class="QToolButton" name="mRemoveSelectionButton" >
39+
<property name="toolTip" >
40+
<string>Remove selection</string>
41+
</property>
42+
<property name="text" >
43+
<string/>
44+
</property>
45+
<property name="icon" >
46+
<iconset>../xpm/remove_selection.xpm</iconset>
47+
</property>
48+
<property name="shortcut" >
49+
<string/>
50+
</property>
51+
</widget>
52+
</item>
53+
<item row="0" column="1" >
54+
<widget class="QToolButton" name="mSelectedToTopButton" >
55+
<property name="toolTip" >
56+
<string>Move selected to top</string>
57+
</property>
58+
<property name="text" >
59+
<string/>
60+
</property>
61+
<property name="icon" >
62+
<iconset>../xpm/selected_to_top.png</iconset>
63+
</property>
64+
<property name="shortcut" >
65+
<string>Ctrl+T</string>
66+
</property>
67+
</widget>
68+
</item>
69+
<item row="0" column="2" >
70+
<widget class="QToolButton" name="mInvertSelectionButton" >
71+
<property name="toolTip" >
72+
<string>Invert selection</string>
73+
</property>
74+
<property name="text" >
75+
<string/>
76+
</property>
77+
<property name="icon" >
78+
<iconset>../xpm/switch_selection.png</iconset>
79+
</property>
80+
<property name="shortcut" >
81+
<string>Ctrl+S</string>
82+
</property>
83+
</widget>
84+
</item>
85+
<item row="0" column="3" >
86+
<widget class="QToolButton" name="mCopySelectedRowsButton" >
87+
<property name="toolTip" >
88+
<string>Copy selected rows to clipboard (Ctrl+C)</string>
89+
</property>
90+
<property name="whatsThis" >
91+
<string>Copies the selected rows to the clipboard</string>
92+
</property>
93+
<property name="text" >
94+
<string/>
95+
</property>
96+
<property name="icon" >
97+
<iconset>../xpm/copy_selection.png</iconset>
98+
</property>
99+
<property name="shortcut" >
100+
<string>Ctrl+C</string>
101+
</property>
102+
</widget>
103+
</item>
104+
<item row="0" column="4" >
105+
<widget class="QToolButton" name="mZoomMapToSelectedRowsButton" >
106+
<property name="toolTip" >
107+
<string>Zoom map to the selected rows (Ctrl-F)</string>
108+
</property>
109+
<property name="whatsThis" >
110+
<string>Zoom map to the selected rows</string>
111+
</property>
112+
<property name="text" >
113+
<string/>
114+
</property>
115+
<property name="shortcut" >
116+
<string>Ctrl+F</string>
117+
</property>
118+
</widget>
119+
</item>
120+
<item row="0" column="5" >
121+
<widget class="QToolButton" name="mAddAttributeButton" >
122+
<property name="sizePolicy" >
123+
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
124+
<horstretch>0</horstretch>
125+
<verstretch>0</verstretch>
126+
</sizepolicy>
127+
</property>
128+
<property name="toolTip" >
129+
<string>New column</string>
130+
</property>
131+
<property name="text" >
132+
<string/>
133+
</property>
134+
<property name="icon" >
135+
<iconset>../xpm/new_attribute.png</iconset>
136+
</property>
137+
<property name="shortcut" >
138+
<string>Ctrl+N</string>
139+
</property>
140+
</widget>
141+
</item>
142+
<item row="0" column="6" >
143+
<widget class="QToolButton" name="mDeleteAttributeButton" >
144+
<property name="toolTip" >
145+
<string>Delete column</string>
146+
</property>
147+
<property name="text" >
148+
<string/>
149+
</property>
150+
<property name="icon" >
151+
<iconset>../xpm/delete_attribute.png</iconset>
152+
</property>
153+
<property name="shortcut" >
154+
<string>Ctrl+X</string>
155+
</property>
156+
</widget>
157+
</item>
158+
<item row="0" column="7" >
159+
<widget class="QToolButton" name="btnEdit" >
160+
<property name="toolTip" >
161+
<string>Toggle editing mode</string>
162+
</property>
163+
<property name="whatsThis" >
164+
<string>Click to toggle table editing</string>
165+
</property>
166+
<property name="text" >
167+
<string/>
168+
</property>
169+
<property name="checkable" >
170+
<bool>true</bool>
171+
</property>
172+
</widget>
173+
</item>
174+
<item row="0" column="8" >
175+
<spacer>
176+
<property name="orientation" >
177+
<enum>Qt::Horizontal</enum>
178+
</property>
179+
<property name="sizeHint" >
180+
<size>
181+
<width>421</width>
182+
<height>20</height>
183+
</size>
184+
</property>
185+
</spacer>
175186
</item>
176-
<item row="1" column="0" >
187+
<item row="1" column="0" colspan="9" >
177188
<widget class="QgsAttributeTable" native="1" name="tblAttributes" >
178189
<property name="sizePolicy" >
179190
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
@@ -183,7 +194,7 @@
183194
</property>
184195
</widget>
185196
</item>
186-
<item row="2" column="0" >
197+
<item row="2" column="0" colspan="9" >
187198
<layout class="QHBoxLayout" >
188199
<item>
189200
<widget class="QLabel" name="textLabel1" >
@@ -240,7 +251,7 @@
240251
</item>
241252
</layout>
242253
</item>
243-
<item row="3" column="0" >
254+
<item row="3" column="0" colspan="9" >
244255
<widget class="QDialogButtonBox" name="buttonBox" >
245256
<property name="standardButtons" >
246257
<set>QDialogButtonBox::Close|QDialogButtonBox::Help|QDialogButtonBox::NoButton</set>

0 commit comments

Comments
 (0)