• 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
  • 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 namespace Editor {
32  class VocabularyView;
33  class VocabularyModel;
34  class VocabularyFilter;
35  class LessonView;
36  class WordTypeView;
37  class LeitnerView;
38  class LessonModel;
39  class WordTypeModel;
40  class LeitnerModel;
41  class InflectionWidget;
42  class ComparisonWidget;
43  class SummaryWordWidget;
44  class LatexWidget;
45 
46 class EditorWindow : public KXmlGuiWindow
47 {
48  Q_OBJECT
49 
50 public:
51  EditorWindow(ParleyMainWindow* parent);
52  ~EditorWindow();
53 
57  void initActions();
58 
60  void initModel();
61 
63  void initView();
64 
65  void initDockWidgets();
66 
68  void updateTableFilter();
69 
70 public slots:
74  void initScripts();
75 
81  void slotLanguagesChanged();
82 
83  void slotConfigShowSearch();
84 
88  void slotShowScriptManager();
89 
90  void applyPrefs();
91 
95  void removeGrades();
96 
98  void saveState();
99 
103  void updateDocument(KEduVocDocument *doc);
104 
105 private slots:
106 
108  void startSearch();
109 
110 signals:
111  void signalSetData( const QList<int>& entries, int currentTranslation);
112 
113 private:
114  ParleyMainWindow* m_mainWindow;
115 
116  KAction* m_vocabShowSearchBarAction;
117 
118  VocabularyModel *m_vocabularyModel;
119  VocabularyView *m_vocabularyView;
120  VocabularyFilter *m_vocabularyFilter;
121 
122  KLineEdit *m_searchLine;
123  QWidget *m_searchWidget;
124  KAction *m_spellCheckMenu;
125  QSignalMapper *m_spellCheckMapper;
126 
128  InflectionWidget *m_inflectionWidget;
129  SummaryWordWidget *m_summaryWordWidget;
130  ComparisonWidget *m_comparisonWidget;
131  LatexWidget *m_latexWidget;
132 
134  LessonView *m_lessonView;
135  LessonModel *m_lessonModel;
136 
137  WordTypeView *m_wordTypeView;
138  WordTypeModel *m_wordTypeModel;
139 
140  LeitnerView *m_leitnerView;
141  LeitnerModel *m_leitnerModel;
142 
143 
144  ScriptManager* m_scriptManager;
145 
147  Translator* m_translator;
148 
149  QList<QDockWidget*> m_dockWidgets;
150  QList<bool> m_dockWidgetVisibility;
151 
152  friend class ::ParleyDocument;
153  friend class Scripting::Parley;
154  friend class ::ScriptManager;
155 };
156 
157 }
158 
159 #endif // EDITOR_H
160 
Editor::EditorWindow::saveState
void saveState()
when closing the application, save the editor's state
Definition: editor.cpp:461
Editor::EditorWindow::slotLanguagesChanged
void slotLanguagesChanged()
Edit languages contained in the document.
Definition: editor.cpp:466
Editor::LessonView
View for the lesson list.
Definition: lessonview.h:29
Editor::EditorWindow::signalSetData
void signalSetData(const QList< int > &entries, int currentTranslation)
Editor::VocabularyModel
Definition: vocabularymodel.h:30
ParleyMainWindow
Definition: parleymainwindow.h:68
QWidget
Editor::EditorWindow::applyPrefs
void applyPrefs()
Definition: editor.cpp:441
Editor::EditorWindow::slotConfigShowSearch
void slotConfigShowSearch()
Definition: editor.cpp:424
Editor::WordTypeView
Definition: wordtypeview.h:29
Editor::EditorWindow::initModel
void initModel()
setup the main model
Definition: editor.cpp:369
parley.h
Editor::EditorWindow::initDockWidgets
void initDockWidgets()
Definition: editor.cpp:146
Editor::VocabularyFilter
Definition: vocabularyfilter.h:27
parleydocument.h
KXmlGuiWindow
Editor::InflectionWidget
Definition: inflectionwidget.h:29
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:33
Editor::EditorWindow::~EditorWindow
~EditorWindow()
Definition: editor.cpp:91
Editor::EditorWindow::updateDocument
void updateDocument(KEduVocDocument *doc)
Set the current doc (after creating a new one or opening a file)
Definition: editor.cpp:98
Editor::EditorWindow::slotShowScriptManager
void slotShowScriptManager()
Display script manager (open a new window / or Settings window)
Definition: editor.cpp:436
Editor::EditorWindow::removeGrades
void removeGrades()
Removes all grading information from the current document.
Definition: editor.cpp:446
Editor::EditorWindow::initScripts
void initScripts()
Load enabled scripts (from configuration parleyrc)
Definition: editor.cpp:451
Editor::VocabularyView
Definition: vocabularyview.h:39
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:151
Editor::EditorWindow::initView
void initView()
setup the main view
Definition: editor.cpp:384
Editor::EditorWindow
Definition: editor.h:46
Editor::EditorWindow::EditorWindow
EditorWindow(ParleyMainWindow *parent)
Definition: editor.cpp:62
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:348
Editor::ComparisonWidget
Definition: comparisonwidget.h:38
Editor::WordTypeModel
Model for the tree of word types.
Definition: wordtypemodel.h:25
Editor::LessonModel
Model for the tree of lessons.
Definition: lessonmodel.h:25
Editor::SummaryWordWidget
Represents the overview of a KEduVocExpression Shows the language word the lesson the word type pronu...
Definition: summarywordwidget.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 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