]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QThesaurus.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / 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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "Qt2Base.h"
20
21 class ControlThesaurus;
22 class QThesaurusDialog;
23
24 ///
25 class QThesaurus
26         : public Qt2CB<ControlThesaurus, Qt2DB<QThesaurusDialog> >
27 {
28 public:
29         ///
30         friend class QThesaurusDialog;
31         ///
32         QThesaurus();
33 private:
34         /// Apply changes
35         virtual void apply() {}
36         /// update
37         virtual void update_contents();
38         /// build the dialog
39         virtual void build_dialog();
40
41         /// replace the word
42         void replace();
43 };
44
45 #endif // QTHESAURUS_H