parley
LessonModel Class Reference
#include <lessonmodel.h>
Inheritance diagram for LessonModel:

Detailed Description
Model for the tree of lessons.Definition at line 24 of file lessonmodel.h.
Public Types | |
| enum | SplitLessonOrder { Sorted, Random } |
Public Member Functions | |
| LessonModel (QObject *parent=0) | |
| void | splitLesson (const QModelIndex &containerIndex, int entriesPerLesson, SplitLessonOrder order) |
Protected Member Functions | |
| KEduVocContainer * | rootContainer () const |
Member Enumeration Documentation
When splitting a lesson into smaller ones - how to sort the entries into lessons.
Definition at line 30 of file lessonmodel.h.
Constructor & Destructor Documentation
| LessonModel::LessonModel | ( | QObject * | parent = 0 |
) | [explicit] |
Definition at line 25 of file lessonmodel.cpp.
Member Function Documentation
| KEduVocContainer * LessonModel::rootContainer | ( | ) | const [protected, virtual] |
| void LessonModel::splitLesson | ( | const QModelIndex & | containerIndex, | |
| int | entriesPerLesson, | |||
| SplitLessonOrder | order | |||
| ) |
Divide a lesson into smaller ones.
Tip: If you create a lesson that is >= the original one and use random order, you get your lesson reshuffled. Maybe that is sometimes useful. For now the lessons are appended at the end.
- Parameters:
-
lessonIndex lesson to split entriesPerLesson number of entries in each new lesson order one of SplitLessonOrder
Definition at line 38 of file lessonmodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference