]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.C
Rewrote the maths panel so that ALL the popups now derive from FormBaseBD,
[lyx.git] / src / frontends / xforms / FormBrowser.C
1 /* FormBrowser.C
2  * (C) 2001 LyX Team
3  * John Levon, moz@compsoc.man.ac.uk
4  */
5
6 #include <config.h>
7
8 #include FORMS_H_LOCATION
9
10 #ifdef __GNUG__
11 #pragma implementation
12 #endif
13
14 #include "gettext.h"
15 #include "FormBrowser.h"
16 #include "form_browser.h"
17 #include "LyXView.h"
18 #include "Dialogs.h"
19 #include "lyxrc.h"
20 #include "buffer.h"
21
22 FormBrowser::FormBrowser(LyXView * lv, Dialogs * d, const string & name)
23         : FormBaseBD(lv, d, name)
24 {}
25
26
27 void FormBrowser::build()
28 {
29         dialog_.reset(build_browser());
30
31         // Manage the close button
32         bc().setCancel(dialog_->button_close);
33         bc().refresh();
34 }
35
36
37 FL_FORM * FormBrowser::form() const
38 {
39         if (dialog_.get())
40                 return dialog_->form;
41         return 0;
42 }
43
44 void FormBrowser::update()
45 {}
46
47
48 bool FormBrowser::input(FL_OBJECT *, long)
49 {
50         update();
51         return true;
52 }