AddTypedNodeAction Class Reference

The 'Add Typed Node' Action This action holds the 'Add Typed 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 <AddTypedNode.h>

Inheritance diagram for AddTypedNodeAction:
AbstractAction

List of all members.

Public Slots

void executePress (QPointF pos)
void widgetTypeChanged (QString type)

Signals

void addNode (QString name, QPointF pos, QString type)
void iAmDisappoint ()

Public Member Functions

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

Protected Attributes

QString _type

Detailed Description

The 'Add Typed Node' Action This action holds the 'Add Typed 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 AddTypedNode.h.


Constructor & Destructor Documentation

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

Default constructor

Parameters:
type the Type for 'Add Typed 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 AddTypedNode.cpp.

AddTypedNodeAction::~AddTypedNodeAction (  ) 

Default Destructor

Definition at line 40 of file AddTypedNode.cpp.


Member Function Documentation

void AddTypedNodeAction::addNode ( QString  name,
QPointF  pos,
QString  type 
) [signal]
void AddTypedNodeAction::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 45 of file AddTypedNode.cpp.

void AddTypedNodeAction::iAmDisappoint (  )  [signal]
void AddTypedNodeAction::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 75 of file AddTypedNode.cpp.

void AddTypedNodeAction::widgetTypeChanged ( QString  type  )  [slot]

Definition at line 70 of file AddTypedNode.cpp.


Member Data Documentation

QString AddTypedNodeAction::_type [protected]

Definition at line 67 of file AddTypedNode.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