]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / xformsBC.C
1 /**
2  * \file xformsBC.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Allan Rae
7  * \author Angus Leeming
8  * \author Baruch Even
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #include <config.h>
14
15
16 #include "xformsBC.h"
17 #include "xforms_helpers.h"
18 #include "lyx_forms.h"
19
20
21 using std::string;
22
23 namespace lyx {
24 namespace frontend {
25
26 xformsBC::xformsBC(ButtonController const & parent,
27                    string const & cancel, string const & close)
28         : GuiBC<FL_OBJECT, FL_OBJECT>(parent, cancel, close)
29 {}
30
31
32 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled) const
33 {
34         setEnabled(obj, enabled);
35 }
36
37
38 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled) const
39 {
40         setEnabled(obj, enabled);
41 }
42
43
44 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label) const
45 {
46         fl_set_object_label(obj, label.c_str());
47 }
48
49 } // namespace frontend
50 } // namespace lyx