AddNodeAction 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 <AddNode.h>

Inheritance diagram for AddNodeAction:
AbstractAction

List of all members.

Public Slots

void executePress (QPointF pos)

Signals

void addNode (QString name, QPointF pos)

Public Member Functions

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

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 33 of file AddNode.h.


Constructor & Destructor Documentation

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

Default constructor

Parameters:
type the Type for 'Add Node' action. must be unique.
Parameters:
parent the Parent QOBject that will hold this action. ( remove it in the future, maybe? )

Definition at line 30 of file AddNode.cpp.

AddNodeAction::~AddNodeAction (  ) 

Default Destructor

Definition at line 39 of file AddNode.cpp.


Member Function Documentation

void AddNodeAction::addNode ( QString  name,
QPointF  pos 
) [signal]
void AddNodeAction::executePress ( QPointF  pos  )  [virtual, slot]

this will be executed if type is the same as this action's type.

Parameters:
pos the position on the screen that the new node will be placed.

Reimplemented from AbstractAction.

Definition at line 44 of file AddNode.cpp.

void AddNodeAction::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 62 of file AddNode.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