]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QAbout.h
Transfer Text::drawSelection() from InsetText::drawSelection() to InsetText::draw...
[lyx.git] / src / frontends / qt4 / QAbout.h
1 // -*- C++ -*-
2 /**
3  * \file QAbout.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Kalle Dalheimer
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FORMABOUT_H
13 #define FORMABOUT_H
14
15 #include "QDialogView.h"
16 #include "ui_AboutUi.h"
17 #include <QDialog>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlAboutlyx;
23
24 class QAboutDialog : public QDialog, public Ui::QAboutUi {
25         Q_OBJECT
26 public:
27         QAboutDialog(QWidget * parent = 0)
28                 : QDialog(parent)
29         {
30                 setupUi(this);
31                 connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
32         }
33 };
34
35
36 class QAbout
37         : public QController<ControlAboutlyx, QView<QAboutDialog> >
38 {
39 public:
40         QAbout(Dialog &);
41 private:
42         /// not needed
43         virtual void apply() {}
44         /// not needed
45         virtual void update_contents() {}
46         // build the dialog
47         virtual void build_dialog();
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // FORMABOUT_H