• 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
editor.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
3  Copyright 2004-2007 Peter Hedlund <peter.hedlund@kdemail.net>
4  Copyright 2007-2009 Frederik Gladhorn <gladhorn@kde.org>
5  Copyright 2008 Daniel Laidig <d.laidig@gmx.de>
6 ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef EDITOR_H
18 #define EDITOR_H
19 
20 #include "parleydocument.h"
21 
22 #include "scripts/scripting/parley.h"
23 
24 #include <KXmlGuiWindow>
25 
26 class QSignalMapper;
27 class KLineEdit;
28 class KActionMenu;
29 class ScriptManager;
30 
31 // Models around the Collection / KEduVocDocument
32 class LessonModel;
33 class VocabularyModel;
34 class VocabularyFilter;
35 class WordClassModel;
36 
37 namespace Editor
38 {
39 class VocabularyView;
40 class LessonView;
41 class WordTypeView;
42 class LeitnerView;
43 class LeitnerModel;
44 class InflectionWidget;
45 class ComparisonWidget;
46 class SummaryWordWidget;
47 class LatexWidget;
48 class SynonymWidget;
49 
50 class EditorWindow : public KXmlGuiWindow
51 {
52  Q_OBJECT
53 
54 public:
55  EditorWindow(ParleyMainWindow* parent);
56  ~EditorWindow();
57 
61  void initActions();
62 
64  void initModel();
65 
67  void initView();
68 
69  void initDockWidgets();
70 
72  void updateTableFilter();
73 
74 public slots:
78  void initScripts();
79 
85  void slotLanguagesChanged();
86 
87  void slotConfigShowSearch();
88 
92  void slotShowScriptManager();
93 
94  void applyPrefs();
95 
99  void removeGrades();
100 
102  void saveState();
103 
107  void updateDocument(KEduVocDocument *doc);
108 
109 private slots:
110 
112  void startSearch();
113 
114 signals:
115  void signalSetData(const QList<int>& entries, int currentTranslation);
116 
117 private:
118  ParleyMainWindow *m_mainWindow;
119 
120  KAction* m_vocabShowSearchBarAction;
121 
122  VocabularyModel *m_vocabularyModel;
123  VocabularyView *m_vocabularyView;
124  VocabularyFilter *m_vocabularyFilter;
125 
126  KLineEdit *m_searchLine;
127  QWidget *m_searchWidget;
128  KAction *m_spellCheckMenu;
129  QSignalMapper *m_spellCheckMapper;
130 
132  InflectionWidget *m_inflectionWidget;
133  SummaryWordWidget *m_summaryWordWidget;
134  ComparisonWidget *m_comparisonWidget;
135  LatexWidget *m_latexWidget;
136  SynonymWidget *m_synonymWidget;
137  SynonymWidget *m_antonymWidget;
138  SynonymWidget *m_falseFriendWidget;
139 
141  LessonView *m_lessonView;
142  LessonModel *m_lessonModel;
143 
144  WordClassModel *m_wordTypeModel;
145  WordTypeView *m_wordTypeView;
146 
147  LeitnerView *m_leitnerView;
148  LeitnerModel *m_leitnerModel;
149 
150 
151  ScriptManager* m_scriptManager;
152 
154  Translator* m_translator;
155 
156  QList<QDockWidget*> m_dockWidgets;
157  QList<bool> m_dockWidgetVisibility;
158 
159  friend class ::ParleyDocument;
160  friend class Scripting::Parley;
161  friend class ::ScriptManager;
162 };
163 
164 }
165 
166 #endif // EDITOR_H
Editor::EditorWindow::saveState
void saveState()
when closing the application, save the editor's state
Definition: editor.cpp:508
QWidget
Editor::EditorWindow::slotLanguagesChanged
void slotLanguagesChanged()
Edit languages contained in the document.
Definition: editor.cpp:513
Editor::LessonView
View for the lesson list.
Definition: lessonview.h:30
Editor::EditorWindow::signalSetData
void signalSetData(const QList< int > &entries, int currentTranslation)
WordClassModel
Model for the tree of word types.
Definition: wordclassmodel.h:24
VocabularyFilter
Definition: vocabularyfilter.h:26
ParleyMainWindow
Definition: parleymainwindow.h:41
Editor::EditorWindow::applyPrefs
void applyPrefs()
Definition: editor.cpp:488
Editor::EditorWindow::slotConfigShowSearch
void slotConfigShowSearch()
Definition: editor.cpp:470
Editor::WordTypeView
Definition: wordtypeview.h:30
Editor::EditorWindow::initModel
void initModel()
setup the main model
Definition: editor.cpp:415
LessonModel
Model for the tree of lessons.
Definition: lessonmodel.h:24
parley.h
Editor::EditorWindow::initDockWidgets
void initDockWidgets()
Definition: editor.cpp:149
parleydocument.h
KXmlGuiWindow
Editor::InflectionWidget
Definition: inflectionwidget.h:30
Editor::EditorWindow::updateTableFilter
void updateTableFilter()
This will look at the lesson list and also the combo box to determine what should be displayed in the...
Editor::LatexWidget
Definition: latexwidget.h:36
QList< int >
Editor::EditorWindow::~EditorWindow
~EditorWindow()
Definition: editor.cpp:97
Editor::EditorWindow::updateDocument
void updateDocument(KEduVocDocument *doc)
Set the current doc (after creating a new one or opening a file)
Definition: editor.cpp:104
Editor::EditorWindow::slotShowScriptManager
void slotShowScriptManager()
Display script manager (open a new window / or Settings window)
Definition: editor.cpp:482
VocabularyModel
Definition: vocabularymodel.h:29
Editor::EditorWindow::removeGrades
void removeGrades()
Removes all grading information from the current document.
Definition: editor.cpp:493
Editor::EditorWindow::initScripts
void initScripts()
Load enabled scripts (from configuration parleyrc)
Definition: editor.cpp:498
Editor::VocabularyView
Definition: vocabularyview.h:46
Translator
Keeps the translated words.
Definition: translator.h:74
Scripting::Parley
Parley scripting class (main entry point of a Parley Kross script)
Definition: parley.h:152
Editor::EditorWindow::initView
void initView()
setup the main view
Definition: editor.cpp:430
Editor::EditorWindow
Definition: editor.h:50
Editor::EditorWindow::EditorWindow
EditorWindow(ParleyMainWindow *parent)
Definition: editor.cpp:66
ScriptManager
This class finds the scripts installed in the application directory and manages loading and unloading...
Definition: scriptmanager.h:30
Editor::EditorWindow::initActions
void initActions()
setup the action (menus etc)
Definition: editor.cpp:394
Editor::ComparisonWidget
Definition: comparisonwidget.h:39
QSignalMapper
Editor::SummaryWordWidget
Represents the overview of a KEduVocExpression Shows the language word the lesson the word type pronu...
Definition: summarywordwidget.h:47
Editor::SynonymWidget
Definition: synonymwidget.h:29
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