src/eric7/Documentation/Source/eric7.EricWidgets.EricToolBox.html

branch
eric7
changeset 10479
856476537696
parent 10423
299802979277
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.EricWidgets.EricToolBox</h1> 9 <h1>eric7.EricWidgets.EricToolBox</h1>
10
11 <p> 10 <p>
12 Module implementing a horizontal and a vertical toolbox class. 11 Module implementing a horizontal and a vertical toolbox class.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#EricHorizontalToolBox">EricHorizontalToolBox</a></td> 22 <td><a href="#EricHorizontalToolBox">EricHorizontalToolBox</a></td>
25 <td>Class implementing a vertical QToolBox like widget.</td> 23 <td>Class implementing a vertical QToolBox like widget.</td>
26 </tr> 24 </tr>
27 <tr> 25 <tr>
28 <td><a href="#EricVerticalToolBox">EricVerticalToolBox</a></td> 26 <td><a href="#EricVerticalToolBox">EricVerticalToolBox</a></td>
29 <td>Class implementing a ToolBox class substituting QToolBox to support wheel events.</td> 27 <td>Class implementing a ToolBox class substituting QToolBox to support wheel events.</td>
30 </tr> 28 </tr>
31 </table> 29 </table>
30
32 <h3>Functions</h3> 31 <h3>Functions</h3>
33 32 <table>
34 <table> 33 <tr><td>None</td></tr>
35 <tr><td>None</td></tr> 34 </table>
36 </table> 35
37 <hr /> 36 <hr />
38 <hr /> 37 <hr />
39 <a NAME="EricHorizontalToolBox" ID="EricHorizontalToolBox"></a> 38 <a NAME="EricHorizontalToolBox" ID="EricHorizontalToolBox"></a>
40 <h2>EricHorizontalToolBox</h2> 39 <h2>EricHorizontalToolBox</h2>
41
42 <p> 40 <p>
43 Class implementing a vertical QToolBox like widget. 41 Class implementing a vertical QToolBox like widget.
44 </p> 42 </p>
43
45 <h3>Derived from</h3> 44 <h3>Derived from</h3>
46 EricTabWidget 45 EricTabWidget
47 <h3>Class Attributes</h3> 46 <h3>Class Attributes</h3>
48 47 <table>
49 <table> 48 <tr><td>None</td></tr>
50 <tr><td>None</td></tr> 49 </table>
51 </table> 50
52 <h3>Class Methods</h3> 51 <h3>Class Methods</h3>
53 52 <table>
54 <table> 53 <tr><td>None</td></tr>
55 <tr><td>None</td></tr> 54 </table>
56 </table> 55
57 <h3>Methods</h3> 56 <h3>Methods</h3>
58 57 <table>
59 <table>
60
61 <tr> 58 <tr>
62 <td><a href="#EricHorizontalToolBox.__init__">EricHorizontalToolBox</a></td> 59 <td><a href="#EricHorizontalToolBox.__init__">EricHorizontalToolBox</a></td>
63 <td>Constructor</td> 60 <td>Constructor</td>
64 </tr> 61 </tr>
65 <tr> 62 <tr>
85 <tr> 82 <tr>
86 <td><a href="#EricHorizontalToolBox.setItemToolTip">setItemToolTip</a></td> 83 <td><a href="#EricHorizontalToolBox.setItemToolTip">setItemToolTip</a></td>
87 <td>Public method to set the tooltip of an item.</td> 84 <td>Public method to set the tooltip of an item.</td>
88 </tr> 85 </tr>
89 </table> 86 </table>
87
90 <h3>Static Methods</h3> 88 <h3>Static Methods</h3>
91 89 <table>
92 <table> 90 <tr><td>None</td></tr>
93 <tr><td>None</td></tr> 91 </table>
94 </table> 92
95 93
96 <a NAME="EricHorizontalToolBox.__init__" ID="EricHorizontalToolBox.__init__"></a> 94 <a NAME="EricHorizontalToolBox.__init__" ID="EricHorizontalToolBox.__init__"></a>
97 <h4>EricHorizontalToolBox (Constructor)</h4> 95 <h4>EricHorizontalToolBox (Constructor)</h4>
98 <b>EricHorizontalToolBox</b>(<i>parent=None</i>) 96 <b>EricHorizontalToolBox</b>(<i>parent=None</i>)
99
100 <p> 97 <p>
101 Constructor 98 Constructor
102 </p> 99 </p>
100
103 <dl> 101 <dl>
104 102
105 <dt><i>parent</i> (QWidget)</dt> 103 <dt><i>parent</i> (QWidget)</dt>
106 <dd> 104 <dd>
107 reference to the parent widget 105 reference to the parent widget
108 </dd> 106 </dd>
109 </dl> 107 </dl>
110 <a NAME="EricHorizontalToolBox.addItem" ID="EricHorizontalToolBox.addItem"></a> 108 <a NAME="EricHorizontalToolBox.addItem" ID="EricHorizontalToolBox.addItem"></a>
111 <h4>EricHorizontalToolBox.addItem</h4> 109 <h4>EricHorizontalToolBox.addItem</h4>
112 <b>addItem</b>(<i>widget, icon, text</i>) 110 <b>addItem</b>(<i>widget, icon, text</i>)
113
114 <p> 111 <p>
115 Public method to add a widget to the toolbox. 112 Public method to add a widget to the toolbox.
116 </p> 113 </p>
114
117 <dl> 115 <dl>
118 116
119 <dt><i>widget</i> (QWidget)</dt> 117 <dt><i>widget</i> (QWidget)</dt>
120 <dd> 118 <dd>
121 reference to the widget to be added 119 reference to the widget to be added
142 </dd> 140 </dd>
143 </dl> 141 </dl>
144 <a NAME="EricHorizontalToolBox.insertItem" ID="EricHorizontalToolBox.insertItem"></a> 142 <a NAME="EricHorizontalToolBox.insertItem" ID="EricHorizontalToolBox.insertItem"></a>
145 <h4>EricHorizontalToolBox.insertItem</h4> 143 <h4>EricHorizontalToolBox.insertItem</h4>
146 <b>insertItem</b>(<i>index, widget, icon, text</i>) 144 <b>insertItem</b>(<i>index, widget, icon, text</i>)
147
148 <p> 145 <p>
149 Public method to add a widget to the toolbox. 146 Public method to add a widget to the toolbox.
150 </p> 147 </p>
148
151 <dl> 149 <dl>
152 150
153 <dt><i>index</i> (int)</dt> 151 <dt><i>index</i> (int)</dt>
154 <dd> 152 <dd>
155 position at which the widget should be inserted 153 position at which the widget should be inserted
180 </dd> 178 </dd>
181 </dl> 179 </dl>
182 <a NAME="EricHorizontalToolBox.removeItem" ID="EricHorizontalToolBox.removeItem"></a> 180 <a NAME="EricHorizontalToolBox.removeItem" ID="EricHorizontalToolBox.removeItem"></a>
183 <h4>EricHorizontalToolBox.removeItem</h4> 181 <h4>EricHorizontalToolBox.removeItem</h4>
184 <b>removeItem</b>(<i>index</i>) 182 <b>removeItem</b>(<i>index</i>)
185
186 <p> 183 <p>
187 Public method to remove a widget from the toolbox. 184 Public method to remove a widget from the toolbox.
188 </p> 185 </p>
186
189 <dl> 187 <dl>
190 188
191 <dt><i>index</i> (int)</dt> 189 <dt><i>index</i> (int)</dt>
192 <dd> 190 <dd>
193 index of the widget to remove 191 index of the widget to remove
194 </dd> 192 </dd>
195 </dl> 193 </dl>
196 <a NAME="EricHorizontalToolBox.setCurrentWidget" ID="EricHorizontalToolBox.setCurrentWidget"></a> 194 <a NAME="EricHorizontalToolBox.setCurrentWidget" ID="EricHorizontalToolBox.setCurrentWidget"></a>
197 <h4>EricHorizontalToolBox.setCurrentWidget</h4> 195 <h4>EricHorizontalToolBox.setCurrentWidget</h4>
198 <b>setCurrentWidget</b>(<i>widget</i>) 196 <b>setCurrentWidget</b>(<i>widget</i>)
199
200 <p> 197 <p>
201 Public slot to set the current widget. 198 Public slot to set the current widget.
202 </p> 199 </p>
200
203 <dl> 201 <dl>
204 202
205 <dt><i>widget</i> (QWidget)</dt> 203 <dt><i>widget</i> (QWidget)</dt>
206 <dd> 204 <dd>
207 reference to the widget to become the current widget 205 reference to the widget to become the current widget
208 </dd> 206 </dd>
209 </dl> 207 </dl>
210 <a NAME="EricHorizontalToolBox.setItemEnabled" ID="EricHorizontalToolBox.setItemEnabled"></a> 208 <a NAME="EricHorizontalToolBox.setItemEnabled" ID="EricHorizontalToolBox.setItemEnabled"></a>
211 <h4>EricHorizontalToolBox.setItemEnabled</h4> 209 <h4>EricHorizontalToolBox.setItemEnabled</h4>
212 <b>setItemEnabled</b>(<i>index, enabled</i>) 210 <b>setItemEnabled</b>(<i>index, enabled</i>)
213
214 <p> 211 <p>
215 Public method to set the enabled state of an item. 212 Public method to set the enabled state of an item.
216 </p> 213 </p>
214
217 <dl> 215 <dl>
218 216
219 <dt><i>index</i> (int)</dt> 217 <dt><i>index</i> (int)</dt>
220 <dd> 218 <dd>
221 index of the item 219 index of the item
226 </dd> 224 </dd>
227 </dl> 225 </dl>
228 <a NAME="EricHorizontalToolBox.setItemToolTip" ID="EricHorizontalToolBox.setItemToolTip"></a> 226 <a NAME="EricHorizontalToolBox.setItemToolTip" ID="EricHorizontalToolBox.setItemToolTip"></a>
229 <h4>EricHorizontalToolBox.setItemToolTip</h4> 227 <h4>EricHorizontalToolBox.setItemToolTip</h4>
230 <b>setItemToolTip</b>(<i>index, toolTip</i>) 228 <b>setItemToolTip</b>(<i>index, toolTip</i>)
231
232 <p> 229 <p>
233 Public method to set the tooltip of an item. 230 Public method to set the tooltip of an item.
234 </p> 231 </p>
232
235 <dl> 233 <dl>
236 234
237 <dt><i>index</i> (int)</dt> 235 <dt><i>index</i> (int)</dt>
238 <dd> 236 <dd>
239 index of the item 237 index of the item
246 <div align="right"><a href="#top">Up</a></div> 244 <div align="right"><a href="#top">Up</a></div>
247 <hr /> 245 <hr />
248 <hr /> 246 <hr />
249 <a NAME="EricVerticalToolBox" ID="EricVerticalToolBox"></a> 247 <a NAME="EricVerticalToolBox" ID="EricVerticalToolBox"></a>
250 <h2>EricVerticalToolBox</h2> 248 <h2>EricVerticalToolBox</h2>
251
252 <p> 249 <p>
253 Class implementing a ToolBox class substituting QToolBox to support wheel 250 Class implementing a ToolBox class substituting QToolBox to support wheel
254 events. 251 events.
255 </p> 252 </p>
253
256 <h3>Derived from</h3> 254 <h3>Derived from</h3>
257 QToolBox 255 QToolBox
258 <h3>Class Attributes</h3> 256 <h3>Class Attributes</h3>
259 257 <table>
260 <table> 258 <tr><td>None</td></tr>
261 <tr><td>None</td></tr> 259 </table>
262 </table> 260
263 <h3>Class Methods</h3> 261 <h3>Class Methods</h3>
264 262 <table>
265 <table> 263 <tr><td>None</td></tr>
266 <tr><td>None</td></tr> 264 </table>
267 </table> 265
268 <h3>Methods</h3> 266 <h3>Methods</h3>
269 267 <table>
270 <table>
271
272 <tr> 268 <tr>
273 <td><a href="#EricVerticalToolBox.__init__">EricVerticalToolBox</a></td> 269 <td><a href="#EricVerticalToolBox.__init__">EricVerticalToolBox</a></td>
274 <td>Constructor</td> 270 <td>Constructor</td>
275 </tr> 271 </tr>
276 <tr> 272 <tr>
277 <td><a href="#EricVerticalToolBox.setCurrentWidget">setCurrentWidget</a></td> 273 <td><a href="#EricVerticalToolBox.setCurrentWidget">setCurrentWidget</a></td>
278 <td>Public slot to set the current widget.</td> 274 <td>Public slot to set the current widget.</td>
279 </tr> 275 </tr>
280 </table> 276 </table>
277
281 <h3>Static Methods</h3> 278 <h3>Static Methods</h3>
282 279 <table>
283 <table> 280 <tr><td>None</td></tr>
284 <tr><td>None</td></tr> 281 </table>
285 </table> 282
286 283
287 <a NAME="EricVerticalToolBox.__init__" ID="EricVerticalToolBox.__init__"></a> 284 <a NAME="EricVerticalToolBox.__init__" ID="EricVerticalToolBox.__init__"></a>
288 <h4>EricVerticalToolBox (Constructor)</h4> 285 <h4>EricVerticalToolBox (Constructor)</h4>
289 <b>EricVerticalToolBox</b>(<i>parent=None</i>) 286 <b>EricVerticalToolBox</b>(<i>parent=None</i>)
290
291 <p> 287 <p>
292 Constructor 288 Constructor
293 </p> 289 </p>
290
294 <dl> 291 <dl>
295 292
296 <dt><i>parent</i> (QWidget)</dt> 293 <dt><i>parent</i> (QWidget)</dt>
297 <dd> 294 <dd>
298 reference to the parent widget 295 reference to the parent widget
299 </dd> 296 </dd>
300 </dl> 297 </dl>
301 <a NAME="EricVerticalToolBox.setCurrentWidget" ID="EricVerticalToolBox.setCurrentWidget"></a> 298 <a NAME="EricVerticalToolBox.setCurrentWidget" ID="EricVerticalToolBox.setCurrentWidget"></a>
302 <h4>EricVerticalToolBox.setCurrentWidget</h4> 299 <h4>EricVerticalToolBox.setCurrentWidget</h4>
303 <b>setCurrentWidget</b>(<i>widget</i>) 300 <b>setCurrentWidget</b>(<i>widget</i>)
304
305 <p> 301 <p>
306 Public slot to set the current widget. 302 Public slot to set the current widget.
307 </p> 303 </p>
304
308 <dl> 305 <dl>
309 306
310 <dt><i>widget</i> (QWidget)</dt> 307 <dt><i>widget</i> (QWidget)</dt>
311 <dd> 308 <dd>
312 reference to the widget to become the current widget 309 reference to the widget to become the current widget

eric ide

mercurial