X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiInfo.h;h=f0ebfc474cd64a07fa7c501b9f1e593a74001df6;hb=1f10969bb5c5f36017bf5ba8671381b09945cf57;hp=01fcffd40f51a51526caa1636343162933130456;hpb=ccea2a5cd9410ebe47a83a76fece3fa68b1d6419;p=lyx.git diff --git a/src/frontends/qt4/GuiInfo.h b/src/frontends/qt4/GuiInfo.h index 01fcffd40f..f0ebfc474c 100644 --- a/src/frontends/qt4/GuiInfo.h +++ b/src/frontends/qt4/GuiInfo.h @@ -12,33 +12,32 @@ #ifndef GUI_INFO_H #define GUI_INFO_H -#include "DialogView.h" +#include "InsetParamsWidget.h" #include "ui_InfoUi.h" namespace lyx { -class InsetInfo; +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; } + 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_closePB_clicked(); }; } // namespace frontend