]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xformsBC.h
Change glob() API to accept a dir parameter.
[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 namespace lyx {
23 namespace frontend {
24
25 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
26 public:
27         ///
28         xformsBC(ButtonController const &,
29                  std::string const & = _("Cancel"), std::string const & = _("Close"));
30
31 private:
32         /// Updates the button sensitivity (enabled/disabled)
33         void setButtonEnabled(FL_OBJECT *, bool enabled) const;
34
35         /// Updates the widget sensitivity (enabled/disabled)
36         void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
37
38         /// Set the label on the button
39         void setButtonLabel(FL_OBJECT *, std::string const & label) const;
40 };
41
42 } // namespace frontend
43 } // namespace lyx
44
45 #endif // XFORMSBC_H