![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
This interface is used to represent LeechCraft's core tab widget. More...
#include "icoretabwidget.h"
Public Member Functions | |
virtual | ~ICoreTabWidget () |
virtual QObject * | GetQObject ()=0 |
Returns the pointer to tab widget as a QObject. More... | |
virtual int | WidgetCount () const =0 |
Returns the number of widgets associated with tabs. More... | |
virtual QWidget * | Widget (int index) const =0 |
Returns the tab page at index position index or 0. if the index is out of range. More... | |
virtual int | IndexOf (QWidget *page) const =0 |
Returns the index of the given page. More... | |
virtual QMenu * | GetTabMenu (int index)=0 |
Returns the tab menu for the given tab index. More... | |
virtual QList< QAction * > | GetPermanentActions () const =0 |
Returns the list of actions witch always shows in context menu. of the tab. More... | |
virtual QVariant | TabData (int index) const =0 |
Returns the data of the tab at position index, or a null variant if index is out of range. More... | |
virtual void | SetTabData (int index, QVariant data)=0 |
Sets the data of the tab at position index to data. More... | |
virtual QString | TabText (int index) const =0 |
Returns the text of the tab at position index, or an empty string if index is out of range. More... | |
virtual void | SetTabText (int index, const QString &text)=0 |
Sets the text of the tab at position index to text. of the tabs. More... | |
virtual QIcon | TabIcon (int index) const =0 |
Returns the icon of the tab at position index, or a null icon if index is out of range. More... | |
virtual QWidget * | TabButton (int index, QTabBar::ButtonPosition position) const =0 |
Returns the widget set a tab index and position or 0 if one is not set. More... | |
virtual QTabBar::ButtonPosition | GetCloseButtonPosition () const =0 |
Returns the position of close button. More... | |
virtual void | SetTabClosable (int index, bool closable, QWidget *closeButton=0)=0 |
Sets tab closable. More... | |
virtual int | CurrentIndex () const =0 |
Returns the index of the tab bar's visible tab. More... | |
virtual void | MoveTab (int from, int to)=0 |
Moves the item at index position from to index position to. More... | |
virtual void | setCurrentTab (int index)=0 |
Sets the current tab index to specified index. More... | |
virtual void | setCurrentWidget (QWidget *widget)=0 |
Sets the current tab index to specified associated widget. More... | |
virtual QWidget * | GetPreviousWidget () const =0 |
Returns the previous active widget if it exists. More... | |
virtual void | tabInserted (int index)=0 |
This signal is emitted after new tab was inserted. More... | |
virtual void | currentChanged (int index)=0 |
This signal is emitted when the tab widget's current tab changes. The new current has the given index, or -1 if there isn't a new one. More... | |
virtual void | tabWasMoved (int from, int to)=0 |
This signal is emitted when tab at from moves to position to. More... | |
This interface is used to represent LeechCraft's core tab widget.
This interface is for communication with the core tab widget.
Definition at line 45 of file icoretabwidget.h.
|
inlinevirtual |
Definition at line 48 of file icoretabwidget.h.
|
pure virtual |
This signal is emitted when the tab widget's current tab changes. The new current has the given index, or -1 if there isn't a new one.
[out] | index | The index of current tab. |
|
pure virtual |
Returns the index of the tab bar's visible tab.
|
pure virtual |
Returns the position of close button.
|
pure virtual |
Returns the list of actions witch always shows in context menu. of the tab.
|
pure virtual |
Returns the previous active widget if it exists.
|
pure virtual |
Returns the pointer to tab widget as a QObject.
You can connect to signals of this class via the object returned from this function, for example.
|
pure virtual |
Returns the tab menu for the given tab index.
Ownership of the menu goes to the caller — it's his responsibility to delete the menu when done.
[in] | index | tab index. |
|
pure virtual |
Returns the index of the given page.
[in] | page | page to find. |
|
pure virtual |
Moves the item at index position from to index position to.
[in] | from | source position. |
[in] | to | destination position. |
|
pure virtual |
Sets the current tab index to specified index.
[in] | index | new tab index. |
|
pure virtual |
Sets the current tab index to specified associated widget.
[in] | widget | page. |
|
pure virtual |
Sets tab closable.
[in] | index | tab index. |
[in] | closable | set tab closable. |
[in] | closeButton | set close button. |
|
pure virtual |
Sets the data of the tab at position index to data.
[in] | index | tab index. |
[in] | data | new tab data. |
|
pure virtual |
Sets the text of the tab at position index to text. of the tabs.
[in] | index | tab index. |
[in] | text | new tab text. |
|
pure virtual |
Returns the widget set a tab index and position or 0 if one is not set.
[in] | index | tab index. |
[in] | position | position of widget. |
|
pure virtual |
Returns the data of the tab at position index, or a null variant if index is out of range.
[in] | index | tab index. |
|
pure virtual |
Returns the icon of the tab at position index, or a null icon if index is out of range.
[in] | index | tab index. |
|
pure virtual |
This signal is emitted after new tab was inserted.
[out] | index | The index of new tab. |
|
pure virtual |
Returns the text of the tab at position index, or an empty string if index is out of range.
[in] | index | tab index. |
|
pure virtual |
This signal is emitted when tab at from moves to position to.
[out] | from | Previous index of the tab that has just moved. |
[out] | to | The new position of the tab. |
|
pure virtual |
Returns the tab page at index position index or 0. if the index is out of range.
[in] | index | tab index. |
|
pure virtual |
Returns the number of widgets associated with tabs.