]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.h
remove defaults stuff, let Qt handle no toolbar
[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 #include "BCView.h"
20 #include "gettext.h"
21
22 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
23 public:
24         ///
25         xformsBC(ButtonController const &,
26                  string const & = _("Cancel"), string const & = _("Close"));
27
28 private:
29         /// Updates the button sensitivity (enabled/disabled)
30         void setButtonEnabled(FL_OBJECT *, bool enabled) const;
31
32         /// Updates the widget sensitivity (enabled/disabled)
33         void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
34
35         /// Set the label on the button
36         void setButtonLabel(FL_OBJECT *, string const & label) const;
37 };
38
39 #endif // XFORMSBC_H