]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
xforms clean-up, described in detail in my mail of 31 May. See
[lyx.git] / src / frontends / xforms / xformsBC.C
1 /**
2  * \file xformsBC.C
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  *
6  * \author Allan Rae, rae@lyx.org
7  * \author Angus Leeming, a.leeming@ic.ac.uk
8  * \author Baruch Even, baruch.even@writeme.com
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "xformsBC.h"
18 #include "xforms_helpers.h"
19 #include FORMS_H_LOCATION
20
21
22 xformsBC::xformsBC(string const & cancel, string const & close)
23         : GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
24 {}
25
26
27 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
28 {
29         setEnabled(obj, enabled);
30 }
31
32
33 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
34 {
35         setEnabled(obj, enabled);
36 }
37
38
39 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
40 {
41         fl_set_object_label(obj, label.c_str());
42 }