OpenMW
|
Specialist PushButton of Type_Mode for use in SceneToolMode. More...
#include <modebutton.hpp>
Public Member Functions | |
ModeButton (const QIcon &icon, const QString &tooltip="", QWidget *parent=0) | |
virtual void | activate (SceneToolbar *toolbar) |
Default-Implementation: do nothing. More... | |
virtual void | deactivate (SceneToolbar *toolbar) |
Default-Implementation: do nothing. More... | |
virtual bool | createContextMenu (QMenu *menu) |
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 |
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::PushButton | |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
Specialist PushButton of Type_Mode for use in SceneToolMode.
CSVWidget::ModeButton::ModeButton | ( | const QIcon & | icon, |
const QString & | tooltip = "" , |
||
QWidget * | parent = 0 |
||
) |
|
virtual |
Default-Implementation: do nothing.
Reimplemented in CSVRender::InstanceMode, CSVRender::EditMode, CSVRender::OrbitCameraMode, and CSVRender::PathgridMode.
Add context menu items to menu. Default-implementation: return false
Reimplemented in CSVRender::OrbitCameraMode.
|
virtual |
Default-Implementation: do nothing.
Reimplemented in CSVRender::InstanceMode, CSVRender::OrbitCameraMode, and CSVRender::PathgridMode.