libkdeedu/keduvocdocument
KEduVocExpression Class Reference
#include <keduvocexpression.h>
Detailed Description
This class contains one vocabulary expression as an original with one or more translations.Definition at line 37 of file keduvocexpression.h.
Public Member Functions | |
| bool | isActive () const |
| KEduVocExpression (const KEduVocExpression &other) | |
| KEduVocExpression (const QStringList &translations) | |
| KEduVocExpression (const QString &expression) | |
| KEduVocExpression () | |
| KEduVocLesson * | lesson () const |
| KEduVocExpression & | operator= (const KEduVocExpression &expression) |
| bool | operator== (const KEduVocExpression &expression) const |
| void | removeTranslation (int index) |
| void | resetGrades (int index) |
| void | setActive (bool flag=true) |
| void | setSizeHint (int sizeHint) |
| void | setTranslation (int index, const QString &expression) |
| void | setTranslation (int index, KEduVocTranslation *translation) |
| int | sizeHint () const |
| KEduVocTranslation * | translation (int index) const |
| KEduVocTranslation * | translation (int index) |
| QList< int > | translationIndices () const |
| ~KEduVocExpression () | |
Constructor & Destructor Documentation
| KEduVocExpression::KEduVocExpression | ( | ) | [explicit] |
default constructor for an empty vocabulary expression
Definition at line 74 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const QString & | expression | ) | [explicit] |
Constructor for a vocabulary expression with one translation.
- Parameters:
-
expression translation lesson lesson number
Definition at line 78 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const QStringList & | translations | ) | [explicit] |
Constructor for a vocabulary expression with an original and one or more translations.
- Parameters:
-
expression expression separator expression will be split into an original and one or more translations using separator lesson lesson number, 0 for none
Definition at line 84 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const KEduVocExpression & | other | ) |
Definition at line 93 of file keduvocexpression.cpp.
| KEduVocExpression::~KEduVocExpression | ( | ) |
Definition at line 112 of file keduvocexpression.cpp.
Member Function Documentation
| bool KEduVocExpression::isActive | ( | ) | const |
returns flag if entry is activated for queries
Definition at line 149 of file keduvocexpression.cpp.
| KEduVocLesson * KEduVocExpression::lesson | ( | ) | const |
| KEduVocExpression & KEduVocExpression::operator= | ( | const KEduVocExpression & | expression | ) |
Definition at line 102 of file keduvocexpression.cpp.
| bool KEduVocExpression::operator== | ( | const KEduVocExpression & | expression | ) | const |
Definition at line 176 of file keduvocexpression.cpp.
| void KEduVocExpression::removeTranslation | ( | int | index | ) |
removes a translation
- Parameters:
-
index number of translation 1..x
Definition at line 118 of file keduvocexpression.cpp.
| void KEduVocExpression::resetGrades | ( | int | index | ) |
reset all grades of the entry
- Parameters:
-
index identifier (language)
Definition at line 161 of file keduvocexpression.cpp.
| void KEduVocExpression::setActive | ( | bool | flag = true |
) |
| void KEduVocExpression::setSizeHint | ( | int | sizeHint | ) |
| void KEduVocExpression::setTranslation | ( | int | index, | |
| const QString & | expression | |||
| ) |
Add a translation to this expression.
- Parameters:
-
index number of translation = the identifier expression the translation
Definition at line 130 of file keduvocexpression.cpp.
| void KEduVocExpression::setTranslation | ( | int | index, | |
| KEduVocTranslation * | translation | |||
| ) |
| int KEduVocExpression::sizeHint | ( | ) | const |
| KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) | const |
Definition at line 190 of file keduvocexpression.cpp.
| KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) |
Get a pointer to the translation.
- Parameters:
-
index of the language identifier
- Returns:
- the translation
Definition at line 181 of file keduvocexpression.cpp.
| QList< int > KEduVocExpression::translationIndices | ( | ) | const |
Definition at line 198 of file keduvocexpression.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference