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
18 #include "ButtonController.h"
23 /** General purpose button controller for up to four buttons.
24 Controls the activation of the OK, Apply and Cancel buttons.
25 Actually supports 4 buttons in all and it's up to the user to decide on
26 the activation policy and which buttons correspond to which output of the
29 class Qt2BC : public GuiBC<QButton, QWidget> {
32 Qt2BC(string const &, string const &);
34 /// Updates the button sensitivity (enabled/disabled)
35 void setButtonEnabled(QButton *, bool enabled);
37 /// Updates the widget sensitivity (enabled/disabled)
38 void setWidgetEnabled(QWidget *, bool enabled);
40 /// Set the label on the button
41 void setButtonLabel(QButton *, string const & label);