]> 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 6c0faae500494effa2ca7df7186812e1cbceb4f8..f1bb9f9e3c56c6c3ab7a282b16b0f93a0aa45f8a 100644 (file)
@@ -13,8 +13,9 @@
 #define GUIREF_H
 
 #include "GuiDialog.h"
-#include "ControlRef.h"
+#include "Dialog.h"
 #include "ui_RefUi.h"
+#include "insets/InsetCommandParams.h"
 
 #include <vector>
 
@@ -23,12 +24,12 @@ class QListWidgetItem;
 namespace lyx {
 namespace frontend {
 
-class GuiRefDialog : public GuiDialog, public Ui::RefUi
+class GuiRef : public GuiCommand, public Ui::RefUi
 {
        Q_OBJECT
 
 public:
-       GuiRefDialog(LyXView & lv);
+       GuiRef(GuiView & lv);
 
 private Q_SLOTS:
        void changed_adaptor();
@@ -41,10 +42,17 @@ private Q_SLOTS:
        void reset_dialog();
 
 private:
+       ///
+       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; }
+       ///
+       void gotoRef(std::string const &);
+       ///
+       void gotoBookmark();
        ///
        void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlRef & controller();
        ///
        bool isValid();
        /// apply changes