4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
26 /** General purpose button controller for up to four buttons.
27 Controls the activation of the OK, Apply and Cancel buttons.
28 Actually supports 4 buttons in all and it's up to the user to decide on
29 the activation policy and which buttons correspond to which output of the
32 class Qt2BC : public GuiBC<QPushButton, QWidget> {
35 Qt2BC(ButtonController const &,
36 docstring const & = _("Cancel"),
37 docstring const & = _("Close"));
39 /// Updates the button sensitivity (enabled/disabled)
40 void setButtonEnabled(QPushButton *, bool enabled) const;
42 /// Updates the widget sensitivity (enabled/disabled)
43 void setWidgetEnabled(QWidget *, bool enabled) const;
45 /// Set the label on the button
46 void setButtonLabel(QPushButton *, docstring const & label) const;
49 } // namespace frontend