KEduVocWordType

Search for usage in LXR

KEduVocWordType Class Reference

#include <keduvocwordtype.h>

Inheritance diagram for KEduVocWordType:

Public Member Functions

 KEduVocWordType (const QString &name, KEduVocWordType *parent=nullptr)
 
 ~KEduVocWordType () override
 
KEduVocWordTypechildOfType (KEduVocWordFlags flags)
 
QList< KEduVocExpression * > entries (EnumEntriesRecursive recursive=NotRecursive) override
 
KEduVocExpressionentry (int row, EnumEntriesRecursive recursive=NotRecursive) override
 
int entryCount (EnumEntriesRecursive recursive=NotRecursive) override
 
void setWordType (KEduVocWordFlags flags)
 
KEduVocTranslationtranslation (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)
 
KEduVocContainerchildContainer (const QString &name)
 
KEduVocContainerchildContainer (int row)
 
int childContainerCount () const
 
QList< KEduVocContainer * > childContainers ()
 
KEduVocContainer::EnumContainerType containerType ()
 
void deleteChildContainer (int row)
 
KEduVocDocumentdocument () const
 
int expressionsOfGrade (int translation, grade_t grade, EnumEntriesRecursive recursive)
 
QUrl imageUrl ()
 
bool inPractice ()
 
void insertChildContainer (int row, KEduVocContainer *child)
 
QString name ()
 
KEduVocContaineroperator= (const KEduVocContainer &)
 
bool operator== (const KEduVocContainer &other) const
 
virtual KEduVocContainerparent ()
 
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()

KEduVocWordType::KEduVocWordType ( const QString & name,
KEduVocWordType * parent = nullptr )
explicit

default constructor

Definition at line 23 of file keduvocwordtype.cpp.

◆ ~KEduVocWordType()

KEduVocWordType::~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()

QList< KEduVocExpression * > KEduVocWordType::entries ( EnumEntriesRecursive recursive = NotRecursive)
overridevirtual

get a list of all entries in the lesson

Parameters
recursiveinclude entries in sublessons
Returns

Implements KEduVocContainer.

Definition at line 37 of file keduvocwordtype.cpp.

◆ entry()

KEduVocExpression * KEduVocWordType::entry ( int row,
EnumEntriesRecursive recursive = NotRecursive )
overridevirtual

Implements KEduVocContainer.

Definition at line 107 of file keduvocwordtype.cpp.

◆ entryCount()

int KEduVocWordType::entryCount ( EnumEntriesRecursive recursive = NotRecursive)
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:
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

KDE's Doxygen guidelines are available online.