eric6/Documentation/Source/eric6.E5Gui.E5TabWidget.html

branch
maintenance
changeset 7286
7eb04391adf7
parent 7273
391d6b7b1eff
child 7515
2d26ec7a563c
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5TabWidget</h1> 23 <h1>eric6.E5Gui.E5TabWidget</h1>
24
23 <p> 25 <p>
24 Module implementing a TabWidget class substituting QTabWidget. 26 Module implementing a TabWidget class substituting QTabWidget.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#E5DnDTabBar">E5DnDTabBar</a></td> 38 <td><a href="#E5DnDTabBar">E5DnDTabBar</a></td>
34 <td>Class implementing a tab bar class substituting QTabBar.</td> 39 <td>Class implementing a tab bar class substituting QTabBar.</td>
35 </tr><tr> 40 </tr>
41 <tr>
36 <td><a href="#E5TabWidget">E5TabWidget</a></td> 42 <td><a href="#E5TabWidget">E5TabWidget</a></td>
37 <td>Class implementing a tab widget class substituting QTabWidget.</td> 43 <td>Class implementing a tab widget class substituting QTabWidget.</td>
38 </tr><tr> 44 </tr>
45 <tr>
39 <td><a href="#E5WheelTabBar">E5WheelTabBar</a></td> 46 <td><a href="#E5WheelTabBar">E5WheelTabBar</a></td>
40 <td>Class implementing a tab bar class substituting QTabBar to support wheel events.</td> 47 <td>Class implementing a tab bar class substituting QTabBar to support wheel events.</td>
41 </tr> 48 </tr>
42 </table> 49 </table>
43 <h3>Functions</h3> 50 <h3>Functions</h3>
44 <table> 51
45 <tr><td>None</td></tr> 52 <table>
46 </table> 53 <tr><td>None</td></tr>
47 <hr /><hr /> 54 </table>
55 <hr />
56 <hr />
48 <a NAME="E5DnDTabBar" ID="E5DnDTabBar"></a> 57 <a NAME="E5DnDTabBar" ID="E5DnDTabBar"></a>
49 <h2>E5DnDTabBar</h2> 58 <h2>E5DnDTabBar</h2>
59
50 <p> 60 <p>
51 Class implementing a tab bar class substituting QTabBar. 61 Class implementing a tab bar class substituting QTabBar.
52 </p><h3>Signals</h3> 62 </p>
53 <dl> 63 <h3>Signals</h3>
64 <dl>
65
54 <dt>tabMoveRequested(int, int)</dt> 66 <dt>tabMoveRequested(int, int)</dt>
55 <dd> 67 <dd>
56 emitted to signal a tab move request 68 emitted to signal a tab move request
57 giving the old and new index position 69 giving the old and new index position
58 </dd> 70 </dd>
59 </dl> 71 </dl>
60 <h3>Derived from</h3> 72 <h3>Derived from</h3>
61 E5WheelTabBar 73 E5WheelTabBar
62 <h3>Class Attributes</h3> 74 <h3>Class Attributes</h3>
75
63 <table> 76 <table>
64 <tr><td>None</td></tr> 77 <tr><td>None</td></tr>
65 </table> 78 </table>
66 <h3>Class Methods</h3> 79 <h3>Class Methods</h3>
80
67 <table> 81 <table>
68 <tr><td>None</td></tr> 82 <tr><td>None</td></tr>
69 </table> 83 </table>
70 <h3>Methods</h3> 84 <h3>Methods</h3>
71 <table> 85
86 <table>
87
72 <tr> 88 <tr>
73 <td><a href="#E5DnDTabBar.__init__">E5DnDTabBar</a></td> 89 <td><a href="#E5DnDTabBar.__init__">E5DnDTabBar</a></td>
74 <td>Constructor</td> 90 <td>Constructor</td>
75 </tr><tr> 91 </tr>
92 <tr>
76 <td><a href="#E5DnDTabBar.dragEnterEvent">dragEnterEvent</a></td> 93 <td><a href="#E5DnDTabBar.dragEnterEvent">dragEnterEvent</a></td>
77 <td>Protected method to handle drag enter events.</td> 94 <td>Protected method to handle drag enter events.</td>
78 </tr><tr> 95 </tr>
96 <tr>
79 <td><a href="#E5DnDTabBar.dropEvent">dropEvent</a></td> 97 <td><a href="#E5DnDTabBar.dropEvent">dropEvent</a></td>
80 <td>Protected method to handle drop events.</td> 98 <td>Protected method to handle drop events.</td>
81 </tr><tr> 99 </tr>
100 <tr>
82 <td><a href="#E5DnDTabBar.mouseMoveEvent">mouseMoveEvent</a></td> 101 <td><a href="#E5DnDTabBar.mouseMoveEvent">mouseMoveEvent</a></td>
83 <td>Protected method to handle mouse move events.</td> 102 <td>Protected method to handle mouse move events.</td>
84 </tr><tr> 103 </tr>
104 <tr>
85 <td><a href="#E5DnDTabBar.mousePressEvent">mousePressEvent</a></td> 105 <td><a href="#E5DnDTabBar.mousePressEvent">mousePressEvent</a></td>
86 <td>Protected method to handle mouse press events.</td> 106 <td>Protected method to handle mouse press events.</td>
87 </tr> 107 </tr>
88 </table> 108 </table>
89 <h3>Static Methods</h3> 109 <h3>Static Methods</h3>
90 <table> 110
91 <tr><td>None</td></tr> 111 <table>
92 </table> 112 <tr><td>None</td></tr>
113 </table>
114
93 <a NAME="E5DnDTabBar.__init__" ID="E5DnDTabBar.__init__"></a> 115 <a NAME="E5DnDTabBar.__init__" ID="E5DnDTabBar.__init__"></a>
94 <h4>E5DnDTabBar (Constructor)</h4> 116 <h4>E5DnDTabBar (Constructor)</h4>
95 <b>E5DnDTabBar</b>(<i>parent=None</i>) 117 <b>E5DnDTabBar</b>(<i>parent=None</i>)
118
96 <p> 119 <p>
97 Constructor 120 Constructor
98 </p><dl> 121 </p>
122 <dl>
123
99 <dt><i>parent</i></dt> 124 <dt><i>parent</i></dt>
100 <dd> 125 <dd>
101 reference to the parent widget (QWidget) 126 reference to the parent widget (QWidget)
102 </dd> 127 </dd>
103 </dl><a NAME="E5DnDTabBar.dragEnterEvent" ID="E5DnDTabBar.dragEnterEvent"></a> 128 </dl>
129 <a NAME="E5DnDTabBar.dragEnterEvent" ID="E5DnDTabBar.dragEnterEvent"></a>
104 <h4>E5DnDTabBar.dragEnterEvent</h4> 130 <h4>E5DnDTabBar.dragEnterEvent</h4>
105 <b>dragEnterEvent</b>(<i>event</i>) 131 <b>dragEnterEvent</b>(<i>event</i>)
132
106 <p> 133 <p>
107 Protected method to handle drag enter events. 134 Protected method to handle drag enter events.
108 </p><dl> 135 </p>
136 <dl>
137
109 <dt><i>event</i></dt> 138 <dt><i>event</i></dt>
110 <dd> 139 <dd>
111 reference to the drag enter event (QDragEnterEvent) 140 reference to the drag enter event (QDragEnterEvent)
112 </dd> 141 </dd>
113 </dl><a NAME="E5DnDTabBar.dropEvent" ID="E5DnDTabBar.dropEvent"></a> 142 </dl>
143 <a NAME="E5DnDTabBar.dropEvent" ID="E5DnDTabBar.dropEvent"></a>
114 <h4>E5DnDTabBar.dropEvent</h4> 144 <h4>E5DnDTabBar.dropEvent</h4>
115 <b>dropEvent</b>(<i>event</i>) 145 <b>dropEvent</b>(<i>event</i>)
146
116 <p> 147 <p>
117 Protected method to handle drop events. 148 Protected method to handle drop events.
118 </p><dl> 149 </p>
150 <dl>
151
119 <dt><i>event</i></dt> 152 <dt><i>event</i></dt>
120 <dd> 153 <dd>
121 reference to the drop event (QDropEvent) 154 reference to the drop event (QDropEvent)
122 </dd> 155 </dd>
123 </dl><a NAME="E5DnDTabBar.mouseMoveEvent" ID="E5DnDTabBar.mouseMoveEvent"></a> 156 </dl>
157 <a NAME="E5DnDTabBar.mouseMoveEvent" ID="E5DnDTabBar.mouseMoveEvent"></a>
124 <h4>E5DnDTabBar.mouseMoveEvent</h4> 158 <h4>E5DnDTabBar.mouseMoveEvent</h4>
125 <b>mouseMoveEvent</b>(<i>event</i>) 159 <b>mouseMoveEvent</b>(<i>event</i>)
160
126 <p> 161 <p>
127 Protected method to handle mouse move events. 162 Protected method to handle mouse move events.
128 </p><dl> 163 </p>
164 <dl>
165
129 <dt><i>event</i></dt> 166 <dt><i>event</i></dt>
130 <dd> 167 <dd>
131 reference to the mouse move event (QMouseEvent) 168 reference to the mouse move event (QMouseEvent)
132 </dd> 169 </dd>
133 </dl><a NAME="E5DnDTabBar.mousePressEvent" ID="E5DnDTabBar.mousePressEvent"></a> 170 </dl>
171 <a NAME="E5DnDTabBar.mousePressEvent" ID="E5DnDTabBar.mousePressEvent"></a>
134 <h4>E5DnDTabBar.mousePressEvent</h4> 172 <h4>E5DnDTabBar.mousePressEvent</h4>
135 <b>mousePressEvent</b>(<i>event</i>) 173 <b>mousePressEvent</b>(<i>event</i>)
174
136 <p> 175 <p>
137 Protected method to handle mouse press events. 176 Protected method to handle mouse press events.
138 </p><dl> 177 </p>
178 <dl>
179
139 <dt><i>event</i></dt> 180 <dt><i>event</i></dt>
140 <dd> 181 <dd>
141 reference to the mouse press event (QMouseEvent) 182 reference to the mouse press event (QMouseEvent)
142 </dd> 183 </dd>
143 </dl> 184 </dl>
144 <div align="right"><a href="#top">Up</a></div> 185 <div align="right"><a href="#top">Up</a></div>
145 <hr /><hr /> 186 <hr />
187 <hr />
146 <a NAME="E5TabWidget" ID="E5TabWidget"></a> 188 <a NAME="E5TabWidget" ID="E5TabWidget"></a>
147 <h2>E5TabWidget</h2> 189 <h2>E5TabWidget</h2>
190
148 <p> 191 <p>
149 Class implementing a tab widget class substituting QTabWidget. 192 Class implementing a tab widget class substituting QTabWidget.
150 </p><p> 193 </p>
194 <p>
151 It provides slots to show the previous and next tab and give 195 It provides slots to show the previous and next tab and give
152 them the input focus and it allows to have a context menu for the tabs. 196 them the input focus and it allows to have a context menu for the tabs.
153 </p><h3>Signals</h3> 197 </p>
154 <dl> 198 <h3>Signals</h3>
199 <dl>
200
155 <dt>customTabContextMenuRequested(const QPoint & point, int index)</dt> 201 <dt>customTabContextMenuRequested(const QPoint & point, int index)</dt>
156 <dd> 202 <dd>
157 emitted when a context menu for a tab is requested 203 emitted when a context menu for a tab is requested
158 </dd> 204 </dd>
159 </dl> 205 </dl>
160 <h3>Derived from</h3> 206 <h3>Derived from</h3>
161 QTabWidget 207 QTabWidget
162 <h3>Class Attributes</h3> 208 <h3>Class Attributes</h3>
209
163 <table> 210 <table>
164 <tr><td>None</td></tr> 211 <tr><td>None</td></tr>
165 </table> 212 </table>
166 <h3>Class Methods</h3> 213 <h3>Class Methods</h3>
214
167 <table> 215 <table>
168 <tr><td>None</td></tr> 216 <tr><td>None</td></tr>
169 </table> 217 </table>
170 <h3>Methods</h3> 218 <h3>Methods</h3>
171 <table> 219
220 <table>
221
172 <tr> 222 <tr>
173 <td><a href="#E5TabWidget.__init__">E5TabWidget</a></td> 223 <td><a href="#E5TabWidget.__init__">E5TabWidget</a></td>
174 <td>Constructor</td> 224 <td>Constructor</td>
175 </tr><tr> 225 </tr>
226 <tr>
176 <td><a href="#E5TabWidget.__currentChanged">__currentChanged</a></td> 227 <td><a href="#E5TabWidget.__currentChanged">__currentChanged</a></td>
177 <td>Private slot to handle the currentChanged signal.</td> 228 <td>Private slot to handle the currentChanged signal.</td>
178 </tr><tr> 229 </tr>
230 <tr>
179 <td><a href="#E5TabWidget.__freeSide">__freeSide</a></td> 231 <td><a href="#E5TabWidget.__freeSide">__freeSide</a></td>
180 <td>Private method to determine the free side of a tab.</td> 232 <td>Private method to determine the free side of a tab.</td>
181 </tr><tr> 233 </tr>
234 <tr>
182 <td><a href="#E5TabWidget.__handleTabCustomContextMenuRequested">__handleTabCustomContextMenuRequested</a></td> 235 <td><a href="#E5TabWidget.__handleTabCustomContextMenuRequested">__handleTabCustomContextMenuRequested</a></td>
183 <td>Private slot to handle the context menu request for the tabbar.</td> 236 <td>Private slot to handle the context menu request for the tabbar.</td>
184 </tr><tr> 237 </tr>
238 <tr>
185 <td><a href="#E5TabWidget.animationLabel">animationLabel</a></td> 239 <td><a href="#E5TabWidget.animationLabel">animationLabel</a></td>
186 <td>Public slot to set an animated icon.</td> 240 <td>Public slot to set an animated icon.</td>
187 </tr><tr> 241 </tr>
242 <tr>
188 <td><a href="#E5TabWidget.moveTab">moveTab</a></td> 243 <td><a href="#E5TabWidget.moveTab">moveTab</a></td>
189 <td>Public method to move a tab to a new index.</td> 244 <td>Public method to move a tab to a new index.</td>
190 </tr><tr> 245 </tr>
246 <tr>
191 <td><a href="#E5TabWidget.nextTab">nextTab</a></td> 247 <td><a href="#E5TabWidget.nextTab">nextTab</a></td>
192 <td>Public slot used to show the next tab.</td> 248 <td>Public slot used to show the next tab.</td>
193 </tr><tr> 249 </tr>
250 <tr>
194 <td><a href="#E5TabWidget.prevTab">prevTab</a></td> 251 <td><a href="#E5TabWidget.prevTab">prevTab</a></td>
195 <td>Public slot used to show the previous tab.</td> 252 <td>Public slot used to show the previous tab.</td>
196 </tr><tr> 253 </tr>
254 <tr>
197 <td><a href="#E5TabWidget.resetAnimation">resetAnimation</a></td> 255 <td><a href="#E5TabWidget.resetAnimation">resetAnimation</a></td>
198 <td>Public slot to reset an animated icon.</td> 256 <td>Public slot to reset an animated icon.</td>
199 </tr><tr> 257 </tr>
258 <tr>
200 <td><a href="#E5TabWidget.selectTab">selectTab</a></td> 259 <td><a href="#E5TabWidget.selectTab">selectTab</a></td>
201 <td>Public method to get the index of a tab given a position.</td> 260 <td>Public method to get the index of a tab given a position.</td>
202 </tr><tr> 261 </tr>
262 <tr>
203 <td><a href="#E5TabWidget.setCustomTabBar">setCustomTabBar</a></td> 263 <td><a href="#E5TabWidget.setCustomTabBar">setCustomTabBar</a></td>
204 <td>Public method to set a custom tab bar.</td> 264 <td>Public method to set a custom tab bar.</td>
205 </tr><tr> 265 </tr>
266 <tr>
206 <td><a href="#E5TabWidget.setTabContextMenuPolicy">setTabContextMenuPolicy</a></td> 267 <td><a href="#E5TabWidget.setTabContextMenuPolicy">setTabContextMenuPolicy</a></td>
207 <td>Public method to set the context menu policy of the tab.</td> 268 <td>Public method to set the context menu policy of the tab.</td>
208 </tr><tr> 269 </tr>
270 <tr>
209 <td><a href="#E5TabWidget.switchTab">switchTab</a></td> 271 <td><a href="#E5TabWidget.switchTab">switchTab</a></td>
210 <td>Public slot used to switch between the current and the previous current tab.</td> 272 <td>Public slot used to switch between the current and the previous current tab.</td>
211 </tr> 273 </tr>
212 </table> 274 </table>
213 <h3>Static Methods</h3> 275 <h3>Static Methods</h3>
214 <table> 276
215 <tr><td>None</td></tr> 277 <table>
216 </table> 278 <tr><td>None</td></tr>
279 </table>
280
217 <a NAME="E5TabWidget.__init__" ID="E5TabWidget.__init__"></a> 281 <a NAME="E5TabWidget.__init__" ID="E5TabWidget.__init__"></a>
218 <h4>E5TabWidget (Constructor)</h4> 282 <h4>E5TabWidget (Constructor)</h4>
219 <b>E5TabWidget</b>(<i>parent=None, dnd=False</i>) 283 <b>E5TabWidget</b>(<i>parent=None, dnd=False</i>)
284
220 <p> 285 <p>
221 Constructor 286 Constructor
222 </p><dl> 287 </p>
288 <dl>
289
223 <dt><i>parent</i></dt> 290 <dt><i>parent</i></dt>
224 <dd> 291 <dd>
225 reference to the parent widget (QWidget) 292 reference to the parent widget (QWidget)
226 </dd><dt><i>dnd=</i></dt> 293 </dd>
294 <dt><i>dnd=</i></dt>
227 <dd> 295 <dd>
228 flag indicating the support for Drag & Drop (boolean) 296 flag indicating the support for Drag & Drop (boolean)
229 </dd> 297 </dd>
230 </dl><a NAME="E5TabWidget.__currentChanged" ID="E5TabWidget.__currentChanged"></a> 298 </dl>
299 <a NAME="E5TabWidget.__currentChanged" ID="E5TabWidget.__currentChanged"></a>
231 <h4>E5TabWidget.__currentChanged</h4> 300 <h4>E5TabWidget.__currentChanged</h4>
232 <b>__currentChanged</b>(<i>index</i>) 301 <b>__currentChanged</b>(<i>index</i>)
302
233 <p> 303 <p>
234 Private slot to handle the currentChanged signal. 304 Private slot to handle the currentChanged signal.
235 </p><dl> 305 </p>
306 <dl>
307
236 <dt><i>index</i></dt> 308 <dt><i>index</i></dt>
237 <dd> 309 <dd>
238 index of the current tab 310 index of the current tab
239 </dd> 311 </dd>
240 </dl><a NAME="E5TabWidget.__freeSide" ID="E5TabWidget.__freeSide"></a> 312 </dl>
313 <a NAME="E5TabWidget.__freeSide" ID="E5TabWidget.__freeSide"></a>
241 <h4>E5TabWidget.__freeSide</h4> 314 <h4>E5TabWidget.__freeSide</h4>
242 <b>__freeSide</b>(<i></i>) 315 <b>__freeSide</b>(<i></i>)
316
243 <p> 317 <p>
244 Private method to determine the free side of a tab. 318 Private method to determine the free side of a tab.
245 </p><dl> 319 </p>
320 <dl>
246 <dt>Returns:</dt> 321 <dt>Returns:</dt>
247 <dd> 322 <dd>
248 free side (QTabBar.ButtonPosition) 323 free side (QTabBar.ButtonPosition)
249 </dd> 324 </dd>
250 </dl><a NAME="E5TabWidget.__handleTabCustomContextMenuRequested" ID="E5TabWidget.__handleTabCustomContextMenuRequested"></a> 325 </dl>
326 <a NAME="E5TabWidget.__handleTabCustomContextMenuRequested" ID="E5TabWidget.__handleTabCustomContextMenuRequested"></a>
251 <h4>E5TabWidget.__handleTabCustomContextMenuRequested</h4> 327 <h4>E5TabWidget.__handleTabCustomContextMenuRequested</h4>
252 <b>__handleTabCustomContextMenuRequested</b>(<i>point</i>) 328 <b>__handleTabCustomContextMenuRequested</b>(<i>point</i>)
329
253 <p> 330 <p>
254 Private slot to handle the context menu request for the tabbar. 331 Private slot to handle the context menu request for the tabbar.
255 </p><dl> 332 </p>
333 <dl>
334
256 <dt><i>point</i></dt> 335 <dt><i>point</i></dt>
257 <dd> 336 <dd>
258 point the context menu was requested (QPoint) 337 point the context menu was requested (QPoint)
259 </dd> 338 </dd>
260 </dl><a NAME="E5TabWidget.animationLabel" ID="E5TabWidget.animationLabel"></a> 339 </dl>
340 <a NAME="E5TabWidget.animationLabel" ID="E5TabWidget.animationLabel"></a>
261 <h4>E5TabWidget.animationLabel</h4> 341 <h4>E5TabWidget.animationLabel</h4>
262 <b>animationLabel</b>(<i>index, animationFile, speed=100</i>) 342 <b>animationLabel</b>(<i>index, animationFile, speed=100</i>)
343
263 <p> 344 <p>
264 Public slot to set an animated icon. 345 Public slot to set an animated icon.
265 </p><dl> 346 </p>
347 <dl>
348
266 <dt><i>index</i></dt> 349 <dt><i>index</i></dt>
267 <dd> 350 <dd>
268 tab index (integer) 351 tab index (integer)
269 </dd><dt><i>animationFile</i></dt> 352 </dd>
353 <dt><i>animationFile</i></dt>
270 <dd> 354 <dd>
271 name of the file containing the animation (string) 355 name of the file containing the animation (string)
272 </dd><dt><i>speed</i></dt> 356 </dd>
357 <dt><i>speed</i></dt>
273 <dd> 358 <dd>
274 animation speed of the icon in percent of the original 359 animation speed of the icon in percent of the original
275 icon's speed (integer) 360 icon's speed (integer)
276 </dd> 361 </dd>
277 </dl><dl> 362 </dl>
363 <dl>
278 <dt>Returns:</dt> 364 <dt>Returns:</dt>
279 <dd> 365 <dd>
280 reference to the created label (QLabel) 366 reference to the created label (QLabel)
281 </dd> 367 </dd>
282 </dl><a NAME="E5TabWidget.moveTab" ID="E5TabWidget.moveTab"></a> 368 </dl>
369 <a NAME="E5TabWidget.moveTab" ID="E5TabWidget.moveTab"></a>
283 <h4>E5TabWidget.moveTab</h4> 370 <h4>E5TabWidget.moveTab</h4>
284 <b>moveTab</b>(<i>curIndex, newIndex</i>) 371 <b>moveTab</b>(<i>curIndex, newIndex</i>)
372
285 <p> 373 <p>
286 Public method to move a tab to a new index. 374 Public method to move a tab to a new index.
287 </p><dl> 375 </p>
376 <dl>
377
288 <dt><i>curIndex</i></dt> 378 <dt><i>curIndex</i></dt>
289 <dd> 379 <dd>
290 index of tab to be moved (integer) 380 index of tab to be moved (integer)
291 </dd><dt><i>newIndex</i></dt> 381 </dd>
382 <dt><i>newIndex</i></dt>
292 <dd> 383 <dd>
293 index the tab should be moved to (integer) 384 index the tab should be moved to (integer)
294 </dd> 385 </dd>
295 </dl><a NAME="E5TabWidget.nextTab" ID="E5TabWidget.nextTab"></a> 386 </dl>
387 <a NAME="E5TabWidget.nextTab" ID="E5TabWidget.nextTab"></a>
296 <h4>E5TabWidget.nextTab</h4> 388 <h4>E5TabWidget.nextTab</h4>
297 <b>nextTab</b>(<i></i>) 389 <b>nextTab</b>(<i></i>)
390
298 <p> 391 <p>
299 Public slot used to show the next tab. 392 Public slot used to show the next tab.
300 </p><a NAME="E5TabWidget.prevTab" ID="E5TabWidget.prevTab"></a> 393 </p>
394 <a NAME="E5TabWidget.prevTab" ID="E5TabWidget.prevTab"></a>
301 <h4>E5TabWidget.prevTab</h4> 395 <h4>E5TabWidget.prevTab</h4>
302 <b>prevTab</b>(<i></i>) 396 <b>prevTab</b>(<i></i>)
397
303 <p> 398 <p>
304 Public slot used to show the previous tab. 399 Public slot used to show the previous tab.
305 </p><a NAME="E5TabWidget.resetAnimation" ID="E5TabWidget.resetAnimation"></a> 400 </p>
401 <a NAME="E5TabWidget.resetAnimation" ID="E5TabWidget.resetAnimation"></a>
306 <h4>E5TabWidget.resetAnimation</h4> 402 <h4>E5TabWidget.resetAnimation</h4>
307 <b>resetAnimation</b>(<i>index</i>) 403 <b>resetAnimation</b>(<i>index</i>)
404
308 <p> 405 <p>
309 Public slot to reset an animated icon. 406 Public slot to reset an animated icon.
310 </p><dl> 407 </p>
408 <dl>
409
311 <dt><i>index</i></dt> 410 <dt><i>index</i></dt>
312 <dd> 411 <dd>
313 tab index (integer) 412 tab index (integer)
314 </dd> 413 </dd>
315 </dl><a NAME="E5TabWidget.selectTab" ID="E5TabWidget.selectTab"></a> 414 </dl>
415 <a NAME="E5TabWidget.selectTab" ID="E5TabWidget.selectTab"></a>
316 <h4>E5TabWidget.selectTab</h4> 416 <h4>E5TabWidget.selectTab</h4>
317 <b>selectTab</b>(<i>pos</i>) 417 <b>selectTab</b>(<i>pos</i>)
418
318 <p> 419 <p>
319 Public method to get the index of a tab given a position. 420 Public method to get the index of a tab given a position.
320 </p><dl> 421 </p>
422 <dl>
423
321 <dt><i>pos</i></dt> 424 <dt><i>pos</i></dt>
322 <dd> 425 <dd>
323 position determining the tab index (QPoint) 426 position determining the tab index (QPoint)
324 </dd> 427 </dd>
325 </dl><dl> 428 </dl>
429 <dl>
326 <dt>Returns:</dt> 430 <dt>Returns:</dt>
327 <dd> 431 <dd>
328 index of the tab (integer) 432 index of the tab (integer)
329 </dd> 433 </dd>
330 </dl><a NAME="E5TabWidget.setCustomTabBar" ID="E5TabWidget.setCustomTabBar"></a> 434 </dl>
435 <a NAME="E5TabWidget.setCustomTabBar" ID="E5TabWidget.setCustomTabBar"></a>
331 <h4>E5TabWidget.setCustomTabBar</h4> 436 <h4>E5TabWidget.setCustomTabBar</h4>
332 <b>setCustomTabBar</b>(<i>dnd, tabBar</i>) 437 <b>setCustomTabBar</b>(<i>dnd, tabBar</i>)
438
333 <p> 439 <p>
334 Public method to set a custom tab bar. 440 Public method to set a custom tab bar.
335 </p><dl> 441 </p>
442 <dl>
443
336 <dt><i>dnd</i></dt> 444 <dt><i>dnd</i></dt>
337 <dd> 445 <dd>
338 flag indicating the support for Drag & Drop (boolean) 446 flag indicating the support for Drag & Drop (boolean)
339 </dd><dt><i>tabBar</i></dt> 447 </dd>
448 <dt><i>tabBar</i></dt>
340 <dd> 449 <dd>
341 reference to the tab bar to set (QTabBar) 450 reference to the tab bar to set (QTabBar)
342 </dd> 451 </dd>
343 </dl><a NAME="E5TabWidget.setTabContextMenuPolicy" ID="E5TabWidget.setTabContextMenuPolicy"></a> 452 </dl>
453 <a NAME="E5TabWidget.setTabContextMenuPolicy" ID="E5TabWidget.setTabContextMenuPolicy"></a>
344 <h4>E5TabWidget.setTabContextMenuPolicy</h4> 454 <h4>E5TabWidget.setTabContextMenuPolicy</h4>
345 <b>setTabContextMenuPolicy</b>(<i>policy</i>) 455 <b>setTabContextMenuPolicy</b>(<i>policy</i>)
456
346 <p> 457 <p>
347 Public method to set the context menu policy of the tab. 458 Public method to set the context menu policy of the tab.
348 </p><dl> 459 </p>
460 <dl>
461
349 <dt><i>policy</i></dt> 462 <dt><i>policy</i></dt>
350 <dd> 463 <dd>
351 context menu policy to set (Qt.ContextMenuPolicy) 464 context menu policy to set (Qt.ContextMenuPolicy)
352 </dd> 465 </dd>
353 </dl><a NAME="E5TabWidget.switchTab" ID="E5TabWidget.switchTab"></a> 466 </dl>
467 <a NAME="E5TabWidget.switchTab" ID="E5TabWidget.switchTab"></a>
354 <h4>E5TabWidget.switchTab</h4> 468 <h4>E5TabWidget.switchTab</h4>
355 <b>switchTab</b>(<i></i>) 469 <b>switchTab</b>(<i></i>)
470
356 <p> 471 <p>
357 Public slot used to switch between the current and the previous 472 Public slot used to switch between the current and the previous
358 current tab. 473 current tab.
359 </p> 474 </p>
360 <div align="right"><a href="#top">Up</a></div> 475 <div align="right"><a href="#top">Up</a></div>
361 <hr /><hr /> 476 <hr />
477 <hr />
362 <a NAME="E5WheelTabBar" ID="E5WheelTabBar"></a> 478 <a NAME="E5WheelTabBar" ID="E5WheelTabBar"></a>
363 <h2>E5WheelTabBar</h2> 479 <h2>E5WheelTabBar</h2>
480
364 <p> 481 <p>
365 Class implementing a tab bar class substituting QTabBar to support wheel 482 Class implementing a tab bar class substituting QTabBar to support wheel
366 events. 483 events.
367 </p> 484 </p>
368 <h3>Derived from</h3> 485 <h3>Derived from</h3>
369 QTabBar 486 QTabBar
370 <h3>Class Attributes</h3> 487 <h3>Class Attributes</h3>
488
371 <table> 489 <table>
372 <tr><td>None</td></tr> 490 <tr><td>None</td></tr>
373 </table> 491 </table>
374 <h3>Class Methods</h3> 492 <h3>Class Methods</h3>
493
375 <table> 494 <table>
376 <tr><td>None</td></tr> 495 <tr><td>None</td></tr>
377 </table> 496 </table>
378 <h3>Methods</h3> 497 <h3>Methods</h3>
379 <table> 498
499 <table>
500
380 <tr> 501 <tr>
381 <td><a href="#E5WheelTabBar.__init__">E5WheelTabBar</a></td> 502 <td><a href="#E5WheelTabBar.__init__">E5WheelTabBar</a></td>
382 <td>Constructor</td> 503 <td>Constructor</td>
383 </tr><tr> 504 </tr>
505 <tr>
384 <td><a href="#E5WheelTabBar.wheelEvent">wheelEvent</a></td> 506 <td><a href="#E5WheelTabBar.wheelEvent">wheelEvent</a></td>
385 <td>Protected slot to support wheel events.</td> 507 <td>Protected slot to support wheel events.</td>
386 </tr> 508 </tr>
387 </table> 509 </table>
388 <h3>Static Methods</h3> 510 <h3>Static Methods</h3>
389 <table> 511
390 <tr><td>None</td></tr> 512 <table>
391 </table> 513 <tr><td>None</td></tr>
514 </table>
515
392 <a NAME="E5WheelTabBar.__init__" ID="E5WheelTabBar.__init__"></a> 516 <a NAME="E5WheelTabBar.__init__" ID="E5WheelTabBar.__init__"></a>
393 <h4>E5WheelTabBar (Constructor)</h4> 517 <h4>E5WheelTabBar (Constructor)</h4>
394 <b>E5WheelTabBar</b>(<i>parent=None</i>) 518 <b>E5WheelTabBar</b>(<i>parent=None</i>)
519
395 <p> 520 <p>
396 Constructor 521 Constructor
397 </p><dl> 522 </p>
523 <dl>
524
398 <dt><i>parent</i></dt> 525 <dt><i>parent</i></dt>
399 <dd> 526 <dd>
400 reference to the parent widget (QWidget) 527 reference to the parent widget (QWidget)
401 </dd> 528 </dd>
402 </dl><a NAME="E5WheelTabBar.wheelEvent" ID="E5WheelTabBar.wheelEvent"></a> 529 </dl>
530 <a NAME="E5WheelTabBar.wheelEvent" ID="E5WheelTabBar.wheelEvent"></a>
403 <h4>E5WheelTabBar.wheelEvent</h4> 531 <h4>E5WheelTabBar.wheelEvent</h4>
404 <b>wheelEvent</b>(<i>event</i>) 532 <b>wheelEvent</b>(<i>event</i>)
533
405 <p> 534 <p>
406 Protected slot to support wheel events. 535 Protected slot to support wheel events.
407 </p><dl> 536 </p>
537 <dl>
538
408 <dt><i>event</i></dt> 539 <dt><i>event</i></dt>
409 <dd> 540 <dd>
410 reference to the wheel event (QWheelEvent) 541 reference to the wheel event (QWheelEvent)
411 </dd> 542 </dd>
412 </dl> 543 </dl>

eric ide

mercurial