]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiERT.h
index f714f1c29e5c83be99a4ce7a6161a3a3443b6822..09debfeb182ee2746a237fa82867fbd49b865d5a 100644 (file)
 #define GUIERT_H
 
 #include "GuiDialog.h"
-#include "ControlERT.h"
 #include "ui_ERTUi.h"
+#include "insets/InsetERT.h" // InsetERT::ERTStatus
 
 namespace lyx {
 namespace frontend {
 
-class GuiERTDialog : public GuiDialog, public Ui::ERTUi
+class GuiERT : public GuiDialog, public Ui::ERTUi
 {
        Q_OBJECT
 
 public:
-       GuiERTDialog(LyXView & lv);
+       GuiERT(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
 
 private:
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlERT & controller();
        /// Apply changes
        void applyView();
        /// update
        void updateContents();
+       ///
+       InsetCollapsable::CollapseStatus status() const { return status_; }
+       ///
+       void setStatus(InsetCollapsable::CollapseStatus status) { status_ = status; }
+       ///
+       bool initialiseParams(std::string const & data);
+       /// clean-up on hide.
+       void clearParams();
+       /// clean-up on hide.
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+private:
+       ///
+       InsetCollapsable::CollapseStatus status_;
 };
 
 } // namespace frontend