KEduVocWordType
#include <keduvocwordtype.h>
Public Member Functions | |
KEduVocWordType (const QString &name, KEduVocWordType *parent=nullptr) | |
~KEduVocWordType () override | |
KEduVocWordType * | childOfType (KEduVocWordFlags flags) |
QList< KEduVocExpression * > | entries (EnumEntriesRecursive recursive=NotRecursive) override |
KEduVocExpression * | entry (int row, EnumEntriesRecursive recursive=NotRecursive) override |
int | entryCount (EnumEntriesRecursive recursive=NotRecursive) override |
void | setWordType (KEduVocWordFlags flags) |
KEduVocTranslation * | translation (int row) |
KEduVocWordFlags | wordType () const |
Public Member Functions inherited from KEduVocContainer | |
KEduVocContainer (const KEduVocContainer &other) | |
KEduVocContainer (const QString &name, EnumContainerType type, KEduVocContainer *parent=nullptr) | |
virtual | ~KEduVocContainer () |
void | appendChildContainer (KEduVocContainer *child) |
double | averageGrade (int translation, EnumEntriesRecursive recursive) |
KEduVocContainer * | childContainer (const QString &name) |
KEduVocContainer * | childContainer (int row) |
int | childContainerCount () const |
QList< KEduVocContainer * > | childContainers () |
KEduVocContainer::EnumContainerType | containerType () |
void | deleteChildContainer (int row) |
KEduVocDocument * | document () const |
int | expressionsOfGrade (int translation, grade_t grade, EnumEntriesRecursive recursive) |
QUrl | imageUrl () |
bool | inPractice () |
void | insertChildContainer (int row, KEduVocContainer *child) |
QString | name () |
KEduVocContainer & | operator= (const KEduVocContainer &) |
bool | operator== (const KEduVocContainer &other) const |
virtual KEduVocContainer * | parent () |
void | removeChildContainer (int row) |
void | removeTranslation (int translation) |
void | resetGrades (int translation, EnumEntriesRecursive recursive) |
int | row () const |
void | setContainerType (KEduVocContainer::EnumContainerType type) |
void | setImageUrl (const QUrl &url) |
void | setInPractice (bool inPractice) |
void | setName (const QString &name) |
Additional Inherited Members | |
Public Types inherited from KEduVocContainer | |
enum | EnumContainerType { Container , Lesson , WordType , Leitner } |
enum | EnumEntriesRecursive { NotRecursive = 0 , Recursive = 1 } |
Protected Member Functions inherited from KEduVocContainer | |
KEduVocContainer (const QString &name, EnumContainerType type, KEduVocDocument *document) | |
QList< KEduVocExpression * > | entriesRecursive () |
void | invalidateChildLessonEntries () |
void | updateChildLessonEntries () |
Detailed Description
class to store translation word types
Definition at line 23 of file keduvocwordtype.h.
Constructor & Destructor Documentation
◆ KEduVocWordType()
|
explicit |
default constructor
Definition at line 23 of file keduvocwordtype.cpp.
◆ ~KEduVocWordType()
|
override |
destructor
Definition at line 29 of file keduvocwordtype.cpp.
Member Function Documentation
◆ childOfType()
KEduVocWordType * KEduVocWordType::childOfType | ( | KEduVocWordFlags | flags | ) |
Return a child class (or this class) that is of the specified type.
Returns 0 if no class of that type is found.
- Parameters
-
flags
- Returns
Definition at line 125 of file keduvocwordtype.cpp.
◆ entries()
|
overridevirtual |
get a list of all entries in the lesson
- Parameters
-
recursive include entries in sublessons
- Returns
Implements KEduVocContainer.
Definition at line 37 of file keduvocwordtype.cpp.
◆ entry()
|
overridevirtual |
Implements KEduVocContainer.
Definition at line 107 of file keduvocwordtype.cpp.
◆ entryCount()
|
overridevirtual |
get the number of entries in the lesson
Implements KEduVocContainer.
Definition at line 46 of file keduvocwordtype.cpp.
◆ setWordType()
void KEduVocWordType::setWordType | ( | KEduVocWordFlags | flags | ) |
assignment operator
Internally (different from the name) the class can have one of the preset word types. These are used to determine special properties (verbs have conjugations available for example).
- Parameters
-
flags
Definition at line 120 of file keduvocwordtype.cpp.
◆ translation()
KEduVocTranslation * KEduVocWordType::translation | ( | int | row | ) |
The word type class does keep track of individual translations, because for one entry, the translations can have different word types (eg.
genders of nouns tend to be different in different languages).
- Parameters
-
row
- Returns
Definition at line 102 of file keduvocwordtype.cpp.
◆ wordType()
KEduVocWordFlags KEduVocWordType::wordType | ( | ) | const |
Return the raw WordTypeFlags.
Returns NoInformation if no flags are set.
- Returns
- WordTypeFlags
Definition at line 115 of file keduvocwordtype.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.