]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file FormThesaurus.h
4  * Read the file COPYING
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef FORMTHESAURUS_H
12 #define FORMTHESAURUS_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19
20 class ControlThesaurus;
21 struct FD_thesaurus;
22
23 /** This class provides an XForms implementation of the Thesaurus dialog.
24  */
25 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_thesaurus> > {
26 public:
27         ///
28         FormThesaurus();
29 private:
30         /// not needed.
31         virtual void apply() {}
32         /// Build the dialog
33         virtual void build();
34         /// update dialog
35         virtual void update();
36
37         /// set the replace word properly
38         void setReplace(string const & templ, string const & nstr);
39
40         /// update browser entries
41         void updateMeanings(string const & str);
42
43         /// Filter the inputs
44         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45
46         /// for double click handling
47         int clickline_;
48
49         /// current string
50         string str_;
51 };
52
53 #endif // FORMTHESAURUS_H