• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/VisualEditor

Public Slots | Signals | Public Member Functions | List of all members
AddDataHandAction Class Reference

#include <AddDataHandAction.h>

Inheritance diagram for AddDataHandAction:
Inheritance graph
[legend]

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

AddDataHandAction::AddDataHandAction ( GraphScene *  scene,
QObject *  parent = 0 
)
explicit

Default constructor Creates add-node action that adds data elements of default.

See also
DataType 0.
Parameters
sceneis the graph scene at which data elements shall be added
parentthe Parent QObject that will hold this action.

Definition at line 31 of file AddDataHandAction.cpp.

AddDataHandAction::AddDataHandAction ( GraphScene *  scene,
DataTypePtr  dataType,
QObject *  parent = 0 
)
explicit

Default constructor Creates add-node action that adds nodes of default.

See also
DataType 0.
Parameters
sceneis the graph scene at which data elements shall be added
dataTypethe type of that new data elements shall be created
parentthe 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

void AddDataHandAction::addNode ( QString  name,
QPointF  pos 
)
signal
bool AddDataHandAction::executePress ( QPointF  pos)
slot

This method creates data element for previously specified type at position pos.

Parameters
posthe 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
dataTypeis the dataType associated to the action

Definition at line 55 of file AddDataHandAction.cpp.

void AddDataHandAction::updateIcon ( )
slot

Definition at line 83 of file AddDataHandAction.cpp.


The documentation for this class was generated from the following files:
  • AddDataHandAction.h
  • AddDataHandAction.cpp
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

KDE's Doxygen guidelines are available online.

rocs/VisualEditor

Skip menu "rocs/VisualEditor"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal