]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QERT.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[lyx.git] / src / frontends / qt4 / QERT.h
1 // -*- C++ -*-
2 /**
3  * \file QERT.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 QERT_H
13 #define QERT_H
14
15 #include "QDialogView.h"
16 #include "ui/ERTUi.h"
17
18 #include <QCloseEvent>
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class QERT;
25
26 class QERTDialog : public QDialog, public Ui::QERTUi {
27         Q_OBJECT
28 public:
29         QERTDialog(QERT * form);
30 protected Q_SLOTS:
31         virtual void change_adaptor();
32 protected:
33         virtual void closeEvent(QCloseEvent * e);
34 private:
35         QERT * form_;
36 };
37
38
39
40 class ControlERT;
41
42 class QERT : public QController<ControlERT, QView<QERTDialog> >
43 {
44 public:
45         friend class QERTDialog;
46
47         QERT(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 // QERT_H