|
|
A manager for a single KDockTabBar (and member of the dockwidget class set). The KDockWidget class ever use this class instead of accessing the KDockTabBar directly.
For some reasons it's more practical for the Dockwidget class set than QTabBar or KTabBar .
|
Constructs a dock-tab control object.
~ |
Destructs this.
void |
[virtual]
Calls KDockTabBar::setTabPos of its embedded tab bar but does layout actions, additionally.
KDockTabBar::TabPos |
Returns the current tab position of its docktabbar.
int |
Inserts a new tab page in the encapsulated docktabbar. Mainly it calls KDockTabBar::insertTab and does additional management operations.
Parameters:
w | the widget that is inserted |
label | the title for the caption bar of the tab page |
id | suggest an identification number for access operations but it will be shifted to the next free value |
index | the tab page position (default=-1 means append) |
Returns: the id of the new inserted page
void |
Sets the title of the tab page. Mainly it calls KDockTabBar::setPageCaption but calls it internally by the page id.
Parameters:
w | the widget we want to give a new caption |
s | well, what the heck could that be? ;-) |
void |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QString |
Returns the title of the tab page. Mainly it calls KDockTabBar::setPageCaption but calls it internally by the page id.
Parameters:
w | the widget for that we want to know its caption |
Returns: a string containing the title of the page
QString |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void |
bool |
void |
Sets an icon for the tab page (shown in the tab header).
Parameters:
w | the widget we want to give a new icon |
pix | the new icon |
void |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void |
Sets a toolTip for the tab page (shown in the tab header).
Parameters:
w | the widget we want to give the tooltip |
toolTipStr | the new tooltip string |
void |
Sets the text colour of the tab page. Mainly it calls KDockTabBar::setTextColor but calls it internally by the page id.
Parameters:
w | the widget we want to give a new text colour |
color | the colour of the tab header |
void |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QColor& |
Returns the text colour of the tab page. Mainly it calls KDockTabBar::textColor but calls it internally by the page id.
Parameters:
w | the widget we want to ask for its text colour |
const QColor& |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
bool |
Returns if the tab page is enabled (if it can get the focus).
Parameters:
w | the widget we want to ask if its page is enabled |
bool |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void |
Enable or disable the tab page (whether it can get the focus or not). Mainly it calls KDockTabBar::setPageEnabled but calls it internally by the page id.
Parameters:
w | the widget that should be enabled |
e | boolean value whether enabled or disabled |
void |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QWidget* |
/
/** Returns the widget that embedded in a page.
Parameters:
id | the identification number of the page |
int |
Returns the widget's Id.
Parameters:
w | the widget that should return its id |
int |
Returns the widget's index. (tab page position)
Parameters:
w | the widget that should return its index |
void |
Removes the tab page from the covered tab bar. Mainly it calls KDockTabBar::removeTab but calls it internally by the page id.
Parameters:
w | the tab page that should be removed |
void |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QWidget* |
Returns the current (visible) tab page.
int |
Returns the id of the current (visible) tab page.
void |
Sets the given tab page as the active (and visible) one.
void |
Sets the font for the tab pages. It just calls the appropriate method of its KDockTabBar.
QFont |
Returns the font for the tab pages. It simply calls KDockTabBar::tabFont .
void |
Enables or disables the showing of the icons for every tab page. It simply calls KDockTabBar::showTabIcon .
bool |
Returns if the tab icon is shown. It simply calls KDockTabBar::isShowTabIcon .
int |
Returns the number of inserted tab pages.
QWidget* |
Returns the first tab page in its KDockTabBar.
QWidget* |
Returns the last tab page in its KDockTabBar.
QWidget* |
Returns the tab page that is at the right side of the given tab widget.
QWidget* |
Returns the tab page that is at the left side of the given tab widget.
void |
[virtual]
Shows its encapsulated tab bar and shows the current tab page.
bool |
[virtual]
Catches some events that are of interest for this class.
void |
[virtual slot]
Enables or disables this and its KDockTabBar.
void |
[slot]
Sets the visible page by its id.
void |
[protected]
Handles paint events for this widgets Reimplemented from QWidget
void |
[signal]
Signals that the given widget is about to show.
void |
[signal]
Signals that that tab page is selected.
void |
[signal]
Signals that the right mouse button is pressed on this.
void |
[protected slot]
Do some things that should be done when someone has pressed the right mouse button on this.
KDockTabCtl_PrivateStruct* |
[protected]
Returns the appropriate data for the widget from the parameter list.
KDockTabCtl_PrivateStruct* |
[protected]
Returns the appropriate data for the widget from the parameter list described by its id.
void |
[protected]
Shows the tab page.
QWidgetStack* |
[protected]
a data structure that contains all embedded widgets.
QBoxLayout* |
[protected]
The layout manager for automatic positioning and resizing of the embedded tab pages.
QBoxLayout* |
[protected]
The layout manager for the widget stack.
QList<KDockTabCtl_PrivateStruct> * |
[protected]
An internal list for managing the tab pages. It stores data items for every tab page in the tab bar. An data item is of type KDockTabCtl_PrivateStruct (a struct) that contains the widget, its id and information about whether it is enabled or disabled.
QWidget* |
[protected]
A pointer to the widget that is the current tab page in the covered tab bar.
KDockTabBar* |
[protected]
The actual tab bar widget that is encapsulated by this control class. Often this manager puts only method calls through and does some additional management functions.
KDockTabBar::TabPos |
[protected]
The current tab position.
bool |
[protected]