• 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
AddDataAction Class Reference

#include <AddDataAction.h>

Inheritance diagram for AddDataAction:
Inheritance graph
[legend]

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

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

Default constructor

Parameters
typethe Type for 'Add Node' action. must be unique.
parentthe 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

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

this will be executed if type is the same as this action's type.

Parameters
posthe position on the screen that the new node will be placed.

Definition at line 42 of file AddDataAction.cpp.

bool AddDataAction::executePress ( )
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:
  • AddDataAction.h
  • AddDataAction.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