]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormThesaurus.h
remove defaults stuff, let Qt handle no toolbar
[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
16 #include "FormDialogView.h"
17
18
19 class ControlThesaurus;
20 struct FD_thesaurus;
21
22 /** This class provides an XForms implementation of the Thesaurus dialog.
23  */
24 class FormThesaurus
25         : public FormController<ControlThesaurus, FormView<FD_thesaurus> > {
26 public:
27         ///
28         FormThesaurus(Dialog &);
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