]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiERT.h
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / GuiERT.h
index b9b7cccc033410df822c3da8b32652650b3a4b89..cc4caefbaf7fac0997713c2abce97314eb73727c 100644 (file)
 #ifndef GUIERT_H
 #define GUIERT_H
 
-#include "InsetDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_ERTUi.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiERT : public InsetDialog, public Ui::ERTUi
+class GuiERT : public InsetParamsWidget, public Ui::ERTUi
 {
        Q_OBJECT
 
 public:
-       GuiERT(GuiView & lv);
+       GuiERT(QWidget * parent = 0);
 
 private:
-       /// \name Dialog inerited methods
-       //@{
-       void enableView(bool enable);
-       //@}
-
-       /// \name InsetDialog inherited methods
+       /// \name InsetParamsWidget inherited methods
        //@{
+       InsetCode insetCode() const { return ERT_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       QString dialogTitle() const { return qt_("TeX Mode Inset Settings"); }
        void paramsToDialog(Inset const *);
        docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
        //@}
 };