2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
9 * ======================================================
12 * \author Allan Rae, rae@lyx.org
13 * \author Angus Leeming, a.leeming@ic.ac.uk
14 * \author Baruch Even, baruch.even@writeme.com
24 #include "ButtonController.h"
29 /** General purpose button controller for up to four buttons.
30 Controls the activation of the OK, Apply and Cancel buttons.
31 Actually supports 4 buttons in all and it's up to the user to decide on
32 the activation policy and which buttons correspond to which output of the
35 class qt2BC : public GuiBC<QButton, QWidget>
39 qt2BC(string const &, string const &);
42 /// Updates the button sensitivity (enabled/disabled)
43 void setButtonEnabled(QButton *, bool enabled);
45 /// Updates the widget sensitivity (enabled/disabled)
46 void setWidgetEnabled(QWidget *, bool enabled);
48 /// Set the label on the button
49 void setButtonLabel(QButton *, string const & label);