]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSpellchecker.h
Switch from SigC signals to boost::signals
[lyx.git] / src / frontends / qt2 / QSpellchecker.h
1 // -*- C++ -*-
2 /**
3  * \file QSpellchecker.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
9  */
10
11 #ifndef QSPELLCHECKER_H
12 #define QSPELLCHECKER_H
13
14 #include "Qt2Base.h"
15
16
17 class ControlSpellchecker;
18 class QSpellcheckerDialog;
19
20 class QSpellchecker :
21         public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
22 {
23         friend class QSpellcheckerDialog;
24
25 public:
26         QSpellchecker(ControlSpellchecker &);
27
28         /// update from controller
29         void partialUpdate(int id);
30
31 private:
32         void stop();
33         void accept();
34         void add();
35         void ignore();
36         void replace();
37         void options();
38         void spellcheck();
39
40         /// Apply changes
41         virtual void apply() {};
42         /// update
43         virtual void update_contents();
44         /// build the dialog
45         virtual void build_dialog();
46 };
47
48 #endif // QSPELLCHECKER_H