]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiAbout.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiAbout.h
1 // -*- C++ -*-
2 /**
3  * \file GuiAbout.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 "GuiDialogView.h"
16 #include "ui_AboutUi.h"
17 #include <QDialog>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlAboutlyx;
23
24 class GuiAboutDialog : public QDialog, public Ui::AboutUi {
25         Q_OBJECT
26 public:
27         GuiAboutDialog(QWidget * parent = 0)
28                 : QDialog(parent)
29         {
30                 setupUi(this);
31                 connect(closePB, SIGNAL(clicked()), this, SLOT(reject()));
32         }
33 };
34
35
36 class GuiAbout
37         : public QController<ControlAboutlyx, GuiView<GuiAboutDialog> >
38 {
39 public:
40         GuiAbout(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