![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
This interface defines methods that should be implemented in widgets added to the main tab widget. More...
#include "ihavetabs.h"
Public Member Functions | |
virtual | ~ITabWidget () |
virtual LC::TabClassInfo | GetTabClassInfo () const =0 |
Returns the description of the tab class of this tab. More... | |
virtual QObject * | ParentMultiTabs ()=0 |
Returns the pointer to the plugin this tab belongs to. More... | |
virtual void | Remove ()=0 |
Requests to remove the tab. More... | |
virtual QToolBar * | GetToolBar () const =0 |
Requests tab's toolbar. More... | |
virtual QList< QAction * > | GetTabBarContextMenuActions () const |
Returns the list of QActions for the context menu of the tabbar. More... | |
virtual QMap< QString, QList< QAction * > > | GetWindowMenus () const |
Returns the list of QActions to be inserted into global menu. More... | |
virtual void | TabMadeCurrent () |
This method is called when this tab becomes active. More... | |
virtual void | TabLostCurrent () |
This method is called when another tab becomes active. More... | |
This interface defines methods that should be implemented in widgets added to the main tab widget.
A tab may also implement the following interfaces:
Definition at line 149 of file ihavetabs.h.
|
inlinevirtual |
Definition at line 152 of file ihavetabs.h.
|
inlinevirtual |
Returns the list of QActions for the context menu of the tabbar.
These actions would be shown in the context menu that would pop-up when the user right-clicks this tab's button in the tabbar.
The default implementation returns an empty list.
Definition at line 210 of file ihavetabs.h.
|
pure virtual |
Returns the description of the tab class of this tab.
The entry must be the same as the one with the same TabClass_ returned from the IHaveTabs::GetTabClasses().
|
pure virtual |
Requests tab's toolbar.
This method is called to obtain the tab toolbar. In current implementation, it would be shown on top of the LeechCraft's main window.
If the tab has no toolbar, 0 should be returned.
Returns the list of QActions to be inserted into global menu.
For each key in the map (except special values, which would be defined later), the corresponding submenu would be created in LeechCraft global menu, and the corresponding list of actions would be inserted into that submenu. The submenus created would only be visible when this tab is active.
There are special values for the keys:
The default implementation returns an empty map.
Definition at line 233 of file ihavetabs.h.
|
pure virtual |
Returns the pointer to the plugin this tab belongs to.
The returned object must implement IHaveTabs and must be the one that called IHaveTabs::addNewTab() with this tab as the parameter.
|
pure virtual |
Requests to remove the tab.
This method is called by LeechCraft Core (or other plugins) when this tab should be closed, for example, when user clicked on the 'x' in the tab bar. The tab may ask the user if he really wants to close the tab, for example. The tab is free to ignore the close request (in this case nothing should be done at all) or accept it by emitting IHavetabs::removeTab() signal, passing this tab widget as its parameter.
|
inlinevirtual |
This method is called when another tab becomes active.
This method is called only if this tab was active before the other tab activates.
Definition at line 251 of file ihavetabs.h.
|
inlinevirtual |
This method is called when this tab becomes active.
The default implementation does nothing.
Definition at line 242 of file ihavetabs.h.