]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiSpellchecker.h
cosmetics
[lyx.git] / src / frontends / qt4 / GuiSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file GuiSpellchecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUISPELLCHECKER_H
14 #define GUISPELLCHECKER_H
15
16 #include "GuiDialog.h"
17 #include "ControlSpellchecker.h"
18 #include "ui_SpellcheckerUi.h"
19
20 class QListWidgetItem;
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiSpellcheckerDialog : public GuiDialog, public Ui::SpellcheckerUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiSpellcheckerDialog(LyXView & lv);
31
32 public Q_SLOTS:
33         void suggestionChanged(QListWidgetItem *);
34
35 private Q_SLOTS:
36         void acceptClicked();
37         void addClicked();
38         void replaceClicked();
39         void ignoreClicked();
40         void replaceChanged(const QString &);
41         void reject();
42
43 private:
44         ///
45         void closeEvent(QCloseEvent * e);
46         /// update from controller
47         void partialUpdate(int id);
48         /// parent controller
49         ControlSpellchecker & controller();
50         ////
51         void accept();
52         void add();
53         void ignore();
54         void replace();
55         ///
56         void updateContents();
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUISPELLCHECKER_H