X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPrintNomencl.h;h=6d5de973200d7a9bb6c8c68abb6fd57ef1d1d07a;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=930cf7ce3640158e9ce3d0f9b463d8aebc0e67de;hpb=9d02de79d82294b36a38609403215535d3efc317;p=lyx.git diff --git a/src/frontends/qt4/GuiPrintNomencl.h b/src/frontends/qt4/GuiPrintNomencl.h index 930cf7ce36..6d5de97320 100644 --- a/src/frontends/qt4/GuiPrintNomencl.h +++ b/src/frontends/qt4/GuiPrintNomencl.h @@ -13,44 +13,35 @@ #ifndef GUIPRINTNOMENCL_H #define GUIPRINTNOMENCL_H -#include "GuiDialog.h" +#include "InsetParamsWidget.h" #include "ui_PrintNomenclUi.h" -#include "insets/InsetCommandParams.h" +namespace lyx { +class InsetCommandParams; -namespace lyx { namespace frontend { -class GuiPrintNomencl : public GuiDialog, public Ui::PrintNomenclUi +class GuiPrintNomencl : public InsetParamsWidget, public Ui::PrintNomenclUi { Q_OBJECT public: - GuiPrintNomencl(GuiView & lv); + GuiPrintNomencl(QWidget * parent = 0); private Q_SLOTS: - void change_adaptor(); void on_setWidthCO_activated(int); private: - /// Apply changes - void applyView(); - /// Update dialog before showing it - void updateContents(); - /// - bool initialiseParams(std::string const & data); - /// - void paramsToDialog(InsetCommandParams const & icp); - /// - void clearParams() { params_.clear(); } - /// - void dispatchParams(); - /// - bool isBufferDependent() const { return true; } - - /// - InsetCommandParams params_; + /// \name InsetParamsWidget inherited methods + //@{ + InsetCode insetCode() const { return NOMENCL_PRINT_CODE; } + FuncCode creationCode() const { return LFUN_INSET_INSERT; } + void paramsToDialog(Inset const *); + void paramsToDialog(InsetCommandParams const &); + docstring dialogToParams() const; + bool checkWidgets(bool readonly) const; + //@} }; } // namespace frontend