]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiRef.h
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiRef.h
index 96285e3640ff218bce8442253e1ebe89d7b54309..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,15 +24,12 @@ class QListWidgetItem;
 namespace lyx {
 namespace frontend {
 
-// FIXME This could, and therefore, should inherit from
-// GuiCommand. Note, e.g., that the definitions of the first
-// three private functions all just replicate what's there.
 class GuiRef : public GuiDialog, public Ui::RefUi
 {
        Q_OBJECT
 
 public:
-       GuiRef(LyXView & lv);
+       GuiRef(GuiView & lv);
 
 private Q_SLOTS:
        void changed_adaptor();
@@ -45,15 +42,8 @@ private Q_SLOTS:
        void reset_dialog();
 
 private:
-       ///
-       bool initialiseParams(std::string const & data);
-       /// clean-up on hide.
-       void clearParams();
-       /// clean-up on hide.
-       void dispatchParams();
        ///
        bool isBufferDependent() const { return true; }
-
        /** disconnect from the inset when the Apply button is pressed.
         Allows easy insertion of multiple references. */
        bool disconnectOnApply() const { return true; }
@@ -61,7 +51,6 @@ private:
        void gotoRef(std::string const &);
        ///
        void gotoBookmark();
-
        ///
        void closeEvent(QCloseEvent * e);
        ///
@@ -85,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_;
@@ -96,9 +95,6 @@ private:
        int restored_buffer_;
        /// the references
        std::vector<docstring> refs_;
-
-       ///
-       InsetCommandParams params_;
 };
 
 } // namespace frontend