2001-03-30 09:51:46 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
2001-03-19 16:37:01 +00:00
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file xformsBC.C
|
|
|
|
* \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"
|
|
|
|
|
|
|
|
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
|
|
|
}
|