2001-03-15 13:37:04 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* Copyright 2001 The LyX Team.
|
2001-03-15 13:37:04 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file xformsBC.h
|
|
|
|
* \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
|
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
#include FORMS_H_LOCATION
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <list>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
#include "gettext.h"
|
|
|
|
#include "ButtonControllerBase.h"
|
2001-03-19 16:37:01 +00:00
|
|
|
#include "ButtonController.h"
|
|
|
|
|
2001-03-30 09:51:46 +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
|