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 <Select.h>
Public Slots | |
void | executePress (QPointF pos) |
void | executeMove (QPointF pos) |
void | executeRelease (QPointF pos) |
Signals | |
void | ItemSelectedChanged (QGraphicsItem *o) |
Public Member Functions | |
SelectAction (GraphScene *scene, QObject *parent=0) | |
~SelectAction () |
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 38 of file Select.h.
SelectAction::SelectAction | ( | 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 34 of file Select.cpp.
SelectAction::~SelectAction | ( | ) |
Default Destructor
Definition at line 44 of file Select.cpp.
void SelectAction::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 57 of file Select.cpp.
void SelectAction::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 46 of file Select.cpp.
void SelectAction::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 80 of file Select.cpp.
void SelectAction::ItemSelectedChanged | ( | QGraphicsItem * | o | ) | [signal] |
signal sended when the selection changes.