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

parley

  • Scripting
  • Container
Public Slots | Public Member Functions | Static Public Member Functions | Protected Attributes | Properties | List of all members
Scripting::Container Class Reference

#include <container.h>

Inheritance diagram for Scripting::Container:
Inheritance graph
[legend]

Public Slots

double averageGrade (int translation, bool recursive)
 
int expressionsOfGrade (int translation, unsigned int grade, bool recursive)
 
void resetGrades (int translation, bool recursive)
 
int row () const
 

Public Member Functions

 Container (KEduVocContainer *container=0)
 
 ~Container ()
 
void appendChildContainer (Container *child)
 
Container * childContainer (int row)
 
Container * childContainer (const QString &name)
 
int childContainerCount () const
 
QVariantList childContainers ()
 
KEduVocContainer * findContainer (const QString &name)
 
QString imageUrl ()
 
bool inPractice ()
 
void insertChildContainer (int row, Container *child)
 
KEduVocContainer * kEduVocContainer ()
 
QString name ()
 
void removeChildContainer (int row)
 
void removeTranslation (int translation)
 
void setImageUrl (const QString &url)
 
void setInPractice (bool inPractice)
 
void setName (const QString &name)
 
template<class T , class S >
QVariantList toVariantList (QList< T * > objList) const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Static Public Member Functions

static
KEduVocContainer::EnumEntriesRecursive 
boolToEnum (bool recursive)
 
static bool enumToBool (KEduVocContainer::EnumEntriesRecursive recursive)
 
static QList< KEduVocContainer * > flattenContainer (KEduVocContainer *root)
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Attributes

KEduVocContainer * m_container
 

Properties

QString imageUrl
 
bool inPractice
 
QString name
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 

Detailed Description

KEduVocContainer wrapping class for Kross scripts (inherited by Lesson)

This class should not be used directly by a script but through Lesson class which inherits all the Container's properties. See Lesson class documentation.

Author
Avgoustinos Kadis avgou.nosp@m.stin.nosp@m.os.ka.nosp@m.dis@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

Definition at line 33 of file container.h.

Constructor & Destructor Documentation

Scripting::Container::Container ( KEduVocContainer *  container = 0)

Definition at line 20 of file container.cpp.

Scripting::Container::~Container ( )

Definition at line 39 of file container.cpp.

Member Function Documentation

void Scripting::Container::appendChildContainer ( Container *  child)
inline

Definition at line 88 of file container.h.

double Scripting::Container::averageGrade ( int  translation,
bool  recursive 
)
inlineslot

Returns the average grade of the specified translation considering all the lesson entries.

Parameters
translationlanguage index
Returns
A double, the average lesson grade

Definition at line 199 of file container.h.

KEduVocContainer::EnumEntriesRecursive Scripting::Container::boolToEnum ( bool  recursive)
static

Definition at line 50 of file container.cpp.

Container* Scripting::Container::childContainer ( int  row)
inline

Definition at line 98 of file container.h.

Container* Scripting::Container::childContainer ( const QString &  name)
inline

Definition at line 108 of file container.h.

int Scripting::Container::childContainerCount ( ) const
inline

Definition at line 112 of file container.h.

QVariantList Scripting::Container::childContainers ( )

Definition at line 57 of file container.cpp.

bool Scripting::Container::enumToBool ( KEduVocContainer::EnumEntriesRecursive  recursive)
static

Definition at line 43 of file container.cpp.

int Scripting::Container::expressionsOfGrade ( int  translation,
unsigned int  grade,
bool  recursive 
)
inlineslot

Returns how many expressions of language with index translation have grade as grade.

Parameters
translationlanguage index
gradegrade
Returns
A number that represents the number of expressions of that grade

Definition at line 181 of file container.h.

KEduVocContainer * Scripting::Container::findContainer ( const QString &  name)

Definition at line 73 of file container.cpp.

QList< KEduVocContainer * > Scripting::Container::flattenContainer ( KEduVocContainer *  root)
static

Definition at line 62 of file container.cpp.

QString Scripting::Container::imageUrl ( )
inline

Definition at line 124 of file container.h.

bool Scripting::Container::inPractice ( )
inline

Definition at line 116 of file container.h.

void Scripting::Container::insertChildContainer ( int  row,
Container *  child 
)
inline

Definition at line 91 of file container.h.

KEduVocContainer* Scripting::Container::kEduVocContainer ( )
inline

Definition at line 69 of file container.h.

QString Scripting::Container::name ( )
inline

Definition at line 84 of file container.h.

void Scripting::Container::removeChildContainer ( int  row)
inline

Definition at line 95 of file container.h.

void Scripting::Container::removeTranslation ( int  translation)
inline

Definition at line 142 of file container.h.

void Scripting::Container::resetGrades ( int  translation,
bool  recursive 
)
inlineslot

Remove grades from all entries of this lessons.

Parameters
translationwhich translation to remove. -1 for all.
recursivewhether to include child lessons

Definition at line 190 of file container.h.

int Scripting::Container::row ( ) const
inlineslot

Returns an integer, the Container's unique row.

Useful for Lesson::removeChildLesson() function

Definition at line 156 of file container.h.

void Scripting::Container::setImageUrl ( const QString &  url)
inline

Definition at line 131 of file container.h.

void Scripting::Container::setInPractice ( bool  inPractice)
inline

Definition at line 119 of file container.h.

void Scripting::Container::setName ( const QString &  name)
inline

Definition at line 79 of file container.h.

template<class T , class S >
QVariantList Scripting::Container::toVariantList ( QList< T * >  objList) const

Definition at line 209 of file container.h.

Member Data Documentation

KEduVocContainer* Scripting::Container::m_container
protected

Definition at line 204 of file container.h.

Property Documentation

QString Scripting::Container::imageUrl
readwrite

Container image URL.

Definition at line 41 of file container.h.

bool Scripting::Container::inPractice
readwrite

Boolean value if lesson is in Practice or not.

Definition at line 39 of file container.h.

QString Scripting::Container::name
readwrite

Container name.

Definition at line 37 of file container.h.


The documentation for this class was generated from the following files:
  • container.h
  • container.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • 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
  • 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