]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / xformsBC.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file xformsBC.C
11  * \author Allan Rae, rae@lyx.org
12  * \author Angus Leeming, a.leeming@ic.ac.uk
13  * \author Baruch Even, baruch.even@writeme.com
14  */
15
16 #include <config.h>
17
18 #ifdef __GNUG__
19 #pragma implementation
20 #endif
21
22 #include "xformsBC.h"
23 #include "ButtonController.tmpl"
24 #include "xforms_helpers.h"
25
26 xformsBC::xformsBC(string const & cancel, string const & close)
27         : GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
28 {}
29
30
31 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
32 {
33         setEnabled(obj, enabled);
34 }
35
36
37 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
38 {
39         setEnabled(obj, enabled);
40 }
41
42
43 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
44 {
45         fl_set_object_label(obj, label.c_str());
46 }