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>
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) |
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.
AddNodeAction::AddNodeAction | ( | GraphScene * | scene, | |
QObject * | parent = 0 | |||
) | [explicit] |
Default constructor
type | the Type for 'Add Node' action. must be unique.
|
Definition at line 30 of file AddNode.cpp.
AddNodeAction::~AddNodeAction | ( | ) |
Default Destructor
Definition at line 39 of file AddNode.cpp.
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.
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.