X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiNomencl.h;h=0b83d2e0e28d0e12a97f1c048ab7fec6c5809508;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=4a4dfcb2bc9f3889df3c80c5176602f23e8699ae;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiNomencl.h b/src/frontends/qt4/GuiNomencl.h index 4a4dfcb2bc..0b83d2e0e2 100644 --- a/src/frontends/qt4/GuiNomencl.h +++ b/src/frontends/qt4/GuiNomencl.h @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file GuiNomencl.h + * \file GuiNomenclature.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -11,43 +11,52 @@ * Full author contact details are available in file CREDITS. */ -#ifndef GUINOMENCL_H -#define GUINOMENCL_H +#ifndef GUINOMENCLATURE_H +#define GUINOMENCLATURE_H #include "GuiDialog.h" -#include "ControlCommand.h" #include "ui_NomenclUi.h" +#include "insets/InsetCommandParams.h" + namespace lyx { namespace frontend { -class GuiNomenclDialog : public GuiDialog, public Ui::NomenclUi +class GuiNomenclature : public GuiDialog, public Ui::NomenclUi { Q_OBJECT public: - GuiNomenclDialog(LyXView & lv); + GuiNomenclature(GuiView & lv); private Q_SLOTS: void change_adaptor(); void reject(); private: - /// - void showView(); - /// - void closeEvent(QCloseEvent * e); - /// parent controller - ControlCommand & controller() const; /// bool isValid(); /// Apply changes void applyView(); /// update - void update_contents(); + void updateContents() {} + /// + bool initialiseParams(std::string const & data); + /// + void paramsToDialog(InsetCommandParams const & icp); + /// clean-up on hide. + void clearParams() { params_.clear(); } + /// clean-up on hide. + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + +private: + /// + InsetCommandParams params_; }; } // namespace frontend } // namespace lyx -#endif // GUINOMENCL_H +#endif // GUINOMENCLATURE_H