X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiERT.h;h=09debfeb182ee2746a237fa82867fbd49b865d5a;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=d49f9d5ef23e3a9e9c0ef1b06b28f7270a9e4afc;hpb=9a95d2a936748c057db94a3083c4b9e6587eea0b;p=lyx.git diff --git a/src/frontends/qt4/GuiERT.h b/src/frontends/qt4/GuiERT.h index d49f9d5ef2..09debfeb18 100644 --- a/src/frontends/qt4/GuiERT.h +++ b/src/frontends/qt4/GuiERT.h @@ -12,50 +12,43 @@ #ifndef GUIERT_H #define GUIERT_H -#include "GuiDialogView.h" -#include "ControlERT.h" +#include "GuiDialog.h" #include "ui_ERTUi.h" - -#include +#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_; -}; + GuiERT(GuiView & lv); +private Q_SLOTS: + void change_adaptor(); -class GuiERT : public GuiView -{ -public: - /// constructor - GuiERT(GuiDialog &); - /// parent controller - ControlERT & controller() - { return static_cast(this->getController()); } - /// parent controller - ControlERT const & controller() const - { return static_cast(this->getController()); } private: - friend class GuiERTDialog; /// Apply changes - virtual void applyView(); + 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