]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiERT.h
a7c2628af70c52a83323a9ced6ac2fcd997a778c
[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 "ui_ERTUi.h"
17
18 #include <QCloseEvent>
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiERT;
25
26 class GuiERTDialog : public QDialog, public Ui::ERTUi {
27         Q_OBJECT
28 public:
29         GuiERTDialog(GuiERT * form);
30 protected Q_SLOTS:
31         virtual void change_adaptor();
32 protected:
33         virtual void closeEvent(QCloseEvent * e);
34 private:
35         GuiERT * form_;
36 };
37
38
39
40 class ControlERT;
41
42 class GuiERT : public QController<ControlERT, GuiView<GuiERTDialog> >
43 {
44 public:
45         friend class GuiERTDialog;
46
47         GuiERT(Dialog &);
48 private:
49         /// Apply changes
50         virtual void apply();
51         /// update
52         virtual void update_contents();
53         /// build the dialog
54         virtual void build_dialog();
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GuiERT_H