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

rocs/RocsCore

Public Slots | Signals | Public Member Functions | Static Public Member Functions | Properties | List of all members
RootedTreeStructure Class Reference

#include <RootedTreeStructure.h>

Inheritance diagram for RootedTreeStructure:
Inheritance graph
[legend]

Public Slots

QScriptValue add_data (const QString &name)
 
QScriptValue root_node () const
 
void set_root_node (RootedTreeNode *node)
 
void setShowAllPointers (const bool v)
 
- Public Slots inherited from DataStructure
void add_property (const QString &name, const QVariant &value)
 
virtual DataList addDataList (DataList dataList)
 
virtual DataList addDataList (QList< QPair< QString, QPointF > > dataList, int dataType)
 
void addDynamicProperty (const QString &property, const QVariant &value=QVariant(0))
 
virtual GroupPtr addGroup (const QString &name)
 
virtual DataPtr createData (const QString &name, const QPointF &point, int dataType)
 
DataPtr getData (int uniqueIdentifier)
 
virtual void remove (DataPtr data)
 
virtual void remove (PointerPtr pointer)
 
virtual void remove (GroupPtr group)
 
void remove ()
 
void remove_property (const QString &name)
 
void removeDynamicProperty (const QString &property)
 
void renameDynamicProperty (const QString &oldName, const QString &newName)
 
void setName (const QString &s)
 

Signals

void showPointersChanged (const bool)
 
- Signals inherited from DataStructure
void changed ()
 
void dataCreated (DataPtr n)
 
void dataPositionChanged (const QPointF)
 
void nameChanged (const QString &name)
 
void pointerCreated (PointerPtr e)
 
void scriptError (const QString &message)
 

Public Member Functions

 RootedTreeStructure (Document *parent=0)
 
 ~RootedTreeStructure ()
 
DataPtr createData (const QString &name, int dataType=0)
 
PointerPtr createPointer (DataPtr from, DataPtr to, int dataType=0)
 
void importStructure (DataStructurePtr other)
 
bool isShowingAllPointers () const
 
DataPtr rootNode () const
 
void setEngine (QScriptEngine *engine)
 
- Public Member Functions inherited from DataStructure
virtual void cleanUpBeforeConvert ()
 
const DataList dataList (int dataType) const
 
DataList dataListAll () const
 
Document * document () const
 
QScriptEngine * engine () const
 
virtual DataStructurePtr getDataStructure () const
 
const QList< GroupPtr > groups () const
 
bool isDataVisible (int dataType) const
 
bool isPointerVisible (int pointerType) const
 
QString name () const
 
virtual QMap< QString, QString > pluginProperties () const
 
PointerList pointerListAll () const
 
const PointerList pointers (int pointerType) const
 
bool readOnly () const
 
QScriptValue scriptValue () const
 
virtual void setPluginProperty (const QString &, const QString &)
 
void setReadOnly (bool r)
 
void updateData (DataPtr data)
 
void updatePointer (PointerPtr pointer)
 

Static Public Member Functions

static DataStructurePtr create (Document *parent)
 
static DataStructurePtr create (DataStructurePtr other, Document *parent)
 
- Static Public Member Functions inherited from DataStructure
static DataStructurePtr create (Document *parent=0)
 
static DataStructurePtr create (DataStructurePtr other, Document *parent=0)
 

Properties

RootedTreeNode * m_rootNode
 
bool m_showPointers
 
bool ShowAllPointers
 
- Properties inherited from DataStructure
QString name
 

Additional Inherited Members

- Protected Member Functions inherited from DataStructure
 DataStructure (Document *parent=0)
 
virtual ~DataStructure ()
 
DataPtr addData (DataPtr data)
 
PointerPtr addPointer (PointerPtr pointer)
 
int generateUniqueIdentifier ()
 
void initialize ()
 
- Static Protected Member Functions inherited from DataStructure
template<typename T >
static DataStructurePtr create (Document *parent=0)
 
template<typename T >
static DataStructurePtr create (DataStructurePtr other, Document *parent=0)
 

Detailed Description

Definition at line 27 of file RootedTreeStructure.h.

Constructor & Destructor Documentation

RootedTreeStructure::RootedTreeStructure ( Document *  parent = 0)
explicit

Definition at line 59 of file RootedTreeStructure.cpp.

RootedTreeStructure::~RootedTreeStructure ( )

Definition at line 133 of file RootedTreeStructure.cpp.

Member Function Documentation

QScriptValue RootedTreeStructure::add_data ( const QString &  name)
slot

Create a new data (tree node) Note that it only create but not insert it into the tree.

Definition at line 138 of file RootedTreeStructure.cpp.

DataStructurePtr RootedTreeStructure::create ( Document *  parent)
static

Definition at line 45 of file RootedTreeStructure.cpp.

DataStructurePtr RootedTreeStructure::create ( DataStructurePtr  other,
Document *  parent 
)
static

Definition at line 51 of file RootedTreeStructure.cpp.

DataPtr RootedTreeStructure::createData ( const QString &  name,
int  dataType = 0 
)
virtual

Reimplemented from DataStructure.

Definition at line 199 of file RootedTreeStructure.cpp.

PointerPtr RootedTreeStructure::createPointer ( DataPtr  from,
DataPtr  to,
int  dataType = 0 
)
virtual

FIXME addeding multiple pointers.

Reimplemented from DataStructure.

Definition at line 147 of file RootedTreeStructure.cpp.

void RootedTreeStructure::importStructure ( DataStructurePtr  other)
virtual

overwrites the current DataStructure with all values (Data and Pointer) from the given datastructure object.

Parameters
otherthe data structure that shall be imported
Returns
void

Reimplemented from DataStructure.

Definition at line 69 of file RootedTreeStructure.cpp.

bool RootedTreeStructure::isShowingAllPointers ( ) const

return true if all the pointers need to be draw.

Definition at line 240 of file RootedTreeStructure.cpp.

QScriptValue RootedTreeStructure::root_node ( ) const
slot

Definition at line 210 of file RootedTreeStructure.cpp.

DataPtr RootedTreeStructure::rootNode ( ) const

Definition at line 225 of file RootedTreeStructure.cpp.

void RootedTreeStructure::set_root_node ( RootedTreeNode *  node)
slot

Definition at line 219 of file RootedTreeStructure.cpp.

void RootedTreeStructure::setEngine ( QScriptEngine *  engine)
virtual

Reimplemented from DataStructure.

Definition at line 233 of file RootedTreeStructure.cpp.

void RootedTreeStructure::setShowAllPointers ( const bool  v)
slot

set if all the pointers should be draw or not.

All pointers is a complete draw of this data structure, including pointers to parents and children division on nodes.

Definition at line 245 of file RootedTreeStructure.cpp.

void RootedTreeStructure::showPointersChanged ( const bool  )
signal

signal emitted on change of pointers visibility

Property Documentation

RootedTreeNode* RootedTreeStructure::m_rootNode

Definition at line 33 of file RootedTreeStructure.h.

bool RootedTreeStructure::m_showPointers

Definition at line 35 of file RootedTreeStructure.h.

bool RootedTreeStructure::ShowAllPointers
readwrite

Definition at line 31 of file RootedTreeStructure.h.


The documentation for this class was generated from the following files:
  • RootedTreeStructure.h
  • RootedTreeStructure.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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