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

parley

  • Editor
  • LessonView
Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
Editor::LessonView Class Reference

#include <lessonview.h>

Inheritance diagram for Editor::LessonView:
Inheritance graph
[legend]

Public Slots

void columnsInserted ()
 
void setTranslation (KEduVocExpression *entry, int translationId)
 
void slotCreateNewLesson ()
 
void slotDeleteLesson ()
 
void slotSplitLesson ()
 
- Public Slots inherited from Editor::ContainerView
void slotRename ()
 

Signals

void lessonsInPracticeChanged ()
 
void selectedLessonChanged (KEduVocLesson *lesson)
 
void signalShowContainer (KEduVocContainer *selected)
 

Public Member Functions

 LessonView (EditorWindow *parent)
 
virtual void setModel (LessonModel *model)
 
- Public Member Functions inherited from Editor::ContainerView
 ContainerView (QWidget *parent=0)
 

Protected Slots

void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Additional Inherited Members

- Protected Attributes inherited from Editor::ContainerView
ContainerModel * m_model
 

Detailed Description

View for the lesson list.

Author
Frederik Gladhorn frede.nosp@m.rik..nosp@m.gladh.nosp@m.orn@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

Definition at line 29 of file lessonview.h.

Constructor & Destructor Documentation

LessonView::LessonView ( EditorWindow *  parent)
Todo:
better icon

Definition at line 33 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 192 of file lessonview.cpp.

void LessonView::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedslot

Definition at line 89 of file lessonview.cpp.

void Editor::LessonView::lessonsInPracticeChanged ( )
signal

Emitted when any of the checkboxes for the query change.

void Editor::LessonView::selectedLessonChanged ( KEduVocLesson *  lesson)
signal

A lesson was selected.

void LessonView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedslot

Definition at line 102 of file lessonview.cpp.

void LessonView::setModel ( LessonModel *  model)
virtual

Set the model for the view.

Parameters
modelthe model

Definition at line 182 of file lessonview.cpp.

void LessonView::setTranslation ( KEduVocExpression *  entry,
int  translationId 
)
slot

Definition at line 116 of file lessonview.cpp.

void Editor::LessonView::signalShowContainer ( KEduVocContainer *  selected)
signal

Emitted when a new container is selected.

Indicates the selected container.

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 130 of file lessonview.cpp.

void LessonView::slotDeleteLesson ( )
slot

Remove a lesson.

Ask if it's not empty.

Definition at line 145 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 164 of file lessonview.cpp.


The documentation for this class was generated from the following files:
  • lessonview.h
  • lessonview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal