Workstack tab bar widget.
#include <QtxWorkstack.h>
Signals |
| void | dragActiveTab () |
| | Emitted when dragging operation is started.
|
| void | contextMenuRequested (QPoint) |
| | Emitted when context popup menu is requested.
|
Public Member Functions |
| | QtxWorkstackTabBar (QWidget *=0) |
| | Constructor.
|
| virtual | ~QtxWorkstackTabBar () |
| | Destructor.
|
| bool | isActive () const |
| | Check if the tab bar is active.
|
| void | setActive (const bool) |
| | Set tab bar active/inactive.
|
| int | tabId (const int) const |
| | Get tab page identifier.
|
| int | indexOf (const int) const |
| | Get tab page index by specified identifier.
|
| void | setTabId (const int, const int) |
| | Set tab page identifier.
|
| void | updateActiveState () |
| | Update tab bar according to the 'active' state.
|
Protected Member Functions |
| virtual void | changeEvent (QEvent *) |
| | Process widget change state events (style, palette, enable state changing, etc).
|
| virtual void | mouseMoveEvent (QMouseEvent *) |
| | Customize mouse move event handler.
|
| virtual void | mousePressEvent (QMouseEvent *) |
| | Customize mouse press event handler.
|
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| | Customize mouse release event handler.
|
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| | Customize context menu event handler.
|
Private Slots |
| void | onCurrentChanged (int) |
| | Called when current tab page is changed.
|
Private Attributes |
| int | myId |
| | current tab page index
|
| bool | myActive |
| | "active" status
|
Constructor & Destructor Documentation
| QtxWorkstackTabBar::QtxWorkstackTabBar |
( |
QWidget * |
parent = 0 | ) |
|
| QtxWorkstackTabBar::~QtxWorkstackTabBar |
( |
| ) |
[virtual] |
Member Function Documentation
| bool QtxWorkstackTabBar::isActive |
( |
| ) |
const |
- Returns:
true if tab bar is active
References myActive.
| void QtxWorkstackTabBar::setActive |
( |
const bool |
on | ) |
|
| int QtxWorkstackTabBar::tabId |
( |
const int |
index | ) |
const |
- Parameters:
-
- Returns:
- tab page ID or -1 if index is out of range
| int QtxWorkstackTabBar::indexOf |
( |
const int |
id | ) |
const |
- Parameters:
-
- Returns:
- tab page index or -1 if not found
References tabId().
| void QtxWorkstackTabBar::setTabId |
( |
const int |
index, |
|
|
const int |
id |
|
) |
| |
- Parameters:
-
| index | tab page index |
| id | tab page ID |
| void QtxWorkstackTabBar::updateActiveState |
( |
| ) |
|
| void QtxWorkstackTabBar::dragActiveTab |
( |
| ) |
[signal] |
| void QtxWorkstackTabBar::contextMenuRequested |
( |
QPoint |
p | ) |
[signal] |
- Parameters:
-
| p | point popup menu to be shown at |
| void QtxWorkstackTabBar::onCurrentChanged |
( |
int |
| ) |
[private, slot] |
| void QtxWorkstackTabBar::changeEvent |
( |
QEvent * |
| ) |
[protected, virtual] |
| void QtxWorkstackTabBar::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
| void QtxWorkstackTabBar::mousePressEvent |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
| void QtxWorkstackTabBar::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
| void QtxWorkstackTabBar::contextMenuEvent |
( |
QContextMenuEvent * |
e | ) |
[protected, virtual] |
Field Documentation