AbstractAction Class Reference

the base class for custom actions. This class provides the basic functionality for all custom actions Used on the pallete bar that will interact directly with the scene. More...

#include <AbstractAction.h>

Inheritance diagram for AbstractAction:
AddEdgeAction AddNodeAction AddTypedNodeAction DeleteAction MoveNodeAction SelectAction

List of all members.

Public Slots

virtual void setActiveGraph (Graph *graph)
virtual void executePress (QPointF pos)
virtual void executeMove (QPointF pos)
virtual void executeRelease (QPointF pos)
virtual void executeKeyPress (QKeyEvent *keyEvent)
virtual void executeKeyRelease (QKeyEvent *keyEvent)
void sendExecuteBit ()

Public Member Functions

 AbstractAction (GraphScene *scene, QObject *parent)
virtual void setActiveGraphDocument (GraphDocument *graphDocument)
const QString & name () const

Protected Attributes

GraphDocument_graphDocument
Graph_graph
GraphScene_graphScene
QString _name

Detailed Description

the base class for custom actions. This class provides the basic functionality for all custom actions Used on the pallete bar that will interact directly with the scene.

Definition at line 36 of file AbstractAction.h.


Constructor & Destructor Documentation

AbstractAction::AbstractAction ( GraphScene scene,
QObject parent 
)

Default Constructor scene the GraphicsScene that this action will interact. parent the MainWindow

Definition at line 28 of file AbstractAction.cpp.


Member Function Documentation

void AbstractAction::executeKeyPress ( QKeyEvent *  keyEvent  )  [virtual, slot]

virtual, executed when a keyboard key is pressed on the scene. keyEvent the key event from the scene.

Definition at line 62 of file AbstractAction.cpp.

void AbstractAction::executeKeyRelease ( QKeyEvent *  keyEvent  )  [virtual, slot]

virtual, executed when a keyboard key is released on the scene keyEvent the key event from the scene.

Reimplemented in DeleteAction.

Definition at line 63 of file AbstractAction.cpp.

void AbstractAction::executeMove ( QPointF  pos  )  [virtual, slot]

Virtual, executed when a mouse move on the scene. pos the position on screen that the mouse is now.

Reimplemented in AddEdgeAction, MoveNodeAction, and SelectAction.

Definition at line 60 of file AbstractAction.cpp.

void AbstractAction::executePress ( QPointF  pos  )  [virtual, slot]

Virtual, executed when a mouse press occours on the scene. pos the position on screen that the execution will take part.

Reimplemented in AddEdgeAction, AddNodeAction, AddTypedNodeAction, DeleteAction, MoveNodeAction, and SelectAction.

Definition at line 59 of file AbstractAction.cpp.

void AbstractAction::executeRelease ( QPointF  pos  )  [virtual, slot]

virtual, executed when a mous click is released on the scene. pos the position where the release occourred.

Reimplemented in AddEdgeAction, MoveNodeAction, and SelectAction.

Definition at line 61 of file AbstractAction.cpp.

const QString & AbstractAction::name (  )  const

Definition at line 55 of file AbstractAction.cpp.

void AbstractAction::sendExecuteBit (  )  [slot]

sends this action to be the executed thing with mouse interaction on the GraphicsView

Definition at line 50 of file AbstractAction.cpp.

void AbstractAction::setActiveGraph ( Graph graph  )  [virtual, slot]

Atualize the Active Graph that this action will work on graph the pointer to the active Graph

Reimplemented in AddEdgeAction, AddNodeAction, and AddTypedNodeAction.

Definition at line 45 of file AbstractAction.cpp.

void AbstractAction::setActiveGraphDocument ( GraphDocument graphDocument  )  [virtual]

Atualize the Graph Document that this action will work on graphDocument the pointer to the active GraphDocument

Definition at line 40 of file AbstractAction.cpp.


Member Data Documentation

pointer to the active graph

Definition at line 94 of file AbstractAction.h.

pointer to the active graph document

Definition at line 91 of file AbstractAction.h.

pointer to the GraphicsScene with the drawing

Reimplemented in MoveNodeAction.

Definition at line 97 of file AbstractAction.h.

QString AbstractAction::_name [protected]

Definition at line 99 of file AbstractAction.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:41 2010 for Gluon by  doxygen 1.6.3