]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/Qt2BC.h
fix typo that put too many include paths for most people
[lyx.git] / src / frontends / qt2 / Qt2BC.h
1 // -*- C++ -*-
2 /**
3  * \file Qt2BC.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Allan Rae, rae@lyx.org
8  * \author Angus Leeming, a.leeming@ic.ac.uk
9  * \author Baruch Even, baruch.even@writeme.com
10  */
11
12 #ifndef QT2BC_H
13 #define QT2BC_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ButtonController.h"
20
21 class QWidget;
22 class QButton;
23
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
28     state machine.
29 */
30 class Qt2BC : public GuiBC<QButton, QWidget>
31 {
32 public:
33         ///
34         Qt2BC(string const &, string const &);
35
36 private:
37         /// Updates the button sensitivity (enabled/disabled)
38         void setButtonEnabled(QButton *, bool enabled);
39
40         /// Updates the widget sensitivity (enabled/disabled)
41         void setWidgetEnabled(QWidget *, bool enabled);
42
43         /// Set the label on the button
44         void setButtonLabel(QButton *, string const & label);
45 };
46
47 #endif // QT2BC_H