AddEdgeAction Class Reference

The 'Add Node' Action This action holds the 'Add Node' icon and tooltips, and when it's executed, it will place a new node on the QGraphicsView that holds all the items. More...

#include <AddEdge.h>

Inheritance diagram for AddEdgeAction:
AbstractAction

List of all members.

Public Slots

void executePress (QPointF pos)
void executeMove (QPointF pos)
void executeRelease (QPointF pos)

Signals

void addEdge (Node *from, Node *to)

Public Member Functions

 AddEdgeAction (GraphScene *scene, QObject *parent=0)
void setActiveGraph (Graph *graph)
 ~AddEdgeAction ()

Detailed Description

The 'Add Node' Action This action holds the 'Add Node' icon and tooltips, and when it's executed, it will place a new node on the QGraphicsView that holds all the items.

Definition at line 37 of file AddEdge.h.


Constructor & Destructor Documentation

AddEdgeAction::AddEdgeAction ( GraphScene scene,
QObject parent = 0 
) [explicit]

Default constructor

Parameters:
parent the Parent QOBject that will hold this action. ( remove it in the future, maybe? )

Definition at line 32 of file AddEdge.cpp.

AddEdgeAction::~AddEdgeAction (  ) 

Default Destructor

Definition at line 46 of file AddEdge.cpp.


Member Function Documentation

void AddEdgeAction::addEdge ( Node from,
Node to 
) [signal]
void AddEdgeAction::executeMove ( QPointF  pos  )  [virtual, slot]

will be executed when the mouse moves.

Parameters:
pos the current position of the cursor.

Reimplemented from AbstractAction.

Definition at line 67 of file AddEdge.cpp.

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

will be executed when the mouse press a button.

Parameters:
pos the position onscreen of the click.

Reimplemented from AbstractAction.

Definition at line 51 of file AddEdge.cpp.

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

will be executed when the mouse releases a click

Parameters:
pos the position of the cursor.

Reimplemented from AbstractAction.

Definition at line 83 of file AddEdge.cpp.

void AddEdgeAction::setActiveGraph ( Graph graph  )  [virtual]

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

Reimplemented from AbstractAction.

Definition at line 107 of file AddEdge.cpp.


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