2001-03-28 11:14:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* Author: Baruch Even <baruch@lyx.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNOMEBC_H
|
|
|
|
#define GNOMEBC_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
#include "ButtonController.h"
|
|
|
|
|
2001-03-28 11:14:05 +00:00
|
|
|
namespace Gtk {
|
|
|
|
class Button;
|
|
|
|
class Widget;
|
2001-03-30 18:49:10 +00:00
|
|
|
};
|
2001-03-28 11:14:05 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
class gnomeBC : public GuiBC<Gtk::Button, Gtk::Widget>
|
2001-03-28 11:14:05 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
gnomeBC(string const & cancel, string const & close);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// Updates the button sensitivity (enabled/disabled)
|
2001-03-30 09:51:46 +00:00
|
|
|
void setButtonEnabled(Gtk::Button * btn, bool enabled);
|
|
|
|
|
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
|
|
|
void setWidgetEnabled(Gtk::Widget * obj, bool enabled);
|
|
|
|
|
|
|
|
/// Set the label on the button
|
2001-03-30 18:49:10 +00:00
|
|
|
void setButtonLabel(Gtk::Button * btn, string const & label);
|
2001-03-28 11:14:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GNOMEBC_H
|