KEduVocLeitnerBox

Search for usage in LXR

KEduVocLeitnerBox Class Reference

#include <keduvocleitnerbox.h>

Inheritance diagram for KEduVocLeitnerBox:

Public Member Functions

 KEduVocLeitnerBox (const QString &name, KEduVocLeitnerBox *parent=nullptr)
 
 ~KEduVocLeitnerBox () override
 
QList< KEduVocExpression * > entries (EnumEntriesRecursive recursive=NotRecursive) override
 
KEduVocExpressionentry (int row, EnumEntriesRecursive recursive=NotRecursive) override
 
int entryCount (EnumEntriesRecursive recursive=NotRecursive) override
 
KEduVocTranslationtranslation (int row)
 
- 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

Leitner Boxes are an alternative grading system.

Classically flash cards are kept in boxes and moved corresponding to the users knowledge level.

Definition at line 23 of file keduvocleitnerbox.h.

Constructor & Destructor Documentation

◆ KEduVocLeitnerBox()

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

default constructor

Definition at line 20 of file keduvocleitnerbox.cpp.

◆ ~KEduVocLeitnerBox()

KEduVocLeitnerBox::~KEduVocLeitnerBox ( )
override

destructor

Definition at line 28 of file keduvocleitnerbox.cpp.

Member Function Documentation

◆ entries()

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

get a list of all entries in the box

Returns

Implements KEduVocContainer.

Definition at line 36 of file keduvocleitnerbox.cpp.

◆ entry()

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

Implements KEduVocContainer.

Definition at line 98 of file keduvocleitnerbox.cpp.

◆ entryCount()

int KEduVocLeitnerBox::entryCount ( EnumEntriesRecursive recursive = NotRecursive)
overridevirtual

get the number of entries in the lesson

Implements KEduVocContainer.

Definition at line 42 of file keduvocleitnerbox.cpp.

◆ translation()

KEduVocTranslation * KEduVocLeitnerBox::translation ( int row)

The leitner box class keeps track of individual translations, because for one entry, the translations can have different grades.

Parameters
row
Returns

Definition at line 93 of file keduvocleitnerbox.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.