KEduVocExpression
#include <keduvocexpression.h>
Public Member Functions | |
KEduVocExpression () | |
KEduVocExpression (const KEduVocExpression &other) | |
KEduVocExpression (const QString &expression) | |
KEduVocExpression (const QStringList &translations) | |
bool | isActive () const |
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) |
int | sizeHint () const |
KEduVocTranslation * | translation (int index) |
KEduVocTranslation * | translation (int index) const |
QList< int > | translationIndices () const |
Detailed Description
This class contains one vocabulary expression as an original with one or more translations.
Definition at line 26 of file keduvocexpression.h.
Constructor & Destructor Documentation
◆ KEduVocExpression() [1/4]
|
explicit |
default constructor for an empty vocabulary expression
Definition at line 61 of file keduvocexpression.cpp.
◆ KEduVocExpression() [2/4]
|
explicit |
Constructor for a vocabulary expression with one translation.
- Parameters
-
expression translation
Definition at line 66 of file keduvocexpression.cpp.
◆ KEduVocExpression() [3/4]
|
explicit |
Constructor for a vocabulary expression with an original and one or more translations.
- Parameters
-
translations translations
Definition at line 72 of file keduvocexpression.cpp.
◆ KEduVocExpression() [4/4]
KEduVocExpression::KEduVocExpression | ( | const KEduVocExpression & | other | ) |
Definition at line 80 of file keduvocexpression.cpp.
◆ ~KEduVocExpression()
KEduVocExpression::~KEduVocExpression | ( | ) |
Definition at line 99 of file keduvocexpression.cpp.
Member Function Documentation
◆ isActive()
bool KEduVocExpression::isActive | ( | ) | const |
returns flag if entry is activated for queries
Definition at line 135 of file keduvocexpression.cpp.
◆ lesson()
KEduVocLesson * KEduVocExpression::lesson | ( | ) | const |
return the lesson
Definition at line 130 of file keduvocexpression.cpp.
◆ operator=()
KEduVocExpression & KEduVocExpression::operator= | ( | const KEduVocExpression & | expression | ) |
Definition at line 89 of file keduvocexpression.cpp.
◆ operator==()
bool KEduVocExpression::operator== | ( | const KEduVocExpression & | expression | ) | const |
Definition at line 160 of file keduvocexpression.cpp.
◆ removeTranslation()
void KEduVocExpression::removeTranslation | ( | int | index | ) |
removes a translation
- Parameters
-
index number of translation 1..x
Definition at line 105 of file keduvocexpression.cpp.
◆ resetGrades()
void KEduVocExpression::resetGrades | ( | int | index | ) |
reset all grades of the entry
- Parameters
-
index identifier (language)
Definition at line 145 of file keduvocexpression.cpp.
◆ setActive()
void KEduVocExpression::setActive | ( | bool | flag = true | ) |
set entry active (enabled for queries)
Definition at line 140 of file keduvocexpression.cpp.
◆ setTranslation()
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 118 of file keduvocexpression.cpp.
◆ translation() [1/2]
KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) |
Get a pointer to the translation.
- Parameters
-
index of the language identifier
- Returns
- the translation
Definition at line 165 of file keduvocexpression.cpp.
◆ translation() [2/2]
KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) | const |
Definition at line 174 of file keduvocexpression.cpp.
◆ translationIndices()
QList< int > KEduVocExpression::translationIndices | ( | ) | const |
Definition at line 182 of file keduvocexpression.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.