]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xformsBC.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / xformsBC.h
index 4121f7bb3bad858e6f85ed1d58fce4f55a68a357..e7bbceee5b8a8c16c8ef672c6a3b9ddd2b023108 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Allan Rae
- * \author Angus Leeming 
+ * \author Angus Leeming
  * \author Baruch Even
  *
  * Full author contact details are available in file CREDITS
 
 #include "forms_fwd.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ButtonController.h"
+#include "BCView.h"
+#include "gettext.h"
 
 class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
 public:
        ///
-       xformsBC(string const &, string const &);
+       xformsBC(ButtonController const &,
+                string const & = _("Cancel"), string const & = _("Close"));
 
 private:
        /// Updates the button sensitivity (enabled/disabled)
-       void setButtonEnabled(FL_OBJECT *, bool enabled);
+       void setButtonEnabled(FL_OBJECT *, bool enabled) const;
 
        /// Updates the widget sensitivity (enabled/disabled)
-       void setWidgetEnabled(FL_OBJECT *, bool enabled);
+       void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
 
        /// Set the label on the button
-       void setButtonLabel(FL_OBJECT *, string const & label);
+       void setButtonLabel(FL_OBJECT *, string const & label) const;
 };
 
 #endif // XFORMSBC_H