OpenMW
|
Tool base class. More...
#include <scenetool.hpp>
Public Member Functions | |
SceneTool (SceneToolbar *parent, Type type=Type_TopMode) | |
virtual void | showPanel (const QPoint &position)=0 |
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 |
Protected Member Functions | |
void | mouseReleaseEvent (QMouseEvent *event) |
Protected Member Functions inherited from CSVWidget::PushButton | |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
Private Slots | |
void | openRequest () |
Additional Inherited Members | |
Public Types inherited from CSVWidget::PushButton | |
enum | Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle } |
Tool base class.
CSVWidget::SceneTool::SceneTool | ( | SceneToolbar * | parent, |
Type | type = Type_TopMode |
||
) |
|
virtual |
This function will only called for buttons of type Type_TopAction. The default implementation is empty.
Reimplemented in CSVWidget::SceneToolRun.
|
protectedvirtual |
|
privateslot |
|
pure virtual |
Implemented in CSVWidget::SceneToolMode, CSVWidget::SceneToolToggle2, CSVWidget::SceneToolToggle, and CSVWidget::SceneToolRun.