![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
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. | |
virtual QObject * | ParentMultiTabs ()=0 |
Returns the pointer to the plugin this tab belongs to. | |
virtual void | Remove ()=0 |
Requests to remove the tab. | |
virtual QToolBar * | GetToolBar () const =0 |
Requests tab's toolbar. | |
virtual QList< QAction * > | GetTabBarContextMenuActions () const |
Returns the list of QActions for the context menu of the tabbar. | |
virtual QMap< QString, QList< QAction * > > | GetWindowMenus () const |
Returns the list of QActions to be inserted into global menu. | |
virtual void | TabMadeCurrent () |
This method is called when this tab becomes active. | |
virtual void | TabLostCurrent () |
This method is called when another tab becomes active. | |
virtual void | removeTab ()=0 |
This signal is emitted by a tab when it wants to remove itself. | |
virtual void | changeTabName (const QString &name) |
This signal is emitted by a tab to change its name. | |
virtual void | changeTabIcon (const QIcon &icon) |
This signal is emitted by a tab to change its icon. | |
virtual void | raiseTab () |
This signal is emitted by a tab to bring itself to the front. | |
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 150 of file ihavetabs.h.
|
inlinevirtual |
Definition at line 153 of file ihavetabs.h.
|
inlinevirtual |
This signal is emitted by a tab to change its icon.
Null icon object may be used to clear the icon.
[out] | icon | The new icon of the tab with tabContents. |
Definition at line 288 of file ihavetabs.h.
|
inlinevirtual |
This signal is emitted by a tab to change its name.
The name of the tab is shown in the tab bar of the tab widget. It also may be shown in other places and contexts, like in the LeechCraft title bar when the corresponding tab is active.
[out] | name | The new name of the tab with tabContents. |
Definition at line 273 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 211 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 234 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.
|
inlinevirtual |
This signal is emitted by a tab to bring itself to the front.
Definition at line 297 of file ihavetabs.h.
|
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.
|
pure virtual |
This signal is emitted by a tab when it wants to remove itself.
|
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 252 of file ihavetabs.h.
|
inlinevirtual |
This method is called when this tab becomes active.
The default implementation does nothing.
Definition at line 243 of file ihavetabs.h.