]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QThesaurus.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file QThesaurus.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QTHESAURUS_H
13 #define QTHESAURUS_H
14
15 #include "QDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlThesaurus;
21 class QThesaurusDialog;
22
23 ///
24 class QThesaurus
25         : public QController<ControlThesaurus, QView<QThesaurusDialog> >
26 {
27 public:
28         ///
29         friend class QThesaurusDialog;
30         ///
31         QThesaurus(Dialog &);
32 private:
33         /// Apply changes
34         virtual void apply() {}
35         /// update
36         virtual void update_contents();
37         /// build the dialog
38         virtual void build_dialog();
39
40         /// replace the word
41         void replace();
42 };
43
44 } // namespace frontend
45 } // namespace lyx
46
47 #endif // QTHESAURUS_H