OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
CSVWidget::ModeButton Class Reference

Specialist PushButton of Type_Mode for use in SceneToolMode. More...

#include <modebutton.hpp>

Inheritance diagram for CSVWidget::ModeButton:
Collaboration diagram for CSVWidget::ModeButton:

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)
 

Detailed Description

Specialist PushButton of Type_Mode for use in SceneToolMode.

Constructor & Destructor Documentation

CSVWidget::ModeButton::ModeButton ( const QIcon &  icon,
const QString &  tooltip = "",
QWidget parent = 0 
)

Member Function Documentation

void CSVWidget::ModeButton::activate ( SceneToolbar toolbar)
virtual

Default-Implementation: do nothing.

Reimplemented in CSVRender::InstanceMode, CSVRender::EditMode, CSVRender::OrbitCameraMode, and CSVRender::PathgridMode.

bool CSVWidget::ModeButton::createContextMenu ( QMenu menu)
virtual

Add context menu items to menu. Default-implementation: return false

Attention
menu can be a 0-pointer
Returns
Have there been any menu items to be added (if menu is 0 and there items to be added, the function must return true anyway.

Reimplemented in CSVRender::OrbitCameraMode.

void CSVWidget::ModeButton::deactivate ( SceneToolbar toolbar)
virtual

Default-Implementation: do nothing.

Reimplemented in CSVRender::InstanceMode, CSVRender::OrbitCameraMode, and CSVRender::PathgridMode.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: