]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiRef.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiRef.h
index 3578985f7ba11b310460bd61bbac700cbc6aa836..f1bb9f9e3c56c6c3ab7a282b16b0f93a0aa45f8a 100644 (file)
@@ -24,12 +24,12 @@ class QListWidgetItem;
 namespace lyx {
 namespace frontend {
 
-class GuiRef : public GuiDialog, public Ui::RefUi, public Controller
+class GuiRef : public GuiCommand, public Ui::RefUi
 {
        Q_OBJECT
 
 public:
-       GuiRef(LyXView & lv);
+       GuiRef(GuiView & lv);
 
 private Q_SLOTS:
        void changed_adaptor();
@@ -42,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; }
@@ -58,13 +51,8 @@ private:
        void gotoRef(std::string const &);
        ///
        void gotoBookmark();
-       ///
-       int bufferNum() const;
-
        ///
        void closeEvent(QCloseEvent * e);
-       /// parent controller
-       Controller & controller() { return *static_cast<Controller*>(this); }
        ///
        bool isValid();
        /// apply changes
@@ -97,9 +85,6 @@ private:
        int restored_buffer_;
        /// the references
        std::vector<docstring> refs_;
-
-       ///
-       InsetCommandParams params_;
 };
 
 } // namespace frontend