]> git.lyx.org Git - features.git/blob - src/frontends/kde/kdeBC.C
Update to MVC. Ref,Toc and citation don't work at all currently.
[features.git] / src / frontends / kde / kdeBC.C
1 /**
2  * \file kdeBC.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Angus Leeming, <a.leeming@ic.ac.uk>
7  */
8
9 #include <config.h>
10
11 #ifdef __GNUG__
12 #pragma implementation
13 #endif
14
15 #include "kdeBC.h"
16 #include <qpushbutton.h>
17
18 kdeBC::kdeBC(string const & cancel, string const & close)
19         : GuiBC<QPushButton, QWidget>(cancel, close)
20 {}
21
22
23 void kdeBC::setButtonEnabled(QPushButton * btn, bool enabled)
24 {
25         btn->setEnabled(enabled);
26 }
27
28
29 void kdeBC::setWidgetEnabled(QWidget * obj, bool enabled)
30 {
31         obj->setEnabled(enabled);
32 }
33
34
35 void kdeBC::setButtonLabel(QPushButton * btn, string const & label)
36 {
37         btn->setText(label.c_str());
38 }