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-03-11 17:00:41 +00:00
|
|
|
* Copyright 2002 the LyX Team
|
|
|
|
* Read 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-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
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
#include "ButtonController.h"
|
|
|
|
|
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:
|
|
|
|
///
|
|
|
|
xformsBC(string const &, string const &);
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
private:
|
|
|
|
/// Updates the button sensitivity (enabled/disabled)
|
|
|
|
void setButtonEnabled(FL_OBJECT *, bool enabled);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
|
|
|
void setWidgetEnabled(FL_OBJECT *, bool enabled);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Set the label on the button
|
|
|
|
void setButtonLabel(FL_OBJECT *, string const & label);
|
2001-03-15 13:37:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // XFORMSBC_H
|