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

#include <pathgridmode.hpp>

Inheritance diagram for CSVRender::PathgridMode:
Collaboration diagram for CSVRender::PathgridMode:

Public Member Functions

 PathgridMode (WorldspaceWidget *worldspace, QWidget *parent=0)
 
virtual void activate (CSVWidget::SceneToolbar *toolbar)
 Default-Implementation: do nothing. More...
 
virtual void deactivate (CSVWidget::SceneToolbar *toolbar)
 Default-Implementation: do nothing. 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 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 ()
 
- Public Member Functions inherited from CSVRender::EditMode
 EditMode (WorldspaceWidget *worldspaceWidget, const QIcon &icon, unsigned int mask, const QString &tooltip="", QWidget *parent=0)
 
unsigned int getInteractionMask () const
 
virtual void setEditLock (bool locked)
 Default-implementation: Ignored. More...
 
virtual bool primarySelectStartDrag (const QPoint &pos)
 
virtual bool secondarySelectStartDrag (const QPoint &pos)
 
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 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
 

Private Types

enum  DragMode { DragMode_None, DragMode_Move, DragMode_Edge }
 

Private Member Functions

QString getTooltip ()
 

Private Attributes

DragMode mDragMode
 
std::string mLastId
 
std::string mEdgeId
 
unsigned short mFromNode
 
PathgridSelectionModemSelectionMode
 

Additional Inherited Members

- Public Types inherited from CSVWidget::PushButton
enum  Type { Type_TopMode, Type_TopAction, Type_Mode, Type_Toggle }
 
- Protected Member Functions inherited from CSVRender::EditMode
WorldspaceWidgetgetWorldspaceWidget ()
 
- Protected Member Functions inherited from CSVWidget::PushButton
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 

Member Enumeration Documentation

Enumerator
DragMode_None 
DragMode_Move 
DragMode_Edge 

Constructor & Destructor Documentation

CSVRender::PathgridMode::PathgridMode ( WorldspaceWidget worldspace,
QWidget parent = 0 
)

Member Function Documentation

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

Default-Implementation: do nothing.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

void CSVRender::PathgridMode::deactivate ( CSVWidget::SceneToolbar toolbar)
virtual

Default-Implementation: do nothing.

Reimplemented from CSVWidget::ModeButton.

Here is the call graph for this function:

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

Default-implementation: ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

void CSVRender::PathgridMode::dragAborted ( )
virtual
Note
dragAborted will not be called, if the drag is aborted via changing editing mode

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

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

Default-implementation: ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

QString CSVRender::PathgridMode::getTooltip ( )
private
void CSVRender::PathgridMode::primaryEditPressed ( const WorldspaceHitResult hit)
virtual

Default-implementation: Ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

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

Default-implementation: ignore and return false

Returns
Drag accepted?

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

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

Default-implementation: Ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Default-implementation: Ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

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

Default-implementation: ignore and return false

Returns
Drag accepted?

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

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

Default-implementation: Ignored.

Reimplemented from CSVRender::EditMode.

Here is the call graph for this function:

Member Data Documentation

DragMode CSVRender::PathgridMode::mDragMode
private
std::string CSVRender::PathgridMode::mEdgeId
private
unsigned short CSVRender::PathgridMode::mFromNode
private
std::string CSVRender::PathgridMode::mLastId
private
PathgridSelectionMode* CSVRender::PathgridMode::mSelectionMode
private

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