X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiSearch.h;h=b56555307456b50c33b821213939d26b62c40721;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=9ae3842ac1d9fef1abe5f9b92e9a2ae654f31779;hpb=470aba2a0e552f27d55992372c09f15af9725fa8;p=lyx.git diff --git a/src/frontends/qt4/GuiSearch.h b/src/frontends/qt4/GuiSearch.h index 9ae3842ac1..b565553074 100644 --- a/src/frontends/qt4/GuiSearch.h +++ b/src/frontends/qt4/GuiSearch.h @@ -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. */ @@ -13,20 +14,17 @@ #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(); - /// - 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