rocs/VisualEditor
#include <AddDataHandAction.h>
Public Slots | |
bool | executePress (QPointF pos) |
void | updateIcon () |
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 | |
AddDataHandAction (GraphScene *scene, QObject *parent=0) | |
AddDataHandAction (GraphScene *scene, DataTypePtr dataType, QObject *parent=0) | |
~AddDataHandAction () | |
void | setDataType (DataTypePtr dataType) |
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 Data' Action This action holds the 'Add Data' icon and tooltips, and when it's executed, it will place a new data element on the QGraphicsView that holds all the items.
Definition at line 34 of file AddDataHandAction.h.
Constructor & Destructor Documentation
|
explicit |
Default constructor Creates add-node action that adds data elements of default.
- See also
- DataType 0.
- Parameters
-
scene is the graph scene at which data elements shall be added parent the Parent QObject that will hold this action.
Definition at line 31 of file AddDataHandAction.cpp.
|
explicit |
Default constructor Creates add-node action that adds nodes of default.
- See also
- DataType 0.
- Parameters
-
scene is the graph scene at which data elements shall be added dataType the type of that new data elements shall be created parent the Parent QOBject that will hold this action.
Definition at line 41 of file AddDataHandAction.cpp.
AddDataHandAction::~AddDataHandAction | ( | ) |
Definition at line 51 of file AddDataHandAction.cpp.
Member Function Documentation
|
slot |
This method creates data element for previously specified type at position pos
.
- Parameters
-
pos the position on the screen that the new data element will be placed
- Returns
- true if the data element could be added, otherwise false
Definition at line 61 of file AddDataHandAction.cpp.
void AddDataHandAction::setDataType | ( | DataTypePtr | dataType | ) |
Set.
- See also
- DataType of which data elements are created.
- Parameters
-
dataType is the dataType associated to the action
Definition at line 55 of file AddDataHandAction.cpp.
|
slot |
Definition at line 83 of file AddDataHandAction.cpp.
The documentation for this class was generated from the following files:
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.