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
17 #include "ButtonController.h"
21 class GBC : public GuiBC<Gtk::Button, Gtk::Widget>
24 GBC(ButtonController const & parent,
25 std::string const & cancel = _("Cancel"),
26 std::string const & close = _("Close"));
28 /// Updates the button sensitivity (enabled/disabled)
29 void setButtonEnabled(Gtk::Button *, bool enabled) const;
31 /// Updates the widget sensitivity (enabled/disabled)
32 void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
34 /// Set the label on the button
35 void setButtonLabel(Gtk::Button *, std::string const & label) const;