OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CSVRender::EditMode Class Reference

#include <editmode.hpp>

Inheritance diagram for CSVRender::EditMode:
Collaboration diagram for CSVRender::EditMode:

Public Member Functions

 EditMode (WorldspaceWidget *worldspaceWidget, const QIcon &icon, unsigned int mask, const QString &tooltip="", QWidget *parent=0)
 
unsigned int getInteractionMask () const
 
virtual void activate (CSVWidget::SceneToolbar *toolbar)
 Default-Implementation: do nothing. More...
 
virtual void setEditLock (bool locked)
 Default-implementation: Ignored. More...
 
virtual void primaryEditPressed (const WorldspaceHitResult &hit)
 Default-implementation: Ignored. More...
 
virtual void secondaryEditPressed (const WorldspaceHitResult &hit)
 Default-implementation: Ignored. More...
 
virtual void primarySelectPressed (const WorldspaceHitResult &hit)
 Default-implementation: Ignored. More...
 
virtual void secondarySelectPressed (const WorldspaceHitResult &hit)
 Default-implementation: Ignored. More...
 
virtual bool primaryEditStartDrag (const QPoint &pos)
 
virtual bool secondaryEditStartDrag (const QPoint &pos)
 
virtual bool primarySelectStartDrag (const QPoint &pos)
 
virtual bool secondarySelectStartDrag (const QPoint &pos)
 
virtual void drag (const QPoint &pos, int diffX, int diffY, double speedFactor)
 Default-implementation: ignored. More...
 
virtual void dragCompleted (const QPoint &pos)
 Default-implementation: ignored. More...
 
virtual void dragAborted ()
 
virtual void dragWheel (int diff, double speedFactor)
 Default-implementation: ignored. More...
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 Default-implementation: ignored. More...
 
virtual void dropEvent (QDropEvent *event)
 Default-implementation: ignored. More...
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 Default-implementation: ignored. More...
 
virtual int getSubMode () const
 Default: return -1. More...
 
- Public Member Functions inherited from CSVWidget::ModeButton
 ModeButton (const QIcon &icon, const QString &tooltip="", QWidget *parent=0)
 
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
 

Protected Member Functions

WorldspaceWidgetgetWorldspaceWidget ()
 
- Protected Member Functions inherited from CSVWidget::PushButton
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 

Private Attributes

WorldspaceWidgetmWorldspaceWidget
 
unsigned int mMask
 

Additional Inherited Members

- Public Types inherited from CSVWidget::PushButton
enum  Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle }
 

Constructor & Destructor Documentation

CSVRender::EditMode::EditMode ( WorldspaceWidget worldspaceWidget,
const QIcon &  icon,
unsigned int  mask,
const QString &  tooltip = "",
QWidget parent = 0 
)

Member Function Documentation

void CSVRender::EditMode::activate ( CSVWidget::SceneToolbar toolbar)
virtual

Default-Implementation: do nothing.

Reimplemented from CSVWidget::ModeButton.

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

Here is the caller graph for this function:

void CSVRender::EditMode::drag ( const QPoint &  pos,
int  diffX,
int  diffY,
double  speedFactor 
)
virtual

Default-implementation: ignored.

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

Here is the caller graph for this function:

void CSVRender::EditMode::dragAborted ( )
virtual

Default-implementation: ignored

Note
dragAborted will not be called, if the drag is aborted via changing editing mode

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

Here is the caller graph for this function:

void CSVRender::EditMode::dragCompleted ( const QPoint &  pos)
virtual

Default-implementation: ignored.

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

Here is the caller graph for this function:

void CSVRender::EditMode::dragEnterEvent ( QDragEnterEvent *  event)
virtual

Default-implementation: ignored.

Reimplemented in CSVRender::InstanceMode.

void CSVRender::EditMode::dragMoveEvent ( QDragMoveEvent *  event)
virtual

Default-implementation: ignored.

void CSVRender::EditMode::dragWheel ( int  diff,
double  speedFactor 
)
virtual

Default-implementation: ignored.

Reimplemented in CSVRender::InstanceMode.

Here is the caller graph for this function:

void CSVRender::EditMode::dropEvent ( QDropEvent *  event)
virtual

Default-implementation: ignored.

Reimplemented in CSVRender::InstanceMode.

unsigned int CSVRender::EditMode::getInteractionMask ( ) const

Here is the caller graph for this function:

int CSVRender::EditMode::getSubMode ( ) const
virtual

Default: return -1.

Reimplemented in CSVRender::InstanceMode.

Here is the caller graph for this function:

CSVRender::WorldspaceWidget & CSVRender::EditMode::getWorldspaceWidget ( )
protected

Here is the caller graph for this function:

void CSVRender::EditMode::primaryEditPressed ( const WorldspaceHitResult hit)
virtual

Default-implementation: Ignored.

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

Here is the caller graph for this function:

bool CSVRender::EditMode::primaryEditStartDrag ( const QPoint &  pos)
virtual

Default-implementation: ignore and return false

Returns
Drag accepted?

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

Here is the caller graph for this function:

void CSVRender::EditMode::primarySelectPressed ( const WorldspaceHitResult hit)
virtual

Default-implementation: Ignored.

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

Here is the caller graph for this function:

bool CSVRender::EditMode::primarySelectStartDrag ( const QPoint &  pos)
virtual

Default-implementation: ignore and return false

Returns
Drag accepted?

Here is the caller graph for this function:

void CSVRender::EditMode::secondaryEditPressed ( const WorldspaceHitResult hit)
virtual

Default-implementation: Ignored.

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

Here is the caller graph for this function:

bool CSVRender::EditMode::secondaryEditStartDrag ( const QPoint &  pos)
virtual

Default-implementation: ignore and return false

Returns
Drag accepted?

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

Here is the caller graph for this function:

void CSVRender::EditMode::secondarySelectPressed ( const WorldspaceHitResult hit)
virtual

Default-implementation: Ignored.

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

Here is the caller graph for this function:

bool CSVRender::EditMode::secondarySelectStartDrag ( const QPoint &  pos)
virtual

Default-implementation: ignore and return false

Returns
Drag accepted?

Here is the caller graph for this function:

void CSVRender::EditMode::setEditLock ( bool  locked)
virtual

Default-implementation: Ignored.

Reimplemented in CSVRender::InstanceMode.

Member Data Documentation

unsigned int CSVRender::EditMode::mMask
private
WorldspaceWidget* CSVRender::EditMode::mWorldspaceWidget
private

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