libkdeedu/keduvocdocument
KEduVocContainer Class Reference
#include <keduvoccontainer.h>

Detailed Description
class to store information about a container - that can be a lesson or word typesDefinition at line 30 of file keduvoccontainer.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| KEduVocContainer::KEduVocContainer | ( | const QString & | name, | |
| EnumContainerType | type, | |||
| KEduVocContainer * | parent = 0 | |||
| ) | [explicit] |
| KEduVocContainer::KEduVocContainer | ( | const KEduVocContainer & | other | ) |
| KEduVocContainer::~KEduVocContainer | ( | ) | [virtual] |
Member Function Documentation
| void KEduVocContainer::appendChildContainer | ( | KEduVocContainer * | child | ) |
Definition at line 77 of file keduvoccontainer.cpp.
| double KEduVocContainer::averageGrade | ( | int | translation | ) |
Definition at line 246 of file keduvoccontainer.cpp.
| KEduVocContainer * KEduVocContainer::childContainer | ( | const QString & | name | ) |
Retrieve a child container by its name Returns 0 if no container is found.
- Parameters:
-
name container name
- Returns:
- the child container
Definition at line 91 of file keduvoccontainer.cpp.
| KEduVocContainer * KEduVocContainer::childContainer | ( | int | row | ) |
Definition at line 85 of file keduvoccontainer.cpp.
| int KEduVocContainer::childContainerCount | ( | ) | const |
Find a child container.
- Parameters:
-
name
- Returns:
Definition at line 117 of file keduvoccontainer.cpp.
| QList< KEduVocContainer * > KEduVocContainer::childContainers | ( | ) |
Definition at line 186 of file keduvoccontainer.cpp.
| KEduVocContainer::EnumContainerType KEduVocContainer::containerType | ( | ) |
The type of this container.
- See also:
- EnumContainerType
- Returns:
Definition at line 201 of file keduvoccontainer.cpp.
| void KEduVocContainer::deleteChildContainer | ( | int | row | ) |
Definition at line 102 of file keduvoccontainer.cpp.
| virtual QList< KEduVocExpression* > KEduVocContainer::entries | ( | EnumEntriesRecursive | recursive = NotRecursive |
) | [pure virtual] |
get a list of all entries in the container
Implemented in KEduVocLeitnerBox, KEduVocLesson, and KEduVocWordType.
| QList< KEduVocExpression * > KEduVocContainer::entriesRecursive | ( | ) | [protected] |
Definition at line 177 of file keduvoccontainer.cpp.
| virtual KEduVocExpression* KEduVocContainer::entry | ( | int | row, | |
| EnumEntriesRecursive | recursive = NotRecursive | |||
| ) | [pure virtual] |
Implemented in KEduVocLeitnerBox, KEduVocLesson, and KEduVocWordType.
| virtual int KEduVocContainer::entryCount | ( | EnumEntriesRecursive | recursive = NotRecursive |
) | [pure virtual] |
Implemented in KEduVocLeitnerBox, KEduVocLesson, and KEduVocWordType.
| int KEduVocContainer::expressionsOfGrade | ( | int | translation, | |
| grade_t | grade | |||
| ) |
Definition at line 257 of file keduvoccontainer.cpp.
| KUrl KEduVocContainer::imageUrl | ( | ) |
get the image url for this container if it exists
Definition at line 207 of file keduvoccontainer.cpp.
| bool KEduVocContainer::inPractice | ( | ) |
Definition at line 156 of file keduvoccontainer.cpp.
| void KEduVocContainer::insertChildContainer | ( | int | row, | |
| KEduVocContainer * | child | |||
| ) |
Definition at line 217 of file keduvoccontainer.cpp.
| void KEduVocContainer::invalidateChildLessonEntries | ( | ) | [protected] |
| QString KEduVocContainer::name | ( | ) |
| KEduVocContainer & KEduVocContainer::operator= | ( | const KEduVocContainer & | other | ) |
| bool KEduVocContainer::operator== | ( | const KEduVocContainer & | other | ) |
equality operator
- Todo:
- make this return something useful
Definition at line 138 of file keduvoccontainer.cpp.
| KEduVocContainer * KEduVocContainer::parent | ( | ) | [virtual] |
Definition at line 191 of file keduvoccontainer.cpp.
| void KEduVocContainer::removeChildContainer | ( | int | row | ) |
Definition at line 110 of file keduvoccontainer.cpp.
| void KEduVocContainer::removeTranslation | ( | int | translation | ) |
Removes a translation.
This has to be called when a language is removed from a document.
- Parameters:
-
translation
Definition at line 166 of file keduvoccontainer.cpp.
| void KEduVocContainer::resetGrades | ( | int | translation, | |
| EnumEntriesRecursive | recursive | |||
| ) |
Remove grades from all entries of this lessons.
- Parameters:
-
translation which translation to remove. -1 for all. recursive wether to include child lessons
Definition at line 268 of file keduvoccontainer.cpp.
| int KEduVocContainer::row | ( | ) | const |
Definition at line 122 of file keduvoccontainer.cpp.
| void KEduVocContainer::setContainerType | ( | KEduVocContainer::EnumContainerType | type | ) |
Set the type of container.
For convenience by default this is taken over from the parent, so no need to set.
- Parameters:
-
type the new type
Definition at line 196 of file keduvoccontainer.cpp.
| void KEduVocContainer::setImageUrl | ( | const KUrl & | url | ) |
set the image url for this container
- Parameters:
-
url url of the image
Definition at line 212 of file keduvoccontainer.cpp.
| void KEduVocContainer::setInPractice | ( | bool | inPractice | ) |
Definition at line 161 of file keduvoccontainer.cpp.
| void KEduVocContainer::setName | ( | const QString & | name | ) |
set the container name
- Parameters:
-
name text to set for the name
Definition at line 146 of file keduvoccontainer.cpp.
| void KEduVocContainer::updateChildLessonEntries | ( | ) | [protected] |
Recreate the cache of entries in this lesson's child lessons.
Definition at line 225 of file keduvoccontainer.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference