parley
LessonView Class Reference
View for the lesson list. More...
#include <lessonview.h>
Inheritance diagram for LessonView:

Public Slots | |
| void | columnsInserted () |
| void | slotCreateNewLesson () |
| void | slotDeleteLesson () |
| void | slotSplitLesson () |
Signals | |
| void | selectedLessonChanged (KEduVocLesson *lesson) |
Public Member Functions | |
| LessonView (Editor *parent) | |
| virtual void | setModel (LessonModel *model) |
Protected Slots | |
| void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Detailed Description
View for the lesson list.
Definition at line 28 of file lessonview.h.
Constructor & Destructor Documentation
| LessonView::LessonView | ( | Editor * | parent | ) |
- Todo:
- better icon
Definition at line 28 of file lessonview.cpp.
Member Function Documentation
| void LessonView::columnsInserted | ( | ) | [slot] |
get notified of new columns only to hide them (grades not shown by default).
Definition at line 173 of file lessonview.cpp.
| void LessonView::currentChanged | ( | const QModelIndex & | current, | |
| const QModelIndex & | previous | |||
| ) | [protected, slot] |
Definition at line 84 of file lessonview.cpp.
| void LessonView::selectedLessonChanged | ( | KEduVocLesson * | lesson | ) | [signal] |
| void LessonView::selectionChanged | ( | const QItemSelection & | selected, | |
| const QItemSelection & | deselected | |||
| ) | [protected, slot] |
Definition at line 97 of file lessonview.cpp.
| void LessonView::setModel | ( | LessonModel * | model | ) | [virtual] |
Set the model for the view.
- Parameters:
-
model the model
Definition at line 163 of file lessonview.cpp.
| void LessonView::slotCreateNewLesson | ( | ) | [slot] |
Append a lesson to the model and automatically set an edit up so the user can change "New lesson" into something meaningfull.
Definition at line 111 of file lessonview.cpp.
| void LessonView::slotDeleteLesson | ( | ) | [slot] |
| void LessonView::slotSplitLesson | ( | ) | [slot] |
Creates many small lessons with the contents of the original lesson.
- Todo:
- Let the user select if entries are taken by random or order.
- Todo:
- A nicer dialog would be great. Maybe with radio buttons to ask, if the entries should be in random order or as they come.
Definition at line 145 of file lessonview.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference