2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file xformsBC.C
|
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
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-03-19 16:37:01 +00:00
|
|
|
*/
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
#include <config.h>
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "xformsBC.h"
|
|
|
|
#include "xforms_helpers.h"
|
2002-06-13 13:43:51 +00:00
|
|
|
#include FORMS_H_LOCATION
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2002-06-10 17:33:05 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
xformsBC::xformsBC(string const & cancel, string const & close)
|
2001-03-30 09:51:46 +00:00
|
|
|
: GuiBC<FL_OBJECT, FL_OBJECT>(cancel, close)
|
2001-03-15 13:37:04 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
void xformsBC::setButtonEnabled(FL_OBJECT * obj, bool enabled)
|
|
|
|
{
|
|
|
|
setEnabled(obj, enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void xformsBC::setWidgetEnabled(FL_OBJECT * obj, bool enabled)
|
|
|
|
{
|
|
|
|
setEnabled(obj, enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void xformsBC::setButtonLabel(FL_OBJECT * obj, string const & label)
|
2001-03-15 13:37:04 +00:00
|
|
|
{
|
2001-03-30 09:51:46 +00:00
|
|
|
fl_set_object_label(obj, label.c_str());
|
2001-03-15 13:37:04 +00:00
|
|
|
}
|