rocs/VisualEditor
AddDataAction Class Reference
#include <AddDataAction.h>
Inheritance diagram for AddDataAction:
Public Slots | |
bool | executePress (QPointF pos) |
bool | executePress () |
Public Slots inherited from AbstractAction | |
bool | eventFilter (QObject *watched, QEvent *event) |
virtual bool | executeDoubleClick (QPointF pos) |
virtual bool | executeKeyPress (QKeyEvent *keyEvent) |
virtual bool | executeKeyRelease (QKeyEvent *keyEvent) |
virtual bool | executeMove (QPointF pos) |
virtual bool | executePress (QPointF pos) |
virtual bool | executeRelease (QPointF pos) |
virtual bool | executeWheelEvent (QGraphicsSceneWheelEvent *wEvent) |
void | sendExecuteBit () |
Signals | |
void | addNode (QString name, QPointF pos) |
Public Member Functions | |
AddDataAction (GraphScene *scene, QObject *parent=0) | |
~AddDataAction () | |
void | setActiveGraph (DataStructurePtr graph) |
void | setAddPosition (QPointF position) |
Public Member Functions inherited from AbstractAction | |
AbstractAction (GraphScene *scene, QObject *parent) | |
const QString & | name () const |
Additional Inherited Members | |
Protected Attributes inherited from AbstractAction | |
GraphScene * | _graphScene |
QString | _name |
Detailed Description
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 AddDataAction.h.
Constructor & Destructor Documentation
|
explicit |
Default constructor
- Parameters
-
type the Type for 'Add Node' action. must be unique. parent the Parent QOBject that will hold this action. ( remove it in the future, maybe? )
Definition at line 30 of file AddDataAction.cpp.
AddDataAction::~AddDataAction | ( | ) |
Default Destructor
Definition at line 38 of file AddDataAction.cpp.
Member Function Documentation
|
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.
Definition at line 42 of file AddDataAction.cpp.
|
slot |
Definition at line 63 of file AddDataAction.cpp.
void AddDataAction::setActiveGraph | ( | DataStructurePtr | graph | ) |
void AddDataAction::setAddPosition | ( | QPointF | position | ) |
Definition at line 57 of file AddDataAction.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.