4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author Allan Rae, rae@lyx.org
8 * \author Angus Leeming, a.leeming@ic.ac.uk
9 * \author Baruch Even, baruch.even@writeme.com
19 #include "ButtonController.h"
24 /** General purpose button controller for up to four buttons.
25 Controls the activation of the OK, Apply and Cancel buttons.
26 Actually supports 4 buttons in all and it's up to the user to decide on
27 the activation policy and which buttons correspond to which output of the
30 class Qt2BC : public GuiBC<QButton, QWidget>
34 Qt2BC(string const &, string const &);
37 /// Updates the button sensitivity (enabled/disabled)
38 void setButtonEnabled(QButton *, bool enabled);
40 /// Updates the widget sensitivity (enabled/disabled)
41 void setWidgetEnabled(QWidget *, bool enabled);
43 /// Set the label on the button
44 void setButtonLabel(QButton *, string const & label);