PanelContextButtonBar Class Reference
Base class for panel context button bar.
More...
#include <panelcontextbuttonbar.h>
List of all members.
Signals |
void | barHidden () |
| Signal that is sent when context button bar is hidden.
|
void | barVisible () |
| Signal that is sent when context button bar is visible.
|
void | positionChangeRequested () |
| This signal is called when context button bar needs to be repositioned.
|
void | toggleState () |
| Signal that is sent when the context button bar state must be changed.
|
Public Member Functions |
| PanelContextButtonBar (QWidget *parent=0) |
| Constructor.
|
void | hideContextButtonBar () |
| Hides the context button bar.
|
bool | isBarVisible () const |
| Returns the current state of the context button bar.
|
void | move (int x, int y) |
| Moves the context button bar to desired position.
|
void | setContextButtons (QWidget *contextButtons) |
| Sets the context buttons to the context button bar.
|
void | showContextButtonBar () |
| Shows the context button bar.
|
Protected Member Functions |
void | paintEvent (QPaintEvent *event) |
| Draws the bar.
|
Private Slots |
void | contextButtonBarStateChanged () |
| Internal slot used to set the context button bar state.
|
Private Attributes |
bool | m_visible |
| Current state of the context button bar.
|
QPixmap | m_barTile |
| Pixmap for button bar.
|
QPixmap | m_barTop |
| Pixmap for button bar top.
|
QRect | m_barRect |
| Rect for the button bar.
|
QState * | m_stateHidden |
| State of the hidden context button bar.
|
QState * | m_stateVisible |
| State of the visible context button bar.
|
QWidget * | m_contextButtons |
| Widget for context buttons.
|
Detailed Description
Base class for panel context button bar.
- Author:
- Pekka Nissinen - pekka.nissinen (at) ixonos.com
Constructor & Destructor Documentation
PanelContextButtonBar::PanelContextButtonBar |
( |
QWidget * |
parent = 0 |
) |
|
Member Function Documentation
bool PanelContextButtonBar::isBarVisible |
( |
|
) |
const |
Returns the current state of the context button bar.
- Returns:
- Current state
void PanelContextButtonBar::move |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
Moves the context button bar to desired position.
- Parameters:
-
| x | Horizontal position |
| y | Vertical position |
void PanelContextButtonBar::paintEvent |
( |
QPaintEvent * |
event |
) |
[protected] |
Draws the bar.
- Parameters:
-
void PanelContextButtonBar::setContextButtons |
( |
QWidget * |
contextButtons |
) |
|
Sets the context buttons to the context button bar.
- Parameters:
-
| contextButtons | Pointer to context buttons |
The documentation for this class was generated from the following files: