#ifndef GUI_INFO_H
#define GUI_INFO_H
-#include "InsetDialog.h"
+#include "InsetParamsWidget.h"
#include "ui_InfoUi.h"
namespace lyx {
namespace frontend {
-class GuiInfo : public InsetDialog, public Ui::InfoUi
+class GuiInfo : public InsetParamsWidget, public Ui::InfoUi
{
Q_OBJECT
public:
- GuiInfo(GuiView & lv);
-
- /// \name Dialog inherited methods
- //@{
- void enableView(bool enable);
- //@}
+ GuiInfo(QWidget * parent = 0);
private:
- /// \name InsetDialog inherited methods
+ /// \name InsetParamsWidget inherited methods
//@{
+ InsetCode insetCode() const { return INFO_CODE; }
+ FuncCode creationCode() const { return LFUN_INFO_INSERT; }
void paramsToDialog(Inset const *);
docstring dialogToParams() const;
+ bool checkWidgets(bool readonly) const;
//@}
};