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>
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 |
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.
AddTypedNodeAction::AddTypedNodeAction | ( | GraphScene * | scene, | |
QObject * | parent = 0 | |||
) | [explicit] |
Default constructor
type | the Type for 'Add Typed Node' action. must be unique.
|
Definition at line 30 of file AddTypedNode.cpp.
AddTypedNodeAction::~AddTypedNodeAction | ( | ) |
Default Destructor
Definition at line 40 of file AddTypedNode.cpp.
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.
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.
QString AddTypedNodeAction::_type [protected] |
Definition at line 67 of file AddTypedNode.h.