libkdeedu/keduvocdocument
KEduVocTranslation Class Reference
#include <keduvoctranslation.h>

Detailed Description
Definition at line 36 of file keduvoctranslation.h.
Member Enumeration Documentation
Definition at line 40 of file keduvoctranslation.h.
Constructor & Destructor Documentation
| KEduVocTranslation::KEduVocTranslation | ( | KEduVocExpression * | entry | ) |
Default constructor for an empty translation.
Definition at line 93 of file keduvoctranslation.cpp.
| KEduVocTranslation::KEduVocTranslation | ( | KEduVocExpression * | entry, | |
| const QString & | translation | |||
| ) |
Constructor.
- Parameters:
-
translation is used as translation
Definition at line 98 of file keduvoctranslation.cpp.
| KEduVocTranslation::KEduVocTranslation | ( | const KEduVocTranslation & | other | ) |
copy constructor for d-pointer safety
Definition at line 103 of file keduvoctranslation.cpp.
| KEduVocTranslation::~KEduVocTranslation | ( | ) |
Destructor.
Definition at line 131 of file keduvoctranslation.cpp.
Member Function Documentation
| void KEduVocTranslation::addAntonym | ( | KEduVocTranslation * | antonym | ) |
| void KEduVocTranslation::addFalseFriend | ( | KEduVocTranslation * | falseFriend | ) |
add a false friend
- Parameters:
-
falseFriend false friend of this index
Definition at line 207 of file keduvoctranslation.cpp.
| void KEduVocTranslation::addSynonym | ( | KEduVocTranslation * | synonym | ) |
| QString KEduVocTranslation::antonym | ( | ) | const |
returns antonym of this expression
- Returns:
- antonym or "" if no string available
| QList< KEduVocTranslation * > KEduVocTranslation::antonyms | ( | ) | const |
returns antonyms of this expression
- Returns:
- antonyms
Definition at line 243 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::comment | ( | ) | const |
returns comments of this expression
- Returns:
- comment or "" if no comment available
Definition at line 195 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::comparative | ( | ) | const |
Comparison forms of adjectives/adverbs.
Definition at line 389 of file keduvoctranslation.cpp.
| KEduVocConjugation & KEduVocTranslation::conjugation | ( | const QString & | tense | ) |
returns a conjugation if available
- Parameters:
-
tense tense of the requested conjugation
- Returns:
- the conjugation
Definition at line 283 of file keduvoctranslation.cpp.
| QMap< QString, KEduVocConjugation > KEduVocTranslation::conjugations | ( | ) | const |
Bad, only compatibility.
Deprecated.
- Returns:
Definition at line 311 of file keduvoctranslation.cpp.
| QStringList KEduVocTranslation::conjugationTenses | ( | ) | const |
Definition at line 306 of file keduvoctranslation.cpp.
| KEduVocDeclension * KEduVocTranslation::declension | ( | ) |
Returns a pointer to the declension object of this translation.
Returns 0 if no declension object exists!
- Returns:
- the declension
Definition at line 409 of file keduvoctranslation.cpp.
| KEduVocExpression * KEduVocTranslation::entry | ( | ) |
Definition at line 384 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::example | ( | ) | const |
returns example of this expression
- Returns:
- example or "" if no string available
Definition at line 259 of file keduvoctranslation.cpp.
| QList< KEduVocTranslation * > KEduVocTranslation::falseFriends | ( | ) | const |
returns false friends of this expression
- Returns:
- list of false friends
Definition at line 217 of file keduvoctranslation.cpp.
| void KEduVocTranslation::fromKVTML2 | ( | QDomElement & | parent | ) |
- Todo:
- synonyms, antonym
- Todo:
- false friends
Reimplemented from KEduVocText.
Definition at line 454 of file keduvoctranslation.cpp.
| KUrl KEduVocTranslation::imageUrl | ( | ) |
get the image url for this translation if it exists
Definition at line 335 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::irregularPlural | ( | ) | const |
Get a irregular plural form.
- Returns:
- plural of the word
| KEduVocLeitnerBox * KEduVocTranslation::leitnerBox | ( | ) | const |
returns the leitner box of this translation
- Returns:
- the box
Definition at line 368 of file keduvoctranslation.cpp.
| QStringList & KEduVocTranslation::multipleChoice | ( | ) |
returns multiple choice if available
Definition at line 289 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
Reimplemented from KEduVocText.
Definition at line 168 of file keduvoctranslation.cpp.
| bool KEduVocTranslation::operator== | ( | const KEduVocTranslation & | translation | ) | const |
Compare two translations, including word type etc.
- Parameters:
-
translation
- Returns:
- true if equal
- Todo:
- check and include declensions d->m_declension == translation.d->m_declension;
Reimplemented from KEduVocText.
Definition at line 147 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::paraphrase | ( | ) | const |
returns paraphrase of this expression
- Returns:
- paraphrase or "" if no string available
Definition at line 271 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::pronunciation | ( | ) | const |
returns the pronunciation of this expression
- Returns:
- pronunciation or "" if none available
Definition at line 295 of file keduvoctranslation.cpp.
| void KEduVocTranslation::removeAntonym | ( | KEduVocTranslation * | antonym | ) |
| void KEduVocTranslation::removeFalseFriend | ( | KEduVocTranslation * | falseFriend | ) |
remove a false friend
- Parameters:
-
falseFriend false friend of this index
Definition at line 212 of file keduvoctranslation.cpp.
| void KEduVocTranslation::removeSynonym | ( | KEduVocTranslation * | synonym | ) |
| void KEduVocTranslation::setAntonym | ( | const QString & | expression | ) |
sets antonym this expression
- Parameters:
-
expression antonym of this index
| void KEduVocTranslation::setComment | ( | const QString & | expr | ) |
sets comment of this expression
- Parameters:
-
expr comment of this index
Definition at line 201 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setComparative | ( | const QString & | comparative | ) |
Definition at line 394 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setConjugation | ( | const QString & | tense, | |
| const KEduVocConjugation & | conjugation | |||
| ) |
adds conjugations or replaces them, if they exist.
- Parameters:
-
conjugation conjugation
Definition at line 277 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 316 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setDeclension | ( | KEduVocDeclension * | declension | ) |
Set a new declension for a translation.
- Parameters:
-
declension
Definition at line 414 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setExample | ( | const QString & | expression | ) |
sets example this expression
- Parameters:
-
expression example of this index
Definition at line 253 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 343 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setIrregularPlural | ( | const QString & | plural | ) |
Set a irregular plural form.
- Parameters:
-
plural plural of the word
| void KEduVocTranslation::setLeitnerBox | ( | KEduVocLeitnerBox * | leitnerBox | ) |
sets the leitner box of this translation
- Parameters:
-
leitnerBox the box
Definition at line 373 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setParaphrase | ( | const QString & | expression | ) |
sets paraphrase of this expression
- Parameters:
-
expression paraphrase of this index
Definition at line 265 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setPronunciation | ( | const QString & | expression | ) |
sets the pronunciation of this expression
- Parameters:
-
expression pronunciation of this index
Definition at line 301 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 329 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setSuperlative | ( | const QString & | superlative | ) |
Definition at line 404 of file keduvoctranslation.cpp.
| void KEduVocTranslation::setWordType | ( | KEduVocWordType * | wordType | ) |
sets the word type of this expression
- Parameters:
-
type type of this expression ("" = none)
Definition at line 357 of file keduvoctranslation.cpp.
| KUrl KEduVocTranslation::soundUrl | ( | ) |
sets multiple choice
get the sound url for this translation if it exists
- Parameters:
-
mc multiple choice block get the sound url for this translation if it exists
Definition at line 322 of file keduvoctranslation.cpp.
| QString KEduVocTranslation::superlative | ( | ) | const |
Definition at line 399 of file keduvoctranslation.cpp.
| QList< KEduVocTranslation * > KEduVocTranslation::synonyms | ( | ) | const |
returns synonyms of this expression
- Returns:
- synonyms
Definition at line 233 of file keduvoctranslation.cpp.
| void KEduVocTranslation::toKVTML2 | ( | QDomElement & | parent | ) |
- Todo:
- synonyms, antonyms
- Todo:
- false friends
Reimplemented from KEduVocText.
Definition at line 421 of file keduvoctranslation.cpp.
| KEduVocWordType * KEduVocTranslation::wordType | ( | ) | const |
returns the word type of this expression, you will get a 0 pointer if wordtype isn't set for the translation
- Returns:
- type or "" if no type available
Definition at line 348 of file keduvoctranslation.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference