]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSearch.h
header cleanup
[lyx.git] / src / frontends / qt4 / GuiSearch.h
index 3e5c8d147fd6dcc6c4a46a9242172370f2967ddd..b56555307456b50c33b821213939d26b62c40721 100644 (file)
@@ -5,6 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author John Levon
+ * \author Angus Leeming
  *
  * Full author contact details are available in file CREDITS.
  */
 #define GUISEARCH_H
 
 #include "GuiDialog.h"
-#include "ControlSearch.h"
 #include "ui_SearchUi.h"
 
 namespace lyx {
 namespace frontend {
 
-class ControlSearch;
-
-class GuiSearchDialog : public GuiDialog, public Ui::SearchUi
+class GuiSearch : public GuiDialog, public Ui::SearchUi
 {
        Q_OBJECT
 
 public:
-       GuiSearchDialog(LyXView & lv);
+       GuiSearch(GuiView & lv);
 
 private Q_SLOTS:
        void findChanged();
@@ -35,17 +33,21 @@ private Q_SLOTS:
        void replaceallClicked();
 
 private:
-       void showView();
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlSearch & controller() const;
-       ///
-       void find(docstring const & str, bool casesens,
-         bool words, bool backwards);
+       void showEvent(QShowEvent * e);
        ///
-       void replace(docstring const & findstr,
-         docstring const & replacestr,
-         bool casesens, bool words, bool backwards, bool all);
+       bool initialiseParams(std::string const &) { return true; }
+       void clearParams() {}
+       void dispatchParams() {}
+       bool isBufferDependent() const { return true; }
+
+       /// Searches occurence of string
+       void find(docstring const & search,
+                 bool casesensitive, bool matchword, bool forward);
+
+       /// Replaces occurence of string
+       void replace(docstring const & search, docstring const & replace,
+                    bool casesensitive, bool matchword,
+                    bool forward, bool all);
 };
 
 } // namespace frontend