]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/qt2BC.C
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / qt2BC.C
1 /**
2  * \file qt2BC.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Allan Rae <rae@lyx.org>
7  * \author Angus Leeming <a.leeming@ic.ac.uk>
8  */
9
10 #include <config.h>
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include "qt2BC.h"
17
18 #include <qbutton.h>
19
20 qt2BC::qt2BC(string const & cancel, string const & close)
21         : GuiBC<QButton, QWidget>(cancel, close)
22 {}
23
24
25 void qt2BC::setButtonEnabled(QButton * obj, bool enabled)
26 {
27         obj->setEnabled(enabled);
28 }
29
30
31 void qt2BC::setWidgetEnabled(QWidget * obj, bool enabled)
32 {
33         obj->setEnabled(enabled);
34 }
35
36
37 void qt2BC::setButtonLabel(QButton * obj, string const & label)
38 {
39         obj->setText(label.c_str());
40 }