• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

LessonView Class Reference

View for the lesson list. More...

#include <lessonview.h>

Inheritance diagram for LessonView:
Inheritance graph
[legend]

List of all members.

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 &current, const QModelIndex &previous)
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)

Detailed Description

View for the lesson list.

Author:
Frederik Gladhorn <frederik.gladhorn@kdemail.net>

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]

Remove a lesson.

Ask if it's not empty.

Definition at line 126 of file lessonview.cpp.

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:
  • lessonview.h
  • lessonview.cpp

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal