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 |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () 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 |
Properties inherited from QObject | |
| objectName | |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
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 283 of file translation.h.
|
inlineslot |
Add a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 251 of file translation.h.
|
inlineslot |
Add a synonym.
- Parameters
-
synonym An excisting translation object that contains the synonym
Definition at line 267 of file translation.h.
|
inlineslot |
Returns antonyms of this expression.
- Returns
- antonyms (list of Translation objects)
Definition at line 315 of file translation.h.
|
inline |
Definition at line 98 of file translation.h.
|
inline |
Definition at line 188 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 328 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 109 of file translation.h.
|
inlineslot |
Returns false friends of this expression.
- Returns
- list of false friends (list of Translation objects)
Definition at line 299 of file translation.h.
|
inline |
Definition at line 219 of file translation.h.
|
inline |
Definition at line 77 of file translation.h.
|
inlineslot |
returns multiple choice if available
Definition at line 323 of file translation.h.
|
inline |
Definition at line 128 of file translation.h.
|
inline |
Definition at line 89 of file translation.h.
|
inlineslot |
Remove a antonym.
- Parameters
-
antonym An excisting translation object that contains the synonym
Definition at line 291 of file translation.h.
|
inlineslot |
Remove a false friend.
- Parameters
-
falseFriend false friend of this index
Definition at line 259 of file translation.h.
|
inlineslot |
Remove a synonym.
- Parameters
-
synonym An excisting translation object that contains the synonym
Definition at line 275 of file translation.h.
|
inline |
Definition at line 102 of file translation.h.
|
inline |
Definition at line 191 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 114 of file translation.h.
|
inline |
Definition at line 226 of file translation.h.
|
inline |
Definition at line 121 of file translation.h.
|
inline |
Definition at line 93 of file translation.h.
|
inline |
Definition at line 214 of file translation.h.
|
inline |
Definition at line 197 of file translation.h.
|
inline |
Definition at line 157 of file translation.h.
|
inline |
Definition at line 208 of file translation.h.
|
inline |
Definition at line 194 of file translation.h.
|
inlineslot |
Returns synonyms of this expression.
- Returns
- synonyms (list of Translation objects)
Definition at line 307 of file translation.h.
| QVariantList Scripting::Translation::toVariantList | ( | QList< T * > | objList | ) | const |
Definition at line 417 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 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