2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file xformsBC.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-11 17:00:41 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Allan Rae
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Baruch Even
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-15 13:37:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XFORMSBC_H
|
|
|
|
#define XFORMSBC_H
|
|
|
|
|
2002-06-13 13:43:51 +00:00
|
|
|
#include "forms_fwd.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2003-03-10 03:13:28 +00:00
|
|
|
#include "BCView.h"
|
|
|
|
#include "gettext.h"
|
2001-03-19 16:37:01 +00:00
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
class xformsBC : public GuiBC<FL_OBJECT, FL_OBJECT> {
|
2001-03-15 13:37:04 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-10 03:13:28 +00:00
|
|
|
xformsBC(ButtonController const &,
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const & = _("Cancel"), std::string const & = _("Close"));
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
private:
|
|
|
|
/// Updates the button sensitivity (enabled/disabled)
|
2003-03-14 00:20:42 +00:00
|
|
|
void setButtonEnabled(FL_OBJECT *, bool enabled) const;
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
2003-03-14 00:20:42 +00:00
|
|
|
void setWidgetEnabled(FL_OBJECT *, bool enabled) const;
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Set the label on the button
|
2003-10-06 15:43:21 +00:00
|
|
|
void setButtonLabel(FL_OBJECT *, std::string const & label) const;
|
2001-03-15 13:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // XFORMSBC_H
|