]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.h
Added // -*- C++ -*- to the top of all files in controllers/ and xforms/
[lyx.git] / src / frontends / xforms / xformsBC.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file xformsBC.h
12  * \author Allan Rae, rae@lyx.org
13  * \author Angus Leeming, a.leeming@ic.ac.uk
14  * \author Baruch Even, baruch.even@writeme.com
15  */
16
17 #ifndef XFORMSBC_H
18 #define XFORMSBC_H
19
20 #include FORMS_H_LOCATION
21 #include <list>
22
23 #ifdef __GNUG__
24 #pragma interface
25 #endif
26
27 #include "gettext.h"
28 #include "ButtonControllerBase.h"
29 #include "ButtonController.h"
30
31 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT>
32 {
33 public:
34         ///
35         xformsBC(string const &, string const &);
36
37 private:
38         /// Updates the button sensitivity (enabled/disabled)
39         void setButtonEnabled(FL_OBJECT *, bool enabled);
40
41         /// Updates the widget sensitivity (enabled/disabled)
42         void setWidgetEnabled(FL_OBJECT *, bool enabled);
43
44         /// Set the label on the button
45         void setButtonLabel(FL_OBJECT *, string const & label);
46 };
47
48 #endif // XFORMSBC_H