KEduVocTranslation
#include <keduvoctranslation.h>
Public Types | |
enum | Related { Synonym , Antonym , FalseFriend } |
Detailed Description
Definition at line 24 of file keduvoctranslation.h.
Member Enumeration Documentation
◆ Related
enum KEduVocTranslation::Related |
Definition at line 27 of file keduvoctranslation.h.
Constructor & Destructor Documentation
◆ KEduVocTranslation() [1/3]
KEduVocTranslation::KEduVocTranslation | ( | KEduVocExpression * | entry | ) |
Default constructor for an empty translation.
Definition at line 86 of file keduvoctranslation.cpp.
◆ KEduVocTranslation() [2/3]
KEduVocTranslation::KEduVocTranslation | ( | KEduVocExpression * | entry, |
const QString & | translation ) |
Constructor.
- Parameters
-
entry translation is used as translation
Definition at line 91 of file keduvoctranslation.cpp.
◆ KEduVocTranslation() [3/3]
KEduVocTranslation::KEduVocTranslation | ( | const KEduVocTranslation & | other | ) |
copy constructor for d-pointer safety
Definition at line 97 of file keduvoctranslation.cpp.
◆ ~KEduVocTranslation()
KEduVocTranslation::~KEduVocTranslation | ( | ) |
Destructor.
Definition at line 126 of file keduvoctranslation.cpp.
Member Function Documentation
◆ addAntonym()
void KEduVocTranslation::addAntonym | ( | KEduVocTranslation * | antonym | ) |
◆ addFalseFriend()
void KEduVocTranslation::addFalseFriend | ( | KEduVocTranslation * | falseFriend | ) |
Add a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 189 of file keduvoctranslation.cpp.
◆ addSynonym()
void KEduVocTranslation::addSynonym | ( | KEduVocTranslation * | synonym | ) |
◆ antonym()
QString KEduVocTranslation::antonym | ( | ) | const |
Returns antonym of this expression.
- Returns
- antonym or "" if no string available
◆ antonyms()
QList< KEduVocTranslation * > KEduVocTranslation::antonyms | ( | ) | const |
Returns antonyms of this expression.
- Returns
- antonyms
Definition at line 224 of file keduvoctranslation.cpp.
◆ article()
KEduVocText KEduVocTranslation::article | ( | ) | const |
Definition at line 448 of file keduvoctranslation.cpp.
◆ comment()
QString KEduVocTranslation::comment | ( | ) | const |
Returns comments of this expression.
- Returns
- comment or "" if no comment available
Definition at line 179 of file keduvoctranslation.cpp.
◆ comparative()
QString KEduVocTranslation::comparative | ( | ) | const |
Comparison forms of adjectives/adverbs.
Definition at line 380 of file keduvoctranslation.cpp.
◆ comparativeForm()
KEduVocText KEduVocTranslation::comparativeForm | ( | ) | const |
Definition at line 414 of file keduvoctranslation.cpp.
◆ conjugation()
KEduVocConjugation & KEduVocTranslation::conjugation | ( | const QString & | tense | ) |
This method is deprecated, please use.
- See also
- getConjugation()
- setConjugation() Returns a conjugation if available
- Parameters
-
tense tense of the requested conjugation
- Returns
- the conjugation
Definition at line 259 of file keduvoctranslation.cpp.
◆ conjugations()
QMap< QString, KEduVocConjugation > KEduVocTranslation::conjugations | ( | ) | const |
◆ conjugationTenses()
QStringList KEduVocTranslation::conjugationTenses | ( | ) | const |
Definition at line 297 of file keduvoctranslation.cpp.
◆ declension()
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 465 of file keduvoctranslation.cpp.
◆ entry()
KEduVocExpression * KEduVocTranslation::entry | ( | ) |
Definition at line 375 of file keduvoctranslation.cpp.
◆ example()
QString KEduVocTranslation::example | ( | ) | const |
Returns example of this expression.
- Returns
- example or "" if no string available
Definition at line 239 of file keduvoctranslation.cpp.
◆ falseFriends()
QList< KEduVocTranslation * > KEduVocTranslation::falseFriends | ( | ) | const |
Returns false friends of this expression.
- Returns
- list of false friends
Definition at line 199 of file keduvoctranslation.cpp.
◆ fromKVTML2()
void KEduVocTranslation::fromKVTML2 | ( | QDomElement & | parent | ) |
◆ getConjugation()
KEduVocConjugation KEduVocTranslation::getConjugation | ( | const QString & | tense | ) | const |
Returns a conjugation if available.
- Parameters
-
tense tense of the requested conjugation
- Returns
- the conjugation
Definition at line 264 of file keduvoctranslation.cpp.
◆ getMultipleChoice()
QStringList KEduVocTranslation::getMultipleChoice | ( | ) | const |
Returns multiple choice if available.
- Returns
- list of multiple choice answers
Definition at line 277 of file keduvoctranslation.cpp.
◆ imageUrl()
QUrl KEduVocTranslation::imageUrl | ( | ) |
Get the image url for this translation if it exists.
get the image url for this translation if it exists
Definition at line 326 of file keduvoctranslation.cpp.
◆ irregularPlural()
QString KEduVocTranslation::irregularPlural | ( | ) | const |
Gets an irregular plural form.
- Returns
- plural of the word
◆ leitnerBox()
KEduVocLeitnerBox * KEduVocTranslation::leitnerBox | ( | ) | const |
Returns the leitner box of this translation.
- Returns
- the box
Definition at line 359 of file keduvoctranslation.cpp.
◆ multipleChoice()
QStringList & KEduVocTranslation::multipleChoice | ( | ) |
This method is deprecated, please use.
- See also
- getMultipleChoice()
- setMultipleChoice() Returns multiple choice if available
Definition at line 272 of file keduvoctranslation.cpp.
◆ operator=()
KEduVocTranslation & KEduVocTranslation::operator= | ( | const KEduVocTranslation & | translation | ) |
Equal operator to assign a translation to another one.
- Parameters
-
translation translation to be copied
- Returns
- reference to the new translation
Definition at line 153 of file keduvoctranslation.cpp.
◆ operator==()
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;
Definition at line 142 of file keduvoctranslation.cpp.
◆ paraphrase()
QString KEduVocTranslation::paraphrase | ( | ) | const |
Returns paraphrase of this expression.
- Returns
- paraphrase or "" if no string available
Definition at line 249 of file keduvoctranslation.cpp.
◆ pronunciation()
QString KEduVocTranslation::pronunciation | ( | ) | const |
Returns the pronunciation of this expression.
- Returns
- pronunciation or "" if none available
Definition at line 287 of file keduvoctranslation.cpp.
◆ removeAntonym()
void KEduVocTranslation::removeAntonym | ( | KEduVocTranslation * | antonym | ) |
◆ removeFalseFriend()
void KEduVocTranslation::removeFalseFriend | ( | KEduVocTranslation * | falseFriend | ) |
Remove a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 194 of file keduvoctranslation.cpp.
◆ removeSynonym()
void KEduVocTranslation::removeSynonym | ( | KEduVocTranslation * | synonym | ) |
◆ setAntonym()
void KEduVocTranslation::setAntonym | ( | const QString & | expression | ) |
Sets antonym this expression.
- Parameters
-
expression antonym of this index
◆ setArticle()
void KEduVocTranslation::setArticle | ( | const KEduVocText & | article | ) |
Definition at line 457 of file keduvoctranslation.cpp.
◆ setComment()
void KEduVocTranslation::setComment | ( | const QString & | expr | ) |
Sets comment of this expression.
- Parameters
-
expr comment of this index
Definition at line 184 of file keduvoctranslation.cpp.
◆ setComparative()
void KEduVocTranslation::setComparative | ( | const QString & | comparative | ) |
Definition at line 388 of file keduvoctranslation.cpp.
◆ setComparativeForm()
void KEduVocTranslation::setComparativeForm | ( | const KEduVocText & | comparative | ) |
Definition at line 423 of file keduvoctranslation.cpp.
◆ setConjugation()
void KEduVocTranslation::setConjugation | ( | const QString & | tense, |
const KEduVocConjugation & | conjugation ) |
adds conjugations or replaces them, if they exist.
- Parameters
-
tense tense conjugation conjugation
Definition at line 254 of file keduvoctranslation.cpp.
◆ setConjugations()
void KEduVocTranslation::setConjugations | ( | const QMap< QString, KEduVocConjugation > & | conjugations | ) |
Bad, only used for tense entry page, will be deleted later.
Deprecated.
- Parameters
-
conjugations
Definition at line 307 of file keduvoctranslation.cpp.
◆ setDeclension()
void KEduVocTranslation::setDeclension | ( | KEduVocDeclension * | declension | ) |
Set a new declension for a translation.
- Parameters
-
declension
Definition at line 470 of file keduvoctranslation.cpp.
◆ setExample()
void KEduVocTranslation::setExample | ( | const QString & | expression | ) |
Sets example this expression.
- Parameters
-
expression example of this index
Definition at line 234 of file keduvoctranslation.cpp.
◆ setImageUrl()
void KEduVocTranslation::setImageUrl | ( | const QUrl & | url | ) |
Set the image url for this translation.
set the image url for this translation
- Parameters
-
url url of the image
Definition at line 334 of file keduvoctranslation.cpp.
◆ setIrregularPlural()
void KEduVocTranslation::setIrregularPlural | ( | const QString & | plural | ) |
Sets an irregular plural form.
- Parameters
-
plural plural of the word
◆ setLeitnerBox()
void KEduVocTranslation::setLeitnerBox | ( | KEduVocLeitnerBox * | leitnerBox | ) |
Sets the leitner box of this translation.
- Parameters
-
leitnerBox the box
Definition at line 364 of file keduvoctranslation.cpp.
◆ setMultipleChoice()
void KEduVocTranslation::setMultipleChoice | ( | const QStringList & | choices | ) |
Sets multiple choice.
- Parameters
-
choices multiple choice block
Definition at line 282 of file keduvoctranslation.cpp.
◆ setParaphrase()
void KEduVocTranslation::setParaphrase | ( | const QString & | expression | ) |
Sets paraphrase of this expression.
- Parameters
-
expression paraphrase of this index
Definition at line 244 of file keduvoctranslation.cpp.
◆ setPronunciation()
void KEduVocTranslation::setPronunciation | ( | const QString & | expression | ) |
Sets the pronunciation of this expression.
- Parameters
-
expression pronunciation of this index
Definition at line 292 of file keduvoctranslation.cpp.
◆ setSoundUrl()
void KEduVocTranslation::setSoundUrl | ( | const QUrl & | url | ) |
Set the sound url for this translation.
set the sound url for this translation
- Parameters
-
url url of the sound file
Definition at line 320 of file keduvoctranslation.cpp.
◆ setSuperlative()
void KEduVocTranslation::setSuperlative | ( | const QString & | superlative | ) |
Definition at line 405 of file keduvoctranslation.cpp.
◆ setSuperlativeForm()
void KEduVocTranslation::setSuperlativeForm | ( | const KEduVocText & | superlative | ) |
Definition at line 440 of file keduvoctranslation.cpp.
◆ setWordType()
void KEduVocTranslation::setWordType | ( | KEduVocWordType * | wordType | ) |
Sets the word type of this expression.
- Parameters
-
wordType type of this expression ("" = none)
Definition at line 348 of file keduvoctranslation.cpp.
◆ soundUrl()
QUrl KEduVocTranslation::soundUrl | ( | ) |
Get the sound url for this translation if it exists.
get the sound url for this translation if it exists
Definition at line 313 of file keduvoctranslation.cpp.
◆ superlative()
QString KEduVocTranslation::superlative | ( | ) | const |
Definition at line 397 of file keduvoctranslation.cpp.
◆ superlativeForm()
KEduVocText KEduVocTranslation::superlativeForm | ( | ) | const |
Definition at line 431 of file keduvoctranslation.cpp.
◆ synonyms()
QList< KEduVocTranslation * > KEduVocTranslation::synonyms | ( | ) | const |
Returns synonyms of this expression.
- Returns
- synonyms
Definition at line 214 of file keduvoctranslation.cpp.
◆ toKVTML2()
void KEduVocTranslation::toKVTML2 | ( | QDomElement & | parent | ) |
◆ wordType()
KEduVocWordType * KEduVocTranslation::wordType | ( | ) | const |
Returns the word type of this expression, you will get a 0 pointer if wordtype is not set for the translation.
- Returns
- type or "" if no type available
Definition at line 339 of file keduvoctranslation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.