libkdeedu/keduvocdocument
#include <keduvocexpression.h>
Public Member Functions | |
| KEduVocExpression () | |
| KEduVocExpression (const QString &expression) | |
| KEduVocExpression (const QStringList &translations) | |
| KEduVocExpression (const KEduVocExpression &other) | |
| ~KEduVocExpression () | |
| 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, KEduVocTranslation *translation) |
| 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 37 of file keduvocexpression.h.
Constructor & Destructor Documentation
|
explicit |
default constructor for an empty vocabulary expression
Definition at line 73 of file keduvocexpression.cpp.
|
explicit |
Constructor for a vocabulary expression with one translation.
- Parameters
-
expression translation lesson lesson number
Definition at line 77 of file keduvocexpression.cpp.
|
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 83 of file keduvocexpression.cpp.
| KEduVocExpression::KEduVocExpression | ( | const KEduVocExpression & | other | ) |
Definition at line 92 of file keduvocexpression.cpp.
| KEduVocExpression::~KEduVocExpression | ( | ) |
Definition at line 111 of file keduvocexpression.cpp.
Member Function Documentation
| bool KEduVocExpression::isActive | ( | ) | const |
returns flag if entry is activated for queries
Definition at line 150 of file keduvocexpression.cpp.
| KEduVocLesson * KEduVocExpression::lesson | ( | ) | const |
return the lesson
Definition at line 144 of file keduvocexpression.cpp.
| KEduVocExpression & KEduVocExpression::operator= | ( | const KEduVocExpression & | expression | ) |
Definition at line 101 of file keduvocexpression.cpp.
| bool KEduVocExpression::operator== | ( | const KEduVocExpression & | expression | ) | const |
Definition at line 177 of file keduvocexpression.cpp.
| void KEduVocExpression::removeTranslation | ( | int | index | ) |
removes a translation
- Parameters
-
index number of translation 1..x
Definition at line 117 of file keduvocexpression.cpp.
| void KEduVocExpression::resetGrades | ( | int | index | ) |
reset all grades of the entry
- Parameters
-
index identifier (language)
Definition at line 162 of file keduvocexpression.cpp.
| void KEduVocExpression::setActive | ( | bool | flag = true | ) |
set entry active (enabled for queries)
Definition at line 156 of file keduvocexpression.cpp.
| void KEduVocExpression::setSizeHint | ( | int | sizeHint | ) |
| void KEduVocExpression::setTranslation | ( | int | index, |
| 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 131 of file keduvocexpression.cpp.
| int KEduVocExpression::sizeHint | ( | ) | const |
| KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) |
Get a pointer to the translation.
- Parameters
-
index of the language identifier
- Returns
- the translation
Definition at line 182 of file keduvocexpression.cpp.
| KEduVocTranslation * KEduVocExpression::translation | ( | int | index | ) | const |
Definition at line 191 of file keduvocexpression.cpp.
| QList< int > KEduVocExpression::translationIndices | ( | ) | const |
Definition at line 199 of file keduvocexpression.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:37:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference