|
OpenMW
|
Multi-Toggle tool. More...
#include <scenetooltoggle2.hpp>
Classes | |
| struct | ButtonDesc |
Signals | |
| void | selectionChanged () |
Public Member Functions | |
| SceneToolToggle2 (SceneToolbar *parent, const QString &toolTip, const std::string &compositeIcon, const std::string &singleIcon) | |
| virtual void | showPanel (const QPoint &position) |
| void | addButton (unsigned int buttonId, unsigned int mask, const QString &name, const QString &tooltip="", bool disabled=false) |
| unsigned int | getSelectionMask () const |
| void | setSelectionMask (unsigned int selection) |
Public Member Functions inherited from CSVWidget::SceneTool | |
| SceneTool (SceneToolbar *parent, Type type=Type_TopMode) | |
| virtual void | activate () |
Public Member Functions inherited from CSVWidget::PushButton | |
| PushButton (const QIcon &icon, Type type, const QString &tooltip="", QWidget *parent=0) | |
| PushButton (Type type, const QString &tooltip="", QWidget *parent=0) | |
| bool | hasKeepOpen () const |
| QString | getBaseToolTip () const |
| Return tooltip used at construction (without any button-specific modifications) More... | |
| Type | getType () const |
Private Slots | |
| void | selected () |
Private Member Functions | |
| void | adjustToolTip () |
| void | adjustIcon () |
Private Attributes | |
| std::string | mCompositeIcon |
| std::string | mSingleIcon |
| QWidget * | mPanel |
| QHBoxLayout * | mLayout |
| std::map< PushButton *, ButtonDesc > | mButtons |
| int | mButtonSize |
| int | mIconSize |
| QString | mToolTip |
| PushButton * | mFirst |
Additional Inherited Members | |
Public Types inherited from CSVWidget::PushButton | |
| enum | Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle } |
Protected Member Functions inherited from CSVWidget::SceneTool | |
| void | mouseReleaseEvent (QMouseEvent *event) |
Protected Member Functions inherited from CSVWidget::PushButton | |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
Multi-Toggle tool.
Top level button is using predefined icons instead building a composite icon.
| CSVWidget::SceneToolToggle2::SceneToolToggle2 | ( | SceneToolbar * | parent, |
| const QString & | toolTip, | ||
| const std::string & | compositeIcon, | ||
| const std::string & | singleIcon | ||
| ) |
The top level icon is compositeIcon + sum of bitpatterns for active buttons (in decimal)
The icon for individual toggle buttons is signleIcon + bitmask for button (in decimal)
| void CSVWidget::SceneToolToggle2::addButton | ( | unsigned int | buttonId, |
| unsigned int | mask, | ||
| const QString & | name, | ||
| const QString & | tooltip = "", |
||
| bool | disabled = false |
||
| ) |
| buttonId | used to compose the icon filename |
| mask | used for the reported getSelectionMask() / setSelectionMask() |
|
private |
|
private |
| unsigned int CSVWidget::SceneToolToggle2::getSelectionMask | ( | ) | const |
|
privateslot |
|
signal |
| void CSVWidget::SceneToolToggle2::setSelectionMask | ( | unsigned int | selection | ) |
| or'ed | button masks. buttons that do not exist will be ignored. |
|
virtual |
Implements CSVWidget::SceneTool.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6