]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.h
d000484bb44ca591acc9489d2698bbd1f108a72e
[lyx.git] / src / frontends / xforms / xformsBC.h
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.h
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 #ifndef XFORMSBC_H
17 #define XFORMSBC_H
18
19 #include FORMS_H_LOCATION
20 #include <list>
21
22 #ifdef __GNUG__
23 #pragma interface
24 #endif
25
26 #include "gettext.h"
27 #include "ButtonControllerBase.h"
28 #include "ButtonController.h"
29
30 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT>
31 {
32 public:
33         ///
34         xformsBC(string const &, string const &);
35
36 private:
37         /// Updates the button sensitivity (enabled/disabled)
38         void setButtonEnabled(FL_OBJECT *, bool enabled);
39
40         /// Updates the widget sensitivity (enabled/disabled)
41         void setWidgetEnabled(FL_OBJECT *, bool enabled);
42
43         /// Set the label on the button
44         void setButtonLabel(FL_OBJECT *, string const & label);
45 };
46
47 #endif // XFORMSBC_H