#include <container.h>
|
static
KEduVocContainer::EnumEntriesRecursive | boolToEnum (bool recursive) |
|
static bool | enumToBool (KEduVocContainer::EnumEntriesRecursive recursive) |
|
static QList< KEduVocContainer * > | flattenContainer (KEduVocContainer *root) |
|
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.
Scripting::Container::Container |
( |
KEduVocContainer * |
container = 0 | ) |
|
Scripting::Container::~Container |
( |
| ) |
|
void Scripting::Container::appendChildContainer |
( |
Container * |
child | ) |
|
|
inline |
double Scripting::Container::averageGrade |
( |
int |
translation, |
|
|
bool |
recursive |
|
) |
| |
|
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 165 of file container.h.
KEduVocContainer::EnumEntriesRecursive Scripting::Container::boolToEnum |
( |
bool |
recursive | ) |
|
|
static |
Container* Scripting::Container::childContainer |
( |
int |
row | ) |
|
|
inline |
Container* Scripting::Container::childContainer |
( |
const QString & |
name | ) |
|
|
inline |
int Scripting::Container::childContainerCount |
( |
| ) |
const |
|
inline |
QVariantList Scripting::Container::childContainers |
( |
| ) |
|
bool Scripting::Container::enumToBool |
( |
KEduVocContainer::EnumEntriesRecursive |
recursive | ) |
|
|
static |
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
-
translation | language index |
grade | grade |
- Returns
- A number that represents the number of expressions of that grade
Definition at line 151 of file container.h.
KEduVocContainer * Scripting::Container::findContainer |
( |
const QString & |
name | ) |
|
QList< KEduVocContainer * > Scripting::Container::flattenContainer |
( |
KEduVocContainer * |
root | ) |
|
|
static |
QString Scripting::Container::imageUrl |
( |
| ) |
|
|
inline |
bool Scripting::Container::inPractice |
( |
| ) |
|
|
inline |
void Scripting::Container::insertChildContainer |
( |
int |
row, |
|
|
Container * |
child |
|
) |
| |
|
inline |
KEduVocContainer* Scripting::Container::kEduVocContainer |
( |
| ) |
|
|
inline |
QString Scripting::Container::name |
( |
| ) |
|
|
inline |
void Scripting::Container::removeChildContainer |
( |
int |
row | ) |
|
|
inline |
void Scripting::Container::removeTranslation |
( |
int |
translation | ) |
|
|
inline |
void Scripting::Container::resetGrades |
( |
int |
translation, |
|
|
bool |
recursive |
|
) |
| |
|
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 158 of file container.h.
int Scripting::Container::row |
( |
| ) |
const |
|
inlineslot |
void Scripting::Container::setImageUrl |
( |
const QString & |
url | ) |
|
|
inline |
void Scripting::Container::setInPractice |
( |
bool |
inPractice | ) |
|
|
inline |
void Scripting::Container::setName |
( |
const QString & |
name | ) |
|
|
inline |
template<class T , class S >
QVariantList Scripting::Container::toVariantList |
( |
QList< T * > |
objList | ) |
const |
KEduVocContainer* Scripting::Container::m_container |
|
protected |
QString Scripting::Container::imageUrl |
|
readwrite |
bool Scripting::Container::inPractice |
|
readwrite |
QString Scripting::Container::name |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.