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 33 of file keduvocexpression.h.
Public Member Functions | |
| KEduVocExpression () | |
| KEduVocExpression (const QString &expression, int lesson=-1) | |
| KEduVocExpression (const QStringList &translations, int lesson=-1) | |
| KEduVocExpression (const KEduVocExpression &expression) | |
| ~KEduVocExpression () | |
| int | lesson () const |
| void | setLesson (int l) |
| void | resetGrades (int index) |
| bool | isActive () const |
| void | setActive (bool flag=true) |
| int | sizeHint () const |
| void | setSizeHint (int sizeHint) |
| QString | translationString (int index) const |
| void | setTranslation (int index, const KEduVocTranslation &translation) |
| void | setTranslation (int index, const QString &expression) |
| void | removeTranslation (int index) |
| KEduVocTranslation & | translation (int index) const |
| QList< int > | translationIndices () const |
| KEduVocExpression & | operator= (const KEduVocExpression &expression) |
| bool | operator== (const KEduVocExpression &expression) const |
Constructor & Destructor Documentation
| KEduVocExpression::KEduVocExpression | ( | ) | [explicit] |
default constructor for an empty vocabulary expression
Definition at line 68 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const QString & | expression, | |
| int | lesson = -1 | |||
| ) | [explicit] |
Constructor for a vocabulary expression with one translation.
- Parameters:
-
expression translation lesson lesson number
Definition at line 72 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const QStringList & | translations, | |
| int | lesson = -1 | |||
| ) | [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 79 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const KEduVocExpression & | expression | ) |
Definition at line 88 of file keduvocexpression.cpp.
| KEduVocExpression::~KEduVocExpression | ( | ) |
Definition at line 92 of file keduvocexpression.cpp.
Member Function Documentation
| int KEduVocExpression::lesson | ( | ) | const |
| void KEduVocExpression::setLesson | ( | int | l | ) |
| void KEduVocExpression::resetGrades | ( | int | index | ) |
reset all grades of the entry
- Parameters:
-
index identifier (language)
Definition at line 148 of file keduvocexpression.cpp.
| bool KEduVocExpression::isActive | ( | ) | const |
returns flag if entry is activated for queries
Definition at line 127 of file keduvocexpression.cpp.
| void KEduVocExpression::setActive | ( | bool | flag = true |
) |
| int KEduVocExpression::sizeHint | ( | ) | const |
Definition at line 138 of file keduvocexpression.cpp.
| void KEduVocExpression::setSizeHint | ( | int | sizeHint | ) |
Definition at line 143 of file keduvocexpression.cpp.
| QString KEduVocExpression::translationString | ( | int | index | ) | const |
returns this translation
- Returns:
- expression or "" if no translation available
| void KEduVocExpression::setTranslation | ( | int | index, | |
| const KEduVocTranslation & | translation | |||
| ) |
| 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 104 of file keduvocexpression.cpp.
| void KEduVocExpression::removeTranslation | ( | int | index | ) |
removes a translation
- Parameters:
-
index number of translation 1..x
Definition at line 98 of file keduvocexpression.cpp.
| KEduVocTranslation & KEduVocExpression::translation | ( | int | index | ) | const |
Get a mutable reference to the translation.
- Parameters:
-
index of the language identifier
- Returns:
- the translation
Definition at line 176 of file keduvocexpression.cpp.
| QList< int > KEduVocExpression::translationIndices | ( | ) | const |
Definition at line 181 of file keduvocexpression.cpp.
| KEduVocExpression & KEduVocExpression::operator= | ( | const KEduVocExpression & | expression | ) |
Definition at line 164 of file keduvocexpression.cpp.
| bool KEduVocExpression::operator== | ( | const KEduVocExpression & | expression | ) | const |
Definition at line 171 of file keduvocexpression.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference