54 <dl> |
54 <dl> |
55 <dt>tabCopyRequested(int, int)</dt> |
55 <dt>tabCopyRequested(int, int)</dt> |
56 <dd> |
56 <dd> |
57 emitted to signal a clone request giving |
57 emitted to signal a clone request giving |
58 the old and new index position |
58 the old and new index position |
59 </dd><dt>tabCopyRequested(long, int, int)</dt> |
59 </dd><dt>tabCopyRequested(str, int, int)</dt> |
60 <dd> |
60 <dd> |
61 emitted to signal a clone request |
61 emitted to signal a clone request |
62 giving the id of the source tab widget, the index in the source tab widget |
62 giving the string encoded id of the source tab widget, the index in the |
63 and the new index position |
63 source tab widget and the new index position |
64 </dd><dt>tabMoveRequested(int, int)</dt> |
64 </dd><dt>tabMoveRequested(int, int)</dt> |
65 <dd> |
65 <dd> |
66 emitted to signal a tab move request giving |
66 emitted to signal a tab move request giving |
67 the old and new index position |
67 the old and new index position |
68 </dd><dt>tabRelocateRequested(long, int, int)</dt> |
68 </dd><dt>tabRelocateRequested(str, int, int)</dt> |
69 <dd> |
69 <dd> |
70 emitted to signal a tab relocation |
70 emitted to signal a tab relocation |
71 request giving the id of the old tab widget, the index in the old tab widget |
71 request giving the string encoded id of the old tab widget, the index in |
72 and the new index position |
72 the old tab widget and the new index position |
73 </dd> |
73 </dd> |
74 </dl> |
74 </dl> |
75 <h3>Derived from</h3> |
75 <h3>Derived from</h3> |
76 E5WheelTabBar |
76 E5WheelTabBar |
77 <h3>Class Attributes</h3> |
77 <h3>Class Attributes</h3> |
225 <td>Private method to save all tabs.</td> |
225 <td>Private method to save all tabs.</td> |
226 </tr><tr> |
226 </tr><tr> |
227 <td><a href="#TabWidget.__contextMenuSaveAs">__contextMenuSaveAs</a></td> |
227 <td><a href="#TabWidget.__contextMenuSaveAs">__contextMenuSaveAs</a></td> |
228 <td>Private method to save the selected tab to a new file.</td> |
228 <td>Private method to save the selected tab to a new file.</td> |
229 </tr><tr> |
229 </tr><tr> |
|
230 <td><a href="#TabWidget.__copyTab">__copyTab</a></td> |
|
231 <td>Private method to copy an editor.</td> |
|
232 </tr><tr> |
|
233 <td><a href="#TabWidget.__copyTabOther">__copyTabOther</a></td> |
|
234 <td>Private method to copy an editor from another TabWidget.</td> |
|
235 </tr><tr> |
230 <td><a href="#TabWidget.__initMenu">__initMenu</a></td> |
236 <td><a href="#TabWidget.__initMenu">__initMenu</a></td> |
231 <td>Private method to initialize the tab context menu.</td> |
237 <td>Private method to initialize the tab context menu.</td> |
232 </tr><tr> |
238 </tr><tr> |
233 <td><a href="#TabWidget.__navigationMenuTriggered">__navigationMenuTriggered</a></td> |
239 <td><a href="#TabWidget.__navigationMenuTriggered">__navigationMenuTriggered</a></td> |
234 <td>Private slot called to handle the navigation button menu selection.</td> |
240 <td>Private slot called to handle the navigation button menu selection.</td> |
235 </tr><tr> |
241 </tr><tr> |
|
242 <td><a href="#TabWidget.__relocateTab">__relocateTab</a></td> |
|
243 <td>Private method to relocate an editor from another TabWidget.</td> |
|
244 </tr><tr> |
236 <td><a href="#TabWidget.__showContextMenu">__showContextMenu</a></td> |
245 <td><a href="#TabWidget.__showContextMenu">__showContextMenu</a></td> |
237 <td>Private slot to show the tab context menu.</td> |
246 <td>Private slot to show the tab context menu.</td> |
238 </tr><tr> |
247 </tr><tr> |
239 <td><a href="#TabWidget.__showNavigationMenu">__showNavigationMenu</a></td> |
248 <td><a href="#TabWidget.__showNavigationMenu">__showNavigationMenu</a></td> |
240 <td>Private slot to show the navigation button menu.</td> |
249 <td>Private slot to show the navigation button menu.</td> |
241 </tr><tr> |
250 </tr><tr> |
242 <td><a href="#TabWidget.addTab">addTab</a></td> |
251 <td><a href="#TabWidget.addTab">addTab</a></td> |
243 <td>Overwritten method to add a new tab.</td> |
252 <td>Overwritten method to add a new tab.</td> |
244 </tr><tr> |
253 </tr><tr> |
245 <td><a href="#TabWidget.copyTab">copyTab</a></td> |
|
246 <td>Public method to copy an editor.</td> |
|
247 </tr><tr> |
|
248 <td><a href="#TabWidget.copyTabOther">copyTabOther</a></td> |
|
249 <td>Public method to copy an editor from another TabWidget.</td> |
|
250 </tr><tr> |
|
251 <td><a href="#TabWidget.currentWidget">currentWidget</a></td> |
254 <td><a href="#TabWidget.currentWidget">currentWidget</a></td> |
252 <td>Overridden method to return a reference to the current page.</td> |
255 <td>Overridden method to return a reference to the current page.</td> |
253 </tr><tr> |
256 </tr><tr> |
254 <td><a href="#TabWidget.hasEditor">hasEditor</a></td> |
257 <td><a href="#TabWidget.hasEditor">hasEditor</a></td> |
255 <td>Public method to check for an editor.</td> |
258 <td>Public method to check for an editor.</td> |
263 <td><a href="#TabWidget.insertWidget">insertWidget</a></td> |
266 <td><a href="#TabWidget.insertWidget">insertWidget</a></td> |
264 <td>Overwritten method to insert a new tab.</td> |
267 <td>Overwritten method to insert a new tab.</td> |
265 </tr><tr> |
268 </tr><tr> |
266 <td><a href="#TabWidget.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td> |
269 <td><a href="#TabWidget.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td> |
267 <td>Protected method handling double click events.</td> |
270 <td>Protected method handling double click events.</td> |
268 </tr><tr> |
|
269 <td><a href="#TabWidget.relocateTab">relocateTab</a></td> |
|
270 <td>Public method to relocate an editor from another TabWidget.</td> |
|
271 </tr><tr> |
271 </tr><tr> |
272 <td><a href="#TabWidget.removeWidget">removeWidget</a></td> |
272 <td><a href="#TabWidget.removeWidget">removeWidget</a></td> |
273 <td>Public method to remove a widget.</td> |
273 <td>Public method to remove a widget.</td> |
274 </tr><tr> |
274 </tr><tr> |
275 <td><a href="#TabWidget.setCurrentWidget">setCurrentWidget</a></td> |
275 <td><a href="#TabWidget.setCurrentWidget">setCurrentWidget</a></td> |
386 </p><a NAME="TabWidget.__contextMenuSaveAs" ID="TabWidget.__contextMenuSaveAs"></a> |
386 </p><a NAME="TabWidget.__contextMenuSaveAs" ID="TabWidget.__contextMenuSaveAs"></a> |
387 <h4>TabWidget.__contextMenuSaveAs</h4> |
387 <h4>TabWidget.__contextMenuSaveAs</h4> |
388 <b>__contextMenuSaveAs</b>(<i></i>) |
388 <b>__contextMenuSaveAs</b>(<i></i>) |
389 <p> |
389 <p> |
390 Private method to save the selected tab to a new file. |
390 Private method to save the selected tab to a new file. |
391 </p><a NAME="TabWidget.__initMenu" ID="TabWidget.__initMenu"></a> |
391 </p><a NAME="TabWidget.__copyTab" ID="TabWidget.__copyTab"></a> |
|
392 <h4>TabWidget.__copyTab</h4> |
|
393 <b>__copyTab</b>(<i>sourceIndex, targetIndex</i>) |
|
394 <p> |
|
395 Private method to copy an editor. |
|
396 </p><dl> |
|
397 <dt><i>sourceIndex</i></dt> |
|
398 <dd> |
|
399 index of the tab (integer) |
|
400 </dd><dt><i>targetIndex</i></dt> |
|
401 <dd> |
|
402 index position to place it to (integer) |
|
403 </dd> |
|
404 </dl><a NAME="TabWidget.__copyTabOther" ID="TabWidget.__copyTabOther"></a> |
|
405 <h4>TabWidget.__copyTabOther</h4> |
|
406 <b>__copyTabOther</b>(<i>sourceId, sourceIndex, targetIndex</i>) |
|
407 <p> |
|
408 Private method to copy an editor from another TabWidget. |
|
409 </p><dl> |
|
410 <dt><i>sourceId</i></dt> |
|
411 <dd> |
|
412 id of the TabWidget to get the editor from (string) |
|
413 </dd><dt><i>sourceIndex</i></dt> |
|
414 <dd> |
|
415 index of the tab in the old tab widget (integer) |
|
416 </dd><dt><i>targetIndex</i></dt> |
|
417 <dd> |
|
418 index position to place it to (integer) |
|
419 </dd> |
|
420 </dl><a NAME="TabWidget.__initMenu" ID="TabWidget.__initMenu"></a> |
392 <h4>TabWidget.__initMenu</h4> |
421 <h4>TabWidget.__initMenu</h4> |
393 <b>__initMenu</b>(<i></i>) |
422 <b>__initMenu</b>(<i></i>) |
394 <p> |
423 <p> |
395 Private method to initialize the tab context menu. |
424 Private method to initialize the tab context menu. |
396 </p><a NAME="TabWidget.__navigationMenuTriggered" ID="TabWidget.__navigationMenuTriggered"></a> |
425 </p><a NAME="TabWidget.__navigationMenuTriggered" ID="TabWidget.__navigationMenuTriggered"></a> |
401 </p><dl> |
430 </p><dl> |
402 <dt><i>act</i></dt> |
431 <dt><i>act</i></dt> |
403 <dd> |
432 <dd> |
404 reference to the selected action (QAction) |
433 reference to the selected action (QAction) |
405 </dd> |
434 </dd> |
|
435 </dl><a NAME="TabWidget.__relocateTab" ID="TabWidget.__relocateTab"></a> |
|
436 <h4>TabWidget.__relocateTab</h4> |
|
437 <b>__relocateTab</b>(<i>sourceId, sourceIndex, targetIndex</i>) |
|
438 <p> |
|
439 Private method to relocate an editor from another TabWidget. |
|
440 </p><dl> |
|
441 <dt><i>sourceId</i></dt> |
|
442 <dd> |
|
443 id of the TabWidget to get the editor from (string) |
|
444 </dd><dt><i>sourceIndex</i></dt> |
|
445 <dd> |
|
446 index of the tab in the old tab widget (integer) |
|
447 </dd><dt><i>targetIndex</i></dt> |
|
448 <dd> |
|
449 index position to place it to (integer) |
|
450 </dd> |
406 </dl><a NAME="TabWidget.__showContextMenu" ID="TabWidget.__showContextMenu"></a> |
451 </dl><a NAME="TabWidget.__showContextMenu" ID="TabWidget.__showContextMenu"></a> |
407 <h4>TabWidget.__showContextMenu</h4> |
452 <h4>TabWidget.__showContextMenu</h4> |
408 <b>__showContextMenu</b>(<i>coord, index</i>) |
453 <b>__showContextMenu</b>(<i>coord, index</i>) |
409 <p> |
454 <p> |
410 Private slot to show the tab context menu. |
455 Private slot to show the tab context menu. |
421 <b>__showNavigationMenu</b>(<i></i>) |
466 <b>__showNavigationMenu</b>(<i></i>) |
422 <p> |
467 <p> |
423 Private slot to show the navigation button menu. |
468 Private slot to show the navigation button menu. |
424 </p><a NAME="TabWidget.addTab" ID="TabWidget.addTab"></a> |
469 </p><a NAME="TabWidget.addTab" ID="TabWidget.addTab"></a> |
425 <h4>TabWidget.addTab</h4> |
470 <h4>TabWidget.addTab</h4> |
426 <b>addTab</b>(<i>editor, title</i>) |
471 <b>addTab</b>(<i>assembly, title</i>) |
427 <p> |
472 <p> |
428 Overwritten method to add a new tab. |
473 Overwritten method to add a new tab. |
429 </p><dl> |
474 </p><dl> |
430 <dt><i>editor</i></dt> |
475 <dt><i>assembly</i></dt> |
431 <dd> |
476 <dd> |
432 the editor object to be added (QScintilla.Editor.Editor) |
477 editor assembly object to be added |
|
478 (QScintilla.EditorAssembly.EditorAssembly) |
433 </dd><dt><i>title</i></dt> |
479 </dd><dt><i>title</i></dt> |
434 <dd> |
480 <dd> |
435 title for the new tab (string) |
481 title for the new tab (string) |
436 </dd> |
|
437 </dl><a NAME="TabWidget.copyTab" ID="TabWidget.copyTab"></a> |
|
438 <h4>TabWidget.copyTab</h4> |
|
439 <b>copyTab</b>(<i>sourceIndex, targetIndex</i>) |
|
440 <p> |
|
441 Public method to copy an editor. |
|
442 </p><dl> |
|
443 <dt><i>sourceIndex</i></dt> |
|
444 <dd> |
|
445 index of the tab (integer) |
|
446 </dd><dt><i>targetIndex</i></dt> |
|
447 <dd> |
|
448 index position to place it to (integer) |
|
449 </dd> |
|
450 </dl><a NAME="TabWidget.copyTabOther" ID="TabWidget.copyTabOther"></a> |
|
451 <h4>TabWidget.copyTabOther</h4> |
|
452 <b>copyTabOther</b>(<i>sourceId, sourceIndex, targetIndex</i>) |
|
453 <p> |
|
454 Public method to copy an editor from another TabWidget. |
|
455 </p><dl> |
|
456 <dt><i>sourceId</i></dt> |
|
457 <dd> |
|
458 id of the TabWidget to get the editor from (long) |
|
459 </dd><dt><i>sourceIndex</i></dt> |
|
460 <dd> |
|
461 index of the tab in the old tab widget (integer) |
|
462 </dd><dt><i>targetIndex</i></dt> |
|
463 <dd> |
|
464 index position to place it to (integer) |
|
465 </dd> |
482 </dd> |
466 </dl><a NAME="TabWidget.currentWidget" ID="TabWidget.currentWidget"></a> |
483 </dl><a NAME="TabWidget.currentWidget" ID="TabWidget.currentWidget"></a> |
467 <h4>TabWidget.currentWidget</h4> |
484 <h4>TabWidget.currentWidget</h4> |
468 <b>currentWidget</b>(<i></i>) |
485 <b>currentWidget</b>(<i></i>) |
469 <p> |
486 <p> |
514 <dd> |
531 <dd> |
515 tab index of the editor (integer) |
532 tab index of the editor (integer) |
516 </dd> |
533 </dd> |
517 </dl><a NAME="TabWidget.insertWidget" ID="TabWidget.insertWidget"></a> |
534 </dl><a NAME="TabWidget.insertWidget" ID="TabWidget.insertWidget"></a> |
518 <h4>TabWidget.insertWidget</h4> |
535 <h4>TabWidget.insertWidget</h4> |
519 <b>insertWidget</b>(<i>index, editor, title</i>) |
536 <b>insertWidget</b>(<i>index, assembly, title</i>) |
520 <p> |
537 <p> |
521 Overwritten method to insert a new tab. |
538 Overwritten method to insert a new tab. |
522 </p><dl> |
539 </p><dl> |
523 <dt><i>index</i></dt> |
540 <dt><i>index</i></dt> |
524 <dd> |
541 <dd> |
525 index position for the new tab (integer) |
542 index position for the new tab (integer) |
526 </dd><dt><i>editor</i></dt> |
543 </dd><dt><i>assembly</i></dt> |
527 <dd> |
544 <dd> |
528 the editor object to be added (QScintilla.Editor.Editor) |
545 editor assembly object to be added |
|
546 (QScintilla.EditorAssembly.EditorAssembly) |
529 </dd><dt><i>title</i></dt> |
547 </dd><dt><i>title</i></dt> |
530 <dd> |
548 <dd> |
531 title for the new tab (string) |
549 title for the new tab (string) |
532 </dd> |
550 </dd> |
533 </dl><dl> |
551 </dl><dl> |
542 Protected method handling double click events. |
560 Protected method handling double click events. |
543 </p><dl> |
561 </p><dl> |
544 <dt><i>event</i></dt> |
562 <dt><i>event</i></dt> |
545 <dd> |
563 <dd> |
546 reference to the event object (QMouseEvent) |
564 reference to the event object (QMouseEvent) |
547 </dd> |
|
548 </dl><a NAME="TabWidget.relocateTab" ID="TabWidget.relocateTab"></a> |
|
549 <h4>TabWidget.relocateTab</h4> |
|
550 <b>relocateTab</b>(<i>sourceId, sourceIndex, targetIndex</i>) |
|
551 <p> |
|
552 Public method to relocate an editor from another TabWidget. |
|
553 </p><dl> |
|
554 <dt><i>sourceId</i></dt> |
|
555 <dd> |
|
556 id of the TabWidget to get the editor from (long) |
|
557 </dd><dt><i>sourceIndex</i></dt> |
|
558 <dd> |
|
559 index of the tab in the old tab widget (integer) |
|
560 </dd><dt><i>targetIndex</i></dt> |
|
561 <dd> |
|
562 index position to place it to (integer) |
|
563 </dd> |
565 </dd> |
564 </dl><a NAME="TabWidget.removeWidget" ID="TabWidget.removeWidget"></a> |
566 </dl><a NAME="TabWidget.removeWidget" ID="TabWidget.removeWidget"></a> |
565 <h4>TabWidget.removeWidget</h4> |
567 <h4>TabWidget.removeWidget</h4> |
566 <b>removeWidget</b>(<i>object</i>) |
568 <b>removeWidget</b>(<i>object</i>) |
567 <p> |
569 <p> |