]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInfo.h
Add missing initialization
[lyx.git] / src / frontends / qt4 / GuiInfo.h
index c3002fd235881ffe55ce088cc0d85f047056e508..f0ebfc474cd64a07fa7c501b9f1e593a74001df6 100644 (file)
 #ifndef GUI_INFO_H
 #define GUI_INFO_H
 
-#include "DialogView.h"
+#include "InsetParamsWidget.h"
 #include "ui_InfoUi.h"
 
 namespace lyx {
 
+class Inset;
+
 namespace frontend {
 
-class GuiInfo : public DialogView, public Ui::InfoUi
+class GuiInfo : public InsetParamsWidget, public Ui::InfoUi
 {
        Q_OBJECT
 
 public:
-       GuiInfo(GuiView & lv);
+       GuiInfo(QWidget * parent = 0);
 
-       /// Dialog inherited methods
+private:
+       /// \name InsetParamsWidget inherited methods
        //@{
-       void applyView();
-       void updateView();
-       void dispatchParams() {}
-       void enableView(bool enable);
-       bool isBufferDependent() const { return true; }
-       bool canApply() const { return true; }
+       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;
        //@}
-
-private Q_SLOTS:
-       void on_newPB_clicked();
-       void on_closePB_clicked();
-       void on_typeCO_currentIndexChanged(int);
-       void on_nameLE_textChanged(QString const &);
-
-private:
-       void paramsToDialog();
-       void dialogToParams();
-       QString type_;
-       QString name_;
 };
 
 } // namespace frontend