]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FindAndReplace.h
Improve wording (#10670)
[lyx.git] / src / frontends / qt4 / FindAndReplace.h
index cdb244936832f8d30cdf54b7867d5f8abc6c0c85..93af5357029f7107a5ebc74ac0e23cc6f029dd73 100644 (file)
 #ifndef QSEARCHADV_H
 #define QSEARCHADV_H
 
-#include "GuiWorkArea.h"
-
 #include "DockView.h"
 // This is needed so that ui_FindAndReplaceUi.h can find qt_()
 #include "qt_helpers.h"
 #include "ui_FindAndReplaceUi.h"
 
-#include "BufferView.h"
-#include "Buffer.h"
-#include "LyX.h"
-#include "Text.h"
 #include "lyxfind.h"
 
-#include <QDialog>
-
 #include <string>
 
 namespace lyx {
@@ -39,6 +31,11 @@ class FindAndReplaceWidget : public QTabWidget, public Ui::FindAndReplaceUi
 public:
        FindAndReplaceWidget(GuiView & view);
        bool initialiseParams(std::string const & params);
+       void updateGUI();
+
+public Q_SLOTS:
+       ///
+       void dockLocationChanged(Qt::DockWidgetArea area);
 
 private:
        ///
@@ -86,11 +83,12 @@ public:
        bool initialiseParams(std::string const &);
        void clearParams() {}
        void dispatchParams() {}
-       bool isBufferDependent() const { return true; }
+       bool isBufferDependent() const { return false; }
+       bool canApplyToReadOnly() const { return true; }
        void selectAll();
 
        /// update
-       void updateView() {}
+       void updateView();
        //virtual void update_contents() {}
 
 protected: