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

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • vocabulary
lessonview.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef LESSONVIEW_H
17 #define LESSONVIEW_H
18 
19 #include "containerview.h"
20 #include "lessonmodel.h"
21 
22 namespace Editor {
23  class EditorWindow;
24 
29 class LessonView : public ContainerView
30 {
31  Q_OBJECT
32 
33 public:
34  LessonView(EditorWindow *parent);
35 
38  virtual void setModel(LessonModel *model);
39 
40 signals:
42  void selectedLessonChanged(KEduVocLesson* lesson);
43 
45  void signalShowContainer(KEduVocContainer* selected);
46 
48  void lessonsInPracticeChanged();
49 
50 public slots:
52  void slotCreateNewLesson();
53 
55  void slotDeleteLesson();
56 
60  void slotSplitLesson();
61 
65  void columnsInserted();
66 
67  void setTranslation(KEduVocExpression* entry, int translationId);
68 
69 protected slots:
70  void selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected );
71  void currentChanged( const QModelIndex & current, const QModelIndex & previous );
72 
73 private:
74  virtual void setModel(ContainerModel *model) { Q_UNUSED(model) }
75  virtual void setModel(QAbstractItemModel *model) { Q_UNUSED(model) }
76 
77  LessonModel *m_model;
78 };
79 }
80 
81 #endif
Editor::LessonView::setTranslation
void setTranslation(KEduVocExpression *entry, int translationId)
Definition: lessonview.cpp:116
Editor::LessonView::LessonView
LessonView(EditorWindow *parent)
Definition: lessonview.cpp:33
Editor::LessonView::columnsInserted
void columnsInserted()
get notified of new columns only to hide them (grades not shown by default).
Definition: lessonview.cpp:192
Editor::LessonView
View for the lesson list.
Definition: lessonview.h:29
Editor::LessonView::selectedLessonChanged
void selectedLessonChanged(KEduVocLesson *lesson)
A lesson was selected.
Editor::LessonView::slotCreateNewLesson
void slotCreateNewLesson()
Append a lesson to the model and automatically set an edit up so the user can change "New lesson" int...
Definition: lessonview.cpp:130
Editor::LessonView::slotDeleteLesson
void slotDeleteLesson()
Remove a lesson.
Definition: lessonview.cpp:145
Editor::LessonView::setModel
virtual void setModel(LessonModel *model)
Set the model for the view.
Definition: lessonview.cpp:182
Editor::LessonView::lessonsInPracticeChanged
void lessonsInPracticeChanged()
Emitted when any of the checkboxes for the query change.
Editor::ContainerModel
Model for the tree of containers (lessons, word types).
Definition: containermodel.h:33
QAbstractItemModel
containerview.h
Editor::ContainerView
View for containers (KEduVocContainer).
Definition: containerview.h:31
lessonmodel.h
Editor::EditorWindow
Definition: editor.h:46
Editor::LessonView::selectionChanged
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Definition: lessonview.cpp:102
Editor::LessonModel
Model for the tree of lessons.
Definition: lessonmodel.h:25
Editor::LessonView::signalShowContainer
void signalShowContainer(KEduVocContainer *selected)
Emitted when a new container is selected.
Editor::LessonView::currentChanged
void currentChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: lessonview.cpp:89
Editor::LessonView::slotSplitLesson
void slotSplitLesson()
Creates many small lessons with the contents of the original lesson.
Definition: lessonview.cpp:164
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