]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellchecker.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file QSpellchecker.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 QSPELLCHECKER_H
14 #define QSPELLCHECKER_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21
22 class ControlSpellchecker;
23 class QSpellcheckerDialog;
24
25
26 class QSpellchecker
27         : public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
28 {
29 public:
30         friend class QSpellcheckerDialog;
31
32         QSpellchecker();
33
34         /// update from controller
35         void partialUpdate(int id);
36 private:
37         void stop();
38         void accept();
39         void add();
40         void ignore();
41         void replace();
42         void spellcheck();
43
44         /// Apply changes
45         virtual void apply() {}
46         /// update
47         virtual void update_contents();
48         /// build the dialog
49         virtual void build_dialog();
50 };
51
52 #endif // QSPELLCHECKER_H