]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiAbout.h
renaming of some methods that hurt the eyes + removal of:
[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 GUIABOUT_H
13 #define GUIABOUT_H
14
15 #include "GuiDialogView.h"
16 #include "ControlAboutlyx.h"
17 #include "ui_AboutUi.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
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 : public GuiView<GuiAboutDialog>
37 {
38 public:
39         GuiAbout(GuiDialog &);
40         /// parent controller
41         ControlAboutlyx & controller()
42         { return static_cast<ControlAboutlyx &>(this->getController()); }
43         /// parent controller
44         ControlAboutlyx const & controller() const
45         { return static_cast<ControlAboutlyx const &>(this->getController()); }
46 private:
47         /// not needed
48         virtual void applyView() {}
49         /// not needed
50         virtual void update_contents() {}
51         // build the dialog
52         virtual void build_dialog();
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUIABOUT_H