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>
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 () | |
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.
| AddEdgeAction::AddEdgeAction | ( | GraphScene * | scene, | |
| QObject * | parent = 0 | |||
| ) | [explicit] |
Default constructor
| 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.
| void AddEdgeAction::executeMove | ( | QPointF | pos | ) | [virtual, slot] |
will be executed when the mouse moves.
| 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.
| 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
| 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.
1.6.3