LibKEduVocDocument
keduvoctranslation.cpp
45 /// When creating multiple choice tests, these are possible answers. (otherwise other words are added randomly)
69KEduVocTranslation::KEduVocTranslationPrivate::KEduVocTranslationPrivate(KEduVocExpression *parent)
144 return KEduVocText::operator==(translation) && d->m_wordType == translation.d->m_wordType && d->m_leitnerBox == translation.d->m_leitnerBox
145 && d->m_comment == translation.d->m_comment && d->m_paraphrase == translation.d->m_paraphrase && d->m_example == translation.d->m_example
146 && d->m_pronunciation == translation.d->m_pronunciation && d->m_imageUrl == translation.d->m_imageUrl && d->m_soundUrl == translation.d->m_soundUrl
147 && d->m_comparative == translation.d->m_comparative && d->m_superlative == translation.d->m_superlative
148 && d->m_multipleChoice == translation.d->m_multipleChoice && d->m_synonyms == translation.d->m_synonyms && d->m_antonyms == translation.d->m_antonyms
void toKVTML2(QDomElement &parent, const QString &tense)
Create xml for this declension.
Definition keduvocconjugation.cpp:68
static KEduVocConjugation * fromKVTML2(QDomElement &parent)
Reads a declension from xml, returns 0 if it is empty.
Definition keduvocconjugation.cpp:169
A declension contains all forms that a NOUN possibly can have.
Definition keduvocdeclension.h:21
static KEduVocDeclension * fromKVTML2(QDomElement &parent)
Reads a declension from xml, returns 0 if it is empty.
Definition keduvocdeclension.cpp:109
void toKVTML2(QDomElement &parent)
Create xml for this declension.
Definition keduvocdeclension.cpp:57
This class contains one vocabulary expression as an original with one or more translations.
Definition keduvocexpression.h:27
static void appendTextElement(QDomElement &parent, const QString &elementName, const QString &text)
Helper function, appends a new element AND a text child to parent Only appends if text is NOT empty.
Definition keduvockvtml2writer.cpp:630
bool operator==(const KEduVocText &other) const
Compare two sets of grades.
Definition keduvoctext.cpp:175
KEduVocText & operator=(const KEduVocText &other)
Equal operator to copy grades.
Definition keduvoctext.cpp:162
Definition keduvoctranslation.h:25
KEDUVOCDOCUMENT_DEPRECATED QString comparative() const
Comparison forms of adjectives/adverbs.
Definition keduvoctranslation.cpp:380
void setConjugations(const QMap< QString, KEduVocConjugation > &conjugations)
Bad, only used for tense entry page, will be deleted later.
Definition keduvoctranslation.cpp:307
KEDUVOCDOCUMENT_DEPRECATED QStringList & multipleChoice()
This method is deprecated, please use.
Definition keduvoctranslation.cpp:272
KEduVocConjugation getConjugation(const QString &tense) const
Returns a conjugation if available.
Definition keduvoctranslation.cpp:264
KEDUVOCDOCUMENT_DEPRECATED KEduVocConjugation & conjugation(const QString &tense)
This method is deprecated, please use.
Definition keduvoctranslation.cpp:259
void setLeitnerBox(KEduVocLeitnerBox *leitnerBox)
Sets the leitner box of this translation.
Definition keduvoctranslation.cpp:364
QString paraphrase() const
Returns paraphrase of this expression.
Definition keduvoctranslation.cpp:249
void setExample(const QString &expression)
Sets example this expression.
Definition keduvoctranslation.cpp:234
QString pronunciation() const
Returns the pronunciation of this expression.
Definition keduvoctranslation.cpp:287
void setSoundUrl(const QUrl &url)
Set the sound url for this translation.
Definition keduvoctranslation.cpp:320
void removeSynonym(KEduVocTranslation *synonym)
Remove a synonym.
Definition keduvoctranslation.cpp:209
void removeAntonym(KEduVocTranslation *antonym)
Remove a antonym.
Definition keduvoctranslation.cpp:229
QStringList getMultipleChoice() const
Returns multiple choice if available.
Definition keduvoctranslation.cpp:277
KEduVocLeitnerBox * leitnerBox() const
Returns the leitner box of this translation.
Definition keduvoctranslation.cpp:359
KEDUVOCDOCUMENT_DEPRECATED QMap< QString, KEduVocConjugation > conjugations() const
Bad, only compatibility.
Definition keduvoctranslation.cpp:302
void addFalseFriend(KEduVocTranslation *falseFriend)
Add a false friend.
Definition keduvoctranslation.cpp:189
KEduVocDeclension * declension()
Returns a pointer to the declension object of this translation.
Definition keduvoctranslation.cpp:465
QUrl soundUrl()
Get the sound url for this translation if it exists.
Definition keduvoctranslation.cpp:313
QList< KEduVocTranslation * > synonyms() const
Returns synonyms of this expression.
Definition keduvoctranslation.cpp:214
QList< KEduVocTranslation * > antonyms() const
Returns antonyms of this expression.
Definition keduvoctranslation.cpp:224
void setConjugation(const QString &tense, const KEduVocConjugation &conjugation)
adds conjugations or replaces them, if they exist.
Definition keduvoctranslation.cpp:254
void setMultipleChoice(const QStringList &choices)
Sets multiple choice.
Definition keduvoctranslation.cpp:282
void setParaphrase(const QString &expression)
Sets paraphrase of this expression.
Definition keduvoctranslation.cpp:244
QList< KEduVocTranslation * > falseFriends() const
Returns false friends of this expression.
Definition keduvoctranslation.cpp:199
bool operator==(const KEduVocTranslation &translation) const
Compare two translations, including word type etc.
Definition keduvoctranslation.cpp:142
void setDeclension(KEduVocDeclension *declension)
Set a new declension for a translation.
Definition keduvoctranslation.cpp:470
void setWordType(KEduVocWordType *wordType)
Sets the word type of this expression.
Definition keduvoctranslation.cpp:348
void fromKVTML2(QDomElement &parent)
Definition keduvoctranslation.cpp:512
void setImageUrl(const QUrl &url)
Set the image url for this translation.
Definition keduvoctranslation.cpp:334
KEduVocTranslation(KEduVocExpression *entry)
Default constructor for an empty translation.
Definition keduvoctranslation.cpp:86
void removeFalseFriend(KEduVocTranslation *falseFriend)
Remove a false friend.
Definition keduvoctranslation.cpp:194
void setPronunciation(const QString &expression)
Sets the pronunciation of this expression.
Definition keduvoctranslation.cpp:292
KEduVocWordType * wordType() const
Returns the word type of this expression, you will get a 0 pointer if wordtype is not set for the tra...
Definition keduvoctranslation.cpp:339
QUrl imageUrl()
Get the image url for this translation if it exists.
Definition keduvoctranslation.cpp:326
KEduVocTranslation & operator=(const KEduVocTranslation &translation)
Equal operator to assign a translation to another one.
Definition keduvoctranslation.cpp:153
void setComment(const QString &expr)
Sets comment of this expression.
Definition keduvoctranslation.cpp:184
QDomElement createElement(const QString &tagName)
QString text() const const
QDomNode appendChild(const QDomNode &newChild)
QDomElement firstChildElement(const QString &tagName, const QString &namespaceURI) const const
bool hasChildNodes() const const
bool isNull() const const
QDomElement nextSiblingElement(const QString &tagName, const QString &namespaceURI) const const
QDomDocument ownerDocument() const const
void append(QList< T > &&value)
qsizetype indexOf(const AT &value, qsizetype from) const const
void removeAt(qsizetype i)
bool contains(const Key &key) const const
QList< Key > keys() const const
QString simplified() const const
This file is part of the KDE documentation.
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
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.