LibKEduVocDocument
keduvoccontainer.cpp
49KEduVocContainer::KEduVocContainer(const QString &name, EnumContainerType type, KEduVocDocument *document)
61KEduVocContainer::KEduVocContainer(const QString &name, EnumContainerType type, KEduVocContainer *parent)
149 return d->m_parentContainer->d->m_childContainers.indexOf(const_cast<KEduVocContainer *>(this));
283 return ((sum * 100.0 / KV_MAX_GRADE) + (presum * 100.0 / (KV_MAX_GRADE * KV_MAX_GRADE))) / count;
286int KEduVocContainer::expressionsOfGrade(int translation, grade_t grade, EnumEntriesRecursive recursive)
class to store information about a container - that can be a lesson or word types
Definition keduvoccontainer.h:22
virtual QList< KEduVocExpression * > entries(EnumEntriesRecursive recursive=NotRecursive)=0
get a list of all entries in the container
void setContainerType(KEduVocContainer::EnumContainerType type)
Set the type of container.
Definition keduvoccontainer.cpp:217
bool operator==(const KEduVocContainer &other) const
equality operator
Definition keduvoccontainer.cpp:161
KEduVocContainer & operator=(const KEduVocContainer &)
assignment operator
Definition keduvoccontainer.cpp:154
KEduVocContainer::EnumContainerType containerType()
The type of this container.
Definition keduvoccontainer.cpp:222
void resetGrades(int translation, EnumEntriesRecursive recursive)
Remove grades from all entries of this lessons.
Definition keduvoccontainer.cpp:297
void setImageUrl(const QUrl &url)
set the image url for this container
Definition keduvoccontainer.cpp:232
void updateChildLessonEntries()
Recreate the cache of entries in this lesson's child lessons.
Definition keduvoccontainer.cpp:245
void invalidateChildLessonEntries()
Set the child entry cache to invalid.
Definition keduvoccontainer.cpp:257
KEduVocContainer(const QString &name, EnumContainerType type, KEduVocContainer *parent=nullptr)
default constructor
Definition keduvoccontainer.cpp:61
The primary entry point to the hierarchy of objects describing vocabularies.
Definition keduvocdocument.h:32
void setModified(bool dirty=true)
Indicates if the document is modified.
Definition keduvocdocument.cpp:190
This class contains one vocabulary expression as an original with one or more translations.
Definition keduvocexpression.h:27
KEduVocTranslation * translation(int index)
Get a pointer to the translation.
Definition keduvocexpression.cpp:165
Definition keduvoctranslation.h:25
Type type(const QSqlDatabase &db)
QString name(StandardAction id)
void append(QList< T > &&value)
qsizetype count() const const
qsizetype indexOf(const AT &value, qsizetype from) const const
iterator insert(const_iterator before, parameter_type value)
void removeAt(qsizetype i)
T takeAt(qsizetype i)
T value(qsizetype i) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.