]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiRef.h
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiRef.h
index b5b8e03b56b41c5b8c9c4159ea3a0143cf2a6b95..ed355a590f12c32a17bc11965626494b1b1ccf59 100644 (file)
@@ -13,8 +13,8 @@
 #define GUIREF_H
 
 #include "GuiDialog.h"
-#include "Dialog.h"
 #include "ui_RefUi.h"
+
 #include "insets/InsetCommandParams.h"
 
 #include <vector>
@@ -24,12 +24,12 @@ class QListWidgetItem;
 namespace lyx {
 namespace frontend {
 
-class GuiRef : public GuiCommand, public Ui::RefUi
+class GuiRef : public GuiDialog, public Ui::RefUi
 {
        Q_OBJECT
 
 public:
-       GuiRef(LyXView & lv);
+       GuiRef(GuiView & lv);
 
 private Q_SLOTS:
        void changed_adaptor();
@@ -74,6 +74,16 @@ private:
        void redoRefs();
        /// update references
        void updateRefs();
+       ///
+       bool initialiseParams(std::string const & data);
+       /// clean-up on hide.
+       void clearParams() { params_.clear(); }
+       /// clean-up on hide.
+       void dispatchParams();
+
+private:
+       ///
+       InsetCommandParams params_;
 
        /// sort or not persistent state
        bool sort_;