|
|
The actual tab bar for dockwidgets (and member of the dockwidget class set). This class is covered by its manager, KDockTabCtl. It provides some set/get methods and managment methods like insert, remove, activate for tab widgets.
|
Constructs a tab bar widget. The parent and name argument are sent to the QWidget constructor.
~ |
Destructs this.
enum |
For clearer setting (or asking for) the current tab page position.
void |
Sets the position to tabpos and repaints this.
Parameters:
tabpos | either TAB_TOP or TAB_RIGHT, just where you want it to be |
int |
Inserts a new empty tab page to the tab bar. If id is not specified, the tab is simply added. Otherwise it's inserted at the specified position.
Parameters:
label | the title in the tab page header |
id | an identification number for access operations |
Returns: the new allocated id
void |
Sets an icon for the tab page with that id.
Parameters:
id | the identification number of that desired page |
pix | the new pixmap |
void |
Sets a tooltip for the tab page with that id.
Parameters:
id | the identification number of that desired page |
toolTipStr | the new tooltip |
void |
Sets the text colour for the tab page with that id.
Parameters:
id | the identification number of that desired page |
color | the new text colour |
const QColor& |
Returns the text colour for the tab page with that id.
Parameters:
id | the identification number of that desired tab page |
Returns: the current text colour of that tab page
void |
Removes the tab page with that id.
Parameters:
id | the identification number of that desired page |
int |
Returns the current tab page.
Returns: the id of the tab page
void |
Sets the current tab page to the page with that id.
Parameters:
id | the identification number of that desired page |
allowDisable | disables the tab page |
void |
Enables or disables the tab page with that id.
bool |
Returns if the tab page with that id is enabled or disabled.
void |
Sets the title of the tab page with that id.
Parameters:
id | the identification number of that desired page |
caption | a string for the title |
QString |
Returns the title of the tab page with that id.
Parameters:
id | the identification number of that desired page |
void |
[virtual]
Calls QWidget::show() and showPage(..) for the current tab page, additionally.
void |
[virtual]
Sets the font of this.
void |
Shows or Hides the icons for the tab pages in the header.
bool |
Returns if the icons for the tab pages are shown in the header.
void |
[signal]
Signals that a tab page with that id is selected.
Parameters:
id | the identification number of that desired page |
void |
[signal]
Signals that the right mouse buttons is pressed on the tab page with that id.
Parameters:
id | the identification number of that desired page |
void |
[protected slot]
Does things that should be done if someone has clicked the left mouse button.
void |
[protected slot]
Does things that should be done if someone has clicked the right mouse button.
void |
[protected virtual]
Handles paint events for this widgets Reimplemented from QWidget
void |
[protected virtual]
Handles resize events for this widgets Reimplemented from QWidget