]> 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 a7c2628af70c52a83323a9ced6ac2fcd997a778c..18a1a9163cee358ed343c6ce1fbf8d60bda80448 100644 (file)
@@ -9,52 +9,33 @@
  * 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 "InsetParamsWidget.h"
 #include "ui_ERTUi.h"
 
-#include <QCloseEvent>
-#include <QDialog>
-
 namespace lyx {
 namespace frontend {
 
-class GuiERT;
-
-class GuiERTDialog : public QDialog, public Ui::ERTUi {
+class GuiERT : public InsetParamsWidget, 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(QWidget * parent = 0);
 
-       GuiERT(Dialog &);
 private:
-       /// Apply changes
-       virtual void apply();
-       /// update
-       virtual void update_contents();
-       /// build the dialog
-       virtual void build_dialog();
+       /// \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
 } // namespace lyx
 
-#endif // GuiERT_H
+#endif // GUIERT_H