GuiPrintNomencl.{cpp,h}:
[lyx.git] / src / frontends / qt4 / GuiERT.h
blob09debfeb182ee2746a237fa82867fbd49b865d5a
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.
7 * \author John Levon
9 * Full author contact details are available in file CREDITS.
12 #ifndef GUIERT_H
13 #define GUIERT_H
15 #include "GuiDialog.h"
16 #include "ui_ERTUi.h"
17 #include "insets/InsetERT.h" // InsetERT::ERTStatus
19 namespace lyx {
20 namespace frontend {
22 class GuiERT : public GuiDialog, public Ui::ERTUi
24 Q_OBJECT
26 public:
27 GuiERT(GuiView & lv);
29 private Q_SLOTS:
30 void change_adaptor();
32 private:
33 /// Apply changes
34 void applyView();
35 /// update
36 void updateContents();
37 ///
38 InsetCollapsable::CollapseStatus status() const { return status_; }
39 ///
40 void setStatus(InsetCollapsable::CollapseStatus status) { status_ = status; }
41 ///
42 bool initialiseParams(std::string const & data);
43 /// clean-up on hide.
44 void clearParams();
45 /// clean-up on hide.
46 void dispatchParams();
47 ///
48 bool isBufferDependent() const { return true; }
49 private:
50 ///
51 InsetCollapsable::CollapseStatus status_;
54 } // namespace frontend
55 } // namespace lyx
57 #endif // GUIERT_H