]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / xformsBC.h
1 // -*- C++ -*-
2 /**
3  * \file xformsBC.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Allan Rae
8  * \author Angus Leeming 
9  * \author Baruch Even
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef XFORMSBC_H
15 #define XFORMSBC_H
16
17 #include "forms_fwd.h"
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "ButtonController.h"
24
25 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
26 public:
27         ///
28         xformsBC(string const &, string const &);
29
30 private:
31         /// Updates the button sensitivity (enabled/disabled)
32         void setButtonEnabled(FL_OBJECT *, bool enabled);
33
34         /// Updates the widget sensitivity (enabled/disabled)
35         void setWidgetEnabled(FL_OBJECT *, bool enabled);
36
37         /// Set the label on the button
38         void setButtonLabel(FL_OBJECT *, string const & label);
39 };
40
41 #endif // XFORMSBC_H