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