4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef GBUTTONCONTROLLER_H
13 #define GBUTTONCONTROLLER_H
15 #include "ButtonController.h"
24 class GBC : public GuiBC<Gtk::Button, Gtk::Widget> {
26 GBC(ButtonController const & parent,
27 std::string const & cancel = _("Cancel"),
28 std::string const & close = _("Close"));
30 /// Updates the button sensitivity (enabled/disabled)
31 void setButtonEnabled(Gtk::Button *, bool enabled) const;
33 /// Updates the widget sensitivity (enabled/disabled)
34 void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
36 /// Set the label on the button
37 void setButtonLabel(Gtk::Button *, std::string const & label) const;
40 } // namespace frontend