X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiBibitem.h;h=b0c34e79b7e9709bc47dbb499bfc4af876311f2f;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=c46c0d9533f0886965ecf52edd03c28ceac50a18;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiBibitem.h b/src/frontends/qt4/GuiBibitem.h index c46c0d9533..b0c34e79b7 100644 --- a/src/frontends/qt4/GuiBibitem.h +++ b/src/frontends/qt4/GuiBibitem.h @@ -4,6 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * + * \author Angus Leeming * \author John Levon * * Full author contact details are available in file CREDITS. @@ -13,35 +14,43 @@ #define GUIBIBITEM_H #include "GuiDialog.h" -#include "ControlCommand.h" #include "ui_BibitemUi.h" +#include "insets/InsetCommandParams.h" + namespace lyx { namespace frontend { -class GuiBibitemDialog : public GuiDialog, public Ui::BibitemUi +class GuiBibitem : public GuiDialog, public Ui::BibitemUi { Q_OBJECT public: - GuiBibitemDialog(LyXView & lv); + /// Constructor + GuiBibitem(GuiView & lv); private Q_SLOTS: void change_adaptor(); -private: - /// - void closeEvent(QCloseEvent * e); - /// parent controller - ControlCommand & controller() const; - private: /// bool isValid(); /// Apply changes void applyView(); /// update - void update_contents(); + void updateContents(); + /// + bool initialiseParams(std::string const & data); + /// clean-up on hide. + void clearParams() { params_.clear(); } + /// clean-up on hide. + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + +private: + /// + InsetCommandParams params_; }; } // namespace frontend