* Full author contact details are available in file CREDITS.
*/
-#ifndef GuiERT_H
-#define GuiERT_H
+#ifndef GUIERT_H
+#define GUIERT_H
-#include "GuiDialogView.h"
+#include "GuiDialog.h"
#include "ui_ERTUi.h"
-
-#include <QCloseEvent>
-#include <QDialog>
+#include "insets/InsetERT.h" // InsetERT::ERTStatus
namespace lyx {
namespace frontend {
-class GuiERT;
-
-class GuiERTDialog : public QDialog, public Ui::ERTUi {
+class GuiERT : public GuiDialog, public Ui::ERTUi
+{
Q_OBJECT
-public:
- GuiERTDialog(GuiERT * form);
-protected Q_SLOTS:
- virtual void change_adaptor();
-protected:
- virtual void closeEvent(QCloseEvent * e);
-private:
- GuiERT * form_;
-};
-
-
-class ControlERT;
-
-class GuiERT : public QController<ControlERT, GuiView<GuiERTDialog> >
-{
public:
- friend class GuiERTDialog;
+ GuiERT(GuiView & lv);
+
+private Q_SLOTS:
+ void change_adaptor();
- GuiERT(Dialog &);
private:
/// Apply changes
- virtual void apply();
+ void applyView();
/// update
- virtual void update_contents();
- /// build the dialog
- virtual void build_dialog();
+ 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
} // namespace lyx
-#endif // GuiERT_H
+#endif // GUIERT_H