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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • editor
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 {
24 class EditorWindow;
25 
30 class LessonView : public ContainerView
31 {
32  Q_OBJECT
33 
34 public:
35  LessonView(EditorWindow *parent);
36 
39  virtual void setModel(LessonModel *model);
40 
41 signals:
43  void selectedLessonChanged(KEduVocLesson* lesson);
44 
46  void signalShowContainer(KEduVocContainer* selected);
47 
49  void lessonsInPracticeChanged();
50 
51 public slots:
53  void slotCreateNewLesson();
54 
56  void slotDeleteLesson();
57 
61  void slotSplitLesson();
62 
64  void slotRemoveGradesLesson();
65 
67  void slotRemoveGradesLessonChildren();
68 
72  void columnsInserted();
73 
74  void setTranslation(KEduVocExpression* entry, int translationId);
75 
77  void expandAllLesson();
78 
80  void collapseAllLesson();
81 
82 protected slots:
83  void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);
84  void currentChanged(const QModelIndex & current, const QModelIndex & previous);
85 
86 private:
87  virtual void setModel(ContainerModel *model) {
88  Q_UNUSED(model)
89  }
90  virtual void setModel(QAbstractItemModel *model) {
91  Q_UNUSED(model)
92  }
93 
94  LessonModel *m_model;
95 };
96 }
97 
98 #endif
Editor::LessonView::setTranslation
void setTranslation(KEduVocExpression *entry, int translationId)
Definition: lessonview.cpp:160
Editor::LessonView::slotRemoveGradesLessonChildren
void slotRemoveGradesLessonChildren()
Remove the grades for the selected lesson and its children.
Definition: lessonview.cpp:234
QModelIndex
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:252
Editor::LessonView
View for the lesson list.
Definition: lessonview.h:30
ContainerView
View for containers (KEduVocContainer).
Definition: containerview.h:31
Editor::LessonView::expandAllLesson
void expandAllLesson()
Expand all the lessons and its corresponding sub-lessons.
Definition: lessonview.cpp:259
Editor::LessonView::selectedLessonChanged
void selectedLessonChanged(KEduVocLesson *lesson)
A lesson was selected.
LessonModel
Model for the tree of lessons.
Definition: lessonmodel.h:24
Editor::LessonView::slotCreateNewLesson
void slotCreateNewLesson()
Append a lesson to the model and automatically set an edit up so the user can change "New unit" into ...
Definition: lessonview.cpp:174
Editor::LessonView::slotDeleteLesson
void slotDeleteLesson()
Remove a lesson.
Definition: lessonview.cpp:189
Editor::LessonView::setModel
virtual void setModel(LessonModel *model)
Set the model for the view.
Definition: lessonview.cpp:242
ContainerModel
Model for the tree of containers (lessons, word types).
Definition: containermodel.h:33
Editor::LessonView::lessonsInPracticeChanged
void lessonsInPracticeChanged()
Emitted when any of the checkboxes for the query change.
Editor::LessonView::collapseAllLesson
void collapseAllLesson()
Collapse all the lessons and its corresponding sub-lessons.
Definition: lessonview.cpp:264
containerview.h
lessonmodel.h
QItemSelection
Editor::EditorWindow
Definition: editor.h:50
Editor::LessonView::selectionChanged
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Definition: lessonview.cpp:146
Editor::LessonView::slotRemoveGradesLesson
void slotRemoveGradesLesson()
Remove the grades for the selected lesson.
Definition: lessonview.cpp:226
QAbstractItemModel
QAbstractItemView::model
QAbstractItemModel * model() const
QObject::parent
QObject * parent() const
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:133
Editor::LessonView::slotSplitLesson
void slotSplitLesson()
Creates many small lessons with the contents of the original lesson.
Definition: lessonview.cpp:208
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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
  • 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