parley
#include <translation.h>

Public Slots | |
| void | addAntonym (Translation *antonym) |
| void | addFalseFriend (Translation *falseFriend) |
| void | addSynonym (Translation *synonym) |
| QVariantList | antonyms () const |
| QObject * | conjugation (const QString &tense, const KEduVocWordFlags &flags) |
| QStringList | conjugationTenses () const |
| QStringList | conjugationTexts (const QString &tense) |
| QStringList | conjugationTexts (const QString &tense, const KEduVocWordFlags &flags) |
| QVariantList | falseFriends () const |
| QStringList | multipleChoice () |
| void | removeAntonym (Translation *antonym) |
| void | removeFalseFriend (Translation *falseFriend) |
| void | removeSynonym (Translation *synonym) |
| void | setConjugation (QObject *conjugation, const QString &tense, const KEduVocWordFlags &flags) |
| void | setConjugationText (const QString &conjugation, const QString &tense, const KEduVocWordFlags &flags) |
| QVariantList | synonyms () const |
| QString | wordType () const |
Public Slots inherited from Scripting::Text | |
| void | decGrade () |
| void | incBadCount () |
| void | incGrade () |
| void | incPracticeCount () |
| QString | practiceDate () const |
| QString | practiceDate (const QString &format) const |
| void | resetGrades () |
| void | setPracticeDate (const QString &date) |
| void | setPracticeDate (const QString &date, const QString &format) |
Public Member Functions | |
| Translation (Expression *entry) | |
| Translation (Expression *entry, const QString &translation) | |
| Translation (KEduVocTranslation *translation) | |
| ~Translation () | |
| QString | comment () const |
| QString | comparative () const |
| QString | example () const |
| QString | imageUrl () |
| KEduVocTranslation * | kEduVocTranslation () |
| QString | paraphrase () const |
| QString | pronunciation () const |
| void | setComment (const QString &expr) |
| void | setComparative (const QString &comparative) |
| void | setExample (const QString &expression) |
| void | setImageUrl (const QString &url) |
| void | setParaphrase (const QString &expression) |
| void | setPronunciation (const QString &expression) |
| void | setSoundUrl (const QString &url) |
| void | setSuperlative (const QString &superlative) |
| void | setWordType (KEduVocWordType *wordType) |
| QString | soundUrl () |
| QString | superlative () const |
| template<class T , class S > | |
| QVariantList | toVariantList (QList< T * > objList) const |
Public Member Functions inherited from Scripting::Text | |
| Text (const QString &text=QString()) | |
| Text (KEduVocText *text) | |
| Text (const KEduVocText &text) | |
| ~Text () | |
| unsigned int | badCount () const |
| unsigned int | grade () const |
| bool | isEmpty () |
| KEduVocText * | kEduVocText () |
| unsigned int | practiceCount () const |
| void | setBadCount (unsigned int count) |
| void | setGrade (unsigned int grade) |
| void | setPracticeCount (unsigned int count) |
| void | setText (const QString &expr) |
| QString | text () const |
Properties | |
| QString | comment |
| QString | comparative |
| QString | example |
| QString | imageUrl |
| QString | paraphrase |
| QString | pronunciation |
| QString | soundUrl |
| QString | superlative |
Properties inherited from Scripting::Text | |
| unsigned int | badCount |
| unsigned int | grade |
| bool | isEmpty |
| unsigned int | practiceCount |
| QString | text |
Additional Inherited Members | |
Protected Attributes inherited from Scripting::Text | |
| KEduVocText * | m_text |
Detailed Description
KEduVocTranslation wrapper class for scripting with Kross.
Definition at line 36 of file translation.h.
Constructor & Destructor Documentation
| Scripting::Translation::Translation | ( | Expression * | entry | ) |
Definition at line 19 of file translation.cpp.
| Scripting::Translation::Translation | ( | Expression * | entry, |
| const QString & | translation | ||
| ) |
Definition at line 25 of file translation.cpp.
| Scripting::Translation::Translation | ( | KEduVocTranslation * | translation | ) |
Definition at line 31 of file translation.cpp.
| Scripting::Translation::~Translation | ( | ) |
Definition at line 36 of file translation.cpp.
Member Function Documentation
|
inlineslot |
Add a antonym.
- Parameters
-
antonym An excisting translation object that contains the antonym
Definition at line 239 of file translation.h.
|
inlineslot |
Add a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 215 of file translation.h.
|
inlineslot |
Add a synonym.
- Parameters
-
synonym An excisting translation object that contains the synonym
Definition at line 227 of file translation.h.
|
inlineslot |
Returns antonyms of this expression.
- Returns
- antonyms (list of Translation objects)
Definition at line 263 of file translation.h.
|
inline |
Definition at line 92 of file translation.h.
|
inline |
Definition at line 168 of file translation.h.
|
slot |
returns the conjugation of the verb in the given tense, number and person
- Parameters
-
tense The conjugation tense (see Document::tenses()) number The conjugation number. See Parley::Number enum person The conjugation person. See Parley::Person enum
- Returns
- A Text object that represents the conjugation
Definition at line 54 of file translation.cpp.
|
inlineslot |
returns a string list with the available conjugation tenses
Definition at line 272 of file translation.h.
|
slot |
Returns all the possible conjugations of the given tense.
- Parameters
-
tense The tense of the conjugation
- Returns
- A String list with 15 entries. First 5 are for Singluar [First, Second, ThirdMale, ThirdFemale, ThirdNeutral/Third], next 5 for Dual (in a similar way) and last 5 for plural.
Definition at line 71 of file translation.cpp.
|
slot |
Returns the conjugations of the given tense and number.
- Parameters
-
tense The tense of conjugation number Conjugation number. See Parley::Number enum
- Returns
- A String list with 5 conjugations in the order of [First, Second, ThirdMale, ThirdFemale, Third]
Definition at line 85 of file translation.cpp.
|
inline |
Definition at line 99 of file translation.h.
|
inlineslot |
Returns false friends of this expression.
- Returns
- list of false friends (list of Translation objects)
Definition at line 251 of file translation.h.
|
inline |
Definition at line 187 of file translation.h.
|
inline |
Definition at line 77 of file translation.h.
|
inlineslot |
returns multiple choice if available
Definition at line 269 of file translation.h.
|
inline |
Definition at line 112 of file translation.h.
|
inline |
Definition at line 87 of file translation.h.
|
inlineslot |
Remove a antonym.
- Parameters
-
antonym An excisting translation object that contains the synonym
Definition at line 245 of file translation.h.
|
inlineslot |
Remove a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 221 of file translation.h.
|
inlineslot |
Remove a synonym.
- Parameters
-
synonym An excisting translation object that contains the synonym
Definition at line 233 of file translation.h.
|
inline |
Definition at line 94 of file translation.h.
|
inline |
Definition at line 169 of file translation.h.
|
slot |
Sets the conjugation of the verb in the given tense, number and person.
Use this method instead of setConjugationText when the grades, practice count etc are important and want them to be set in this conjugation
- Parameters
-
conjugation Scripting::Text object as the conjugation tense The tense that conjugationbelongs to (see Document::tenses())number The number of the conjugation. See Parley::Number enumperson The person of the conjugation. See Parley::Person enum
Definition at line 60 of file translation.cpp.
|
slot |
Sets the conjugation of the verb in the given tense, number and person.
- Parameters
-
conjugation The conjugation in tense,number,persontense The tense that conjugationbelongs to (see Document::tenses())number The number of the conjugation. See Parley::Number enumperson The person of the conjugation. See Parley::Person enum
Definition at line 47 of file translation.cpp.
|
inline |
Definition at line 102 of file translation.h.
|
inline |
Definition at line 192 of file translation.h.
|
inline |
Definition at line 107 of file translation.h.
|
inline |
Definition at line 89 of file translation.h.
|
inline |
Definition at line 184 of file translation.h.
|
inline |
Definition at line 171 of file translation.h.
|
inline |
Definition at line 139 of file translation.h.
|
inline |
Definition at line 180 of file translation.h.
|
inline |
Definition at line 170 of file translation.h.
|
inlineslot |
Returns synonyms of this expression.
- Returns
- synonyms (list of Translation objects)
Definition at line 257 of file translation.h.
| QVariantList Scripting::Translation::toVariantList | ( | QList< T * > | objList | ) | const |
Definition at line 359 of file translation.h.
|
slot |
returns the word type of this expression
Definition at line 40 of file translation.cpp.
Property Documentation
|
readwrite |
Comment on this translation.
Definition at line 42 of file translation.h.
|
readwrite |
Comparative form.
Definition at line 50 of file translation.h.
|
readwrite |
Example sentence.
Definition at line 44 of file translation.h.
|
readwrite |
Url of the image file.
Definition at line 56 of file translation.h.
|
readwrite |
Paraphrase.
Definition at line 46 of file translation.h.
|
readwrite |
Word pronunciation.
Definition at line 40 of file translation.h.
|
readwrite |
Url of the sound file.
Definition at line 54 of file translation.h.
|
readwrite |
Superlative form.
Definition at line 52 of file translation.h.
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:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Slots inherited from