]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiERT.h
index 1d1e53df659d792893ae3005aa71afa42db96088..18a1a9163cee358ed343c6ce1fbf8d60bda80448 100644 (file)
 #ifndef GUIERT_H
 #define GUIERT_H
 
-#include "GuiDialog.h"
-#include "ControlERT.h"
+#include "InsetParamsWidget.h"
 #include "ui_ERTUi.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiERTDialog : public GuiDialog, public Ui::ERTUi
+class GuiERT : public InsetParamsWidget, public Ui::ERTUi
 {
        Q_OBJECT
 
 public:
-       GuiERTDialog(LyXView & lv);
-
-private Q_SLOTS:
-       void change_adaptor();
+       GuiERT(QWidget * parent = 0);
 
 private:
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlERT & controller() const;
-       /// Apply changes
-       void applyView();
-       /// update
-       void update_contents();
+       /// \name InsetParamsWidget inherited methods
+       //@{
+       InsetCode insetCode() const { return ERT_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       //@}
 };
 
 } // namespace frontend