]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibitem.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiBibitem.h
index c46c0d9533f0886965ecf52edd03c28ceac50a18..b0c34e79b7e9709bc47dbb499bfc4af876311f2f 100644 (file)
@@ -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.
 #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