libkdeedu/keduvocdocument
KEduVocTranslation Class Reference
#include <keduvoctranslation.h>
Detailed Description
Definition at line 33 of file keduvoctranslation.h.
Constructor & Destructor Documentation
| KEduVocTranslation::KEduVocTranslation | ( | ) |
| KEduVocTranslation::KEduVocTranslation | ( | const QString & | translation | ) | [explicit] |
Constructor.
- Parameters:
-
translation is used as translation
Definition at line 82 of file keduvoctranslation.cpp.
| KEduVocTranslation::KEduVocTranslation | ( | const KEduVocTranslation & | other | ) |
| KEduVocTranslation::~KEduVocTranslation | ( | ) |
Member Function Documentation
| QString KEduVocTranslation::text | ( | ) | const |
The translation as string (the word itself).
- Returns:
- the translation
Definition at line 159 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setText | ( | const QString & | expr | ) |
| void KEduVocTranslation::setPronunciation | ( | const QString & | expression | ) |
sets the pronunciation of this expression
- Parameters:
-
expression pronunciation of this index
Definition at line 297 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::pronunciation | ( | ) | const |
returns the pronunciation of this expression
- Returns:
- pronunciation or "" if none available
Definition at line 291 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::comment | ( | ) | const |
returns comments of this expression
- Returns:
- comment or "" if no comment available
Definition at line 171 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setComment | ( | const QString & | expr | ) |
sets comment of this expression
- Parameters:
-
expr comment of this index
Definition at line 177 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setFalseFriend | ( | int | indexFrom, | |
| const QString & | expression | |||
| ) |
sets false friend of this expression
- Parameters:
-
indexFrom index of original translation expression false friend of this index
Definition at line 183 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::falseFriend | ( | int | indexFrom | ) | const |
returns false friend of this expression
- Parameters:
-
indexFrom index of original translation
- Returns:
- false friend or "" if no string available
Definition at line 189 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setSynonym | ( | const QString & | expression | ) |
sets synonym this expression
- Parameters:
-
expression synonym of this index
Definition at line 195 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::synonym | ( | ) | const |
returns synonym of this expression
- Returns:
- synonym or "" if no string available
Definition at line 201 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setExample | ( | const QString & | expression | ) |
sets example this expression
- Parameters:
-
expression example of this index
Definition at line 207 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::example | ( | ) | const |
returns example of this expression
- Returns:
- example or "" if no string available
Definition at line 213 of file keduvoctranslation.cpp.
sets usages this expression
- Parameters:
-
usage usage labels of this index
Definition at line 219 of file keduvoctranslation.cpp.
returns usages of this expression
- Returns:
- usages
Definition at line 225 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setParaphrase | ( | const QString & | expression | ) |
sets paraphrase of this expression
- Parameters:
-
expression paraphrase of this index
Definition at line 231 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::paraphrase | ( | ) | const |
returns paraphrase of this expression
- Returns:
- paraphrase or "" if no string available
Definition at line 237 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setAntonym | ( | const QString & | expression | ) |
sets antonym this expression
- Parameters:
-
expression antonym of this index
Definition at line 243 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::antonym | ( | ) | const |
returns antonym of this expression
- Returns:
- antonym or "" if no string available
Definition at line 249 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setIrregularPlural | ( | const QString & | plural | ) |
Set a irregular plural form.
- Parameters:
-
plural plural of the word
| QString KEduVocTranslation::irregularPlural | ( | ) | const |
Get a irregular plural form.
- Returns:
- plural of the word
| QString KEduVocTranslation::type | ( | ) | const |
returns type of this expression
- Returns:
- type or "" if no type available
Definition at line 303 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setType | ( | const QString & | type | ) |
sets type of this expression
- Parameters:
-
type type of this expression ("" = none)
Definition at line 309 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::subType | ( | ) | const |
returns subtype of this expression
- Returns:
- type or "" if no type available
Definition at line 314 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setSubType | ( | const QString & | type | ) |
sets subtype of this expression
- Parameters:
-
type type of this expression ("" = none)
Definition at line 320 of file keduvoctranslation.cpp.
| void KEduVocTranslation::resetGrades | ( | ) |
| KEduVocGrade & KEduVocTranslation::gradeFrom | ( | int | indexFrom | ) |
get the gradeobject from given identifier
- Parameters:
-
indexFrom which identifier to get the grade from
- Returns:
- the grade object
Definition at line 330 of file keduvoctranslation.cpp.
| KEduVocConjugation & KEduVocTranslation::conjugation | ( | const QString & | tense | ) |
| void KEduVocTranslation::setConjugation | ( | const QString & | tense, | |
| const KEduVocConjugation & | conjugation | |||
| ) |
adds conjugations or replaces them, if they exist.
- Parameters:
-
conjugation conjugation
Definition at line 255 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setConjugations | ( | const QMap< QString, KEduVocConjugation > & | conjugations | ) |
Bad, only used for tense entry page, will be deleted later.
Deprecated.
- Parameters:
-
conjugation
Definition at line 345 of file keduvoctranslation.cpp.
| QStringList KEduVocTranslation::conjugationTenses | ( | ) | const |
Definition at line 335 of file keduvoctranslation.cpp.
| QMap< QString, KEduVocConjugation > KEduVocTranslation::conjugations | ( | ) | const |
Bad, only compatibility.
Deprecated.
- Returns:
Definition at line 340 of file keduvoctranslation.cpp.
| KEduVocComparison & KEduVocTranslation::comparison | ( | ) |
| void KEduVocTranslation::setComparison | ( | const KEduVocComparison & | comparison | ) |
sets comparison
- Parameters:
-
comparison comparison block
Definition at line 267 of file keduvoctranslation.cpp.
| KEduVocMultipleChoice & KEduVocTranslation::multipleChoice | ( | ) |
| void KEduVocTranslation::setMultipleChoice | ( | const KEduVocMultipleChoice & | mc | ) |
sets multiple choice
- Parameters:
-
mc multiple choice block
Definition at line 279 of file keduvoctranslation.cpp.
| KUrl KEduVocTranslation::soundUrl | ( | ) |
get the sound url for this translation if it exists
Definition at line 351 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setSoundUrl | ( | const KUrl & | url | ) |
set the sound url for this translation
- Parameters:
-
url url of the sound file
Definition at line 358 of file keduvoctranslation.cpp.
| KUrl KEduVocTranslation::imageUrl | ( | ) |
get the image url for this translation if it exists
Definition at line 364 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setImageUrl | ( | const KUrl & | url | ) |
set the image url for this translation
- Parameters:
-
url url of the image
Definition at line 372 of file keduvoctranslation.cpp.
| KEduVocTranslation & KEduVocTranslation::operator= | ( | const KEduVocTranslation & | translation | ) |
Equal operator to assing a translation to another one.
- Parameters:
-
translation translation to be copied
- Returns:
- reference to the new translation
Definition at line 136 of file keduvoctranslation.cpp.
| bool KEduVocTranslation::operator== | ( | const KEduVocTranslation & | translation | ) | const |
Compare two translations, including word type etc.
- Parameters:
-
translation
- Returns:
- true if equal
Definition at line 114 of file keduvoctranslation.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference