parley
#include <container.h>
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 ®Exp) 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.
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
|
inline |
Definition at line 88 of file container.h.
|
inlineslot |
Returns the average grade of the specified translation
considering all the lesson entries.
- Parameters
-
translation language index
- Returns
- A double, the average lesson grade
Definition at line 199 of file container.h.
|
static |
Definition at line 50 of file container.cpp.
|
inline |
Definition at line 98 of file container.h.
Definition at line 108 of file container.h.
|
inline |
Definition at line 112 of file container.h.
QVariantList Scripting::Container::childContainers | ( | ) |
Definition at line 57 of file container.cpp.
|
static |
Definition at line 43 of file container.cpp.
|
inlineslot |
Returns how many expressions of language with index translation
have grade as grade
.
- Parameters
-
translation language index grade grade
- 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.
|
static |
Definition at line 62 of file container.cpp.
|
inline |
Definition at line 124 of file container.h.
|
inline |
Definition at line 116 of file container.h.
|
inline |
Definition at line 91 of file container.h.
|
inline |
Definition at line 69 of file container.h.
|
inline |
Definition at line 84 of file container.h.
|
inline |
Definition at line 95 of file container.h.
|
inline |
Definition at line 142 of file container.h.
|
inlineslot |
Remove grades from all entries of this lessons.
- Parameters
-
translation which translation to remove. -1 for all. recursive whether to include child lessons
Definition at line 190 of file container.h.
|
inlineslot |
Returns an integer, the Container's unique row.
Useful for Lesson::removeChildLesson() function
Definition at line 156 of file container.h.
|
inline |
Definition at line 131 of file container.h.
|
inline |
Definition at line 119 of file container.h.
|
inline |
Definition at line 79 of file container.h.
QVariantList Scripting::Container::toVariantList | ( | QList< T * > | objList | ) | const |
Definition at line 209 of file container.h.
Member Data Documentation
|
protected |
Definition at line 204 of file container.h.
Property Documentation
|
readwrite |
Container image URL.
Definition at line 41 of file container.h.
|
readwrite |
Boolean value if lesson is in Practice or not.
Definition at line 39 of file container.h.
|
readwrite |
Container name.
Definition at line 37 of file container.h.
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:15:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.