]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.C
remove defaults stuff, let Qt handle no toolbar
[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 FORMS_H_LOCATION
19
20
21 xformsBC::xformsBC(ButtonController const & parent,
22                    string const & cancel, string const & close)
23         : GuiBC<FL_OBJECT, FL_OBJECT>(parent, cancel, close)
24 {}
25
26
27 void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled) const
28 {
29         setEnabled(obj, enabled);
30 }
31
32
33 void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled) const
34 {
35         setEnabled(obj, enabled);
36 }
37
38
39 void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label) const
40 {
41         fl_set_object_label(obj, label.c_str());
42 }