]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiERT.h
math stuff
[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 "GuiDialog.h"
16 #include "ui_ERTUi.h"
17 #include "insets/InsetERT.h" // InsetERT::ERTStatus
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiERT : public GuiDialog, public Ui::ERTUi, public Controller
23 {
24         Q_OBJECT
25
26 public:
27         GuiERT(LyXView & lv);
28
29 private Q_SLOTS:
30         void change_adaptor();
31
32 private:
33         void closeEvent(QCloseEvent * e);
34         /// parent controller
35         Controller & controller() { return *this; }
36         /// Apply changes
37         void applyView();
38         /// update
39         void updateContents();
40         ///
41         InsetCollapsable::CollapseStatus status() const { return status_; }
42         ///
43         void setStatus(InsetCollapsable::CollapseStatus status) { status_ = status; }
44         ///
45         bool initialiseParams(std::string const & data);
46         /// clean-up on hide.
47         void clearParams();
48         /// clean-up on hide.
49         void dispatchParams();
50         ///
51         bool isBufferDependent() const { return true; }
52 private:
53         ///
54         InsetCollapsable::CollapseStatus status_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GUIERT_H