]> git.lyx.org Git - features.git/blob - src/frontends/qt2/QAbout.C
The big renaming. Yowser.
[features.git] / src / frontends / qt2 / QAbout.C
1 /**
2  * \file QAbout.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
7  */
8
9 #include <config.h>
10
11 #include "gettext.h"
12 #include "QAboutDialog.h"
13  
14 #include <qlabel.h>
15 #include <qpushbutton.h>
16 #include "QtLyXView.h"
17  
18 #include "ButtonControllerBase.h"
19 #include "qt2BC.h"
20 #include "ControlAboutlyx.h"
21 #include "QAbout.h"
22
23 typedef Qt2CB<ControlAboutlyx, Qt2DB<QAboutDialog> > base_class;
24
25 QAbout::QAbout(ControlAboutlyx & c) 
26         : base_class(c, _("About LyX"))
27 {
28 }
29
30
31 void QAbout::build()
32 {
33         dialog_.reset(new QAboutDialog());
34         connect(dialog_.get()->closePB, SIGNAL(clicked()),
35                 this, SLOT(slotCancel()));
36
37         dialog_->copyrightLA->setText(controller().getCopyright().c_str());
38         dialog_->licenseLA->setText(controller().getLicense().c_str());
39         dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str());
40
41         // Manage the cancel/close button
42         bc().setCancel(dialog_->closePB);
43         bc().refresh();
44 }