]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInfo.h
Add missing initialization
[lyx.git] / src / frontends / qt4 / GuiInfo.h
index 001a9a81af4312747c646ccad547bf7fbee6c61e..f0ebfc474cd64a07fa7c501b9f1e593a74001df6 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef GUI_INFO_H
 #define GUI_INFO_H
 
-#include "InsetDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_InfoUi.h"
 
 namespace lyx {
@@ -21,27 +21,22 @@ class Inset;
 
 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);
-       //@}
-
-private Q_SLOTS:
-       void on_typeCO_currentIndexChanged(int);
-       void on_nameLE_textChanged(QString const &);
+       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; }
+       QString dialogTitle() const { return qt_("Info Inset Settings"); }
        void paramsToDialog(Inset const *);
        docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
        //@}
 };