2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file xformsBC.C
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* \author Allan Rae, rae@lyx.org
|
|
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
|
|
|
* \author Baruch Even, baruch.even@writeme.com
|
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
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
|
|
}
|