2003-09-02 10:29:05 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GBC.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GBUTTONCONTROLLER_H
|
|
|
|
#define GBUTTONCONTROLLER_H
|
|
|
|
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
|
|
|
#include "ButtonController.h"
|
|
|
|
#include "BCView.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
class GBC : public GuiBC<Gtk::Button, Gtk::Widget>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GBC(ButtonController const & parent,
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const & cancel = _("Cancel"),
|
|
|
|
std::string const & close = _("Close"));
|
2003-09-02 10:29:05 +00:00
|
|
|
private:
|
|
|
|
/// Updates the button sensitivity (enabled/disabled)
|
|
|
|
void setButtonEnabled(Gtk::Button *, bool enabled) const;
|
|
|
|
|
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
|
|
|
void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
|
|
|
|
|
|
|
|
/// Set the label on the button
|
2003-10-06 15:43:21 +00:00
|
|
|
void setButtonLabel(Gtk::Button *, std::string const & label) const;
|
2003-09-02 10:29:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|