]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiERT.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiERT.h
1 // -*- C++ -*-
2 /**
3  * \file GuiERT.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIERT_H
13 #define GUIERT_H
14
15 #include "GuiDialogView.h"
16 #include "ControlERT.h"
17 #include "ui_ERTUi.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiERT;
25
26 class GuiERTDialog : public QDialog, public Ui::ERTUi
27 {
28         Q_OBJECT
29 public:
30         GuiERTDialog(GuiERT * form);
31 protected Q_SLOTS:
32         virtual void change_adaptor();
33 protected:
34         virtual void closeEvent(QCloseEvent * e);
35 private:
36         GuiERT * form_;
37 };
38
39
40 class GuiERT : public GuiView<GuiERTDialog>
41 {
42 public:
43         /// constructor
44         GuiERT(GuiDialog &);
45         /// parent controller
46         ControlERT & controller()
47         { return static_cast<ControlERT &>(this->getController()); }
48         /// parent controller
49         ControlERT const & controller() const
50         { return static_cast<ControlERT const &>(this->getController()); }
51 private:
52         friend class GuiERTDialog;
53         /// Apply changes
54         virtual void applyView();
55         /// update
56         virtual void update_contents();
57         /// build the dialog
58         virtual void build_dialog();
59 };
60
61 } // namespace frontend
62 } // namespace lyx
63
64 #endif // GUIERT_H