]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormThesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file FormThesaurus.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 FORMTHESAURUS_H
13 #define FORMTHESAURUS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20
21 class ControlThesaurus;
22 struct FD_thesaurus;
23
24 /** This class provides an XForms implementation of the Thesaurus dialog.
25  */
26 class FormThesaurus : public FormCB<ControlThesaurus, FormDB<FD_thesaurus> > {
27 public:
28         ///
29         FormThesaurus();
30 private:
31         /// not needed.
32         virtual void apply() {}
33         /// Build the dialog
34         virtual void build();
35         /// update dialog
36         virtual void update();
37
38         /// set the replace word properly
39         void setReplace(string const & templ, string const & nstr);
40
41         /// update browser entries
42         void updateMeanings(string const & str);
43
44         /// Filter the inputs
45         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
46
47         /// for double click handling
48         int clickline_;
49
50         /// current string
51         string str_;
52 };
53
54 #endif // FORMTHESAURUS_H