#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; }
+ QString dialogTitle() const { return qt_("TeX Mode Inset Settings"); }
+ void paramsToDialog(Inset const *);
+ docstring dialogToParams() const;
+ bool checkWidgets(bool readonly) const;
+ //@}
};
} // namespace frontend