]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QSearch.h
1 // -*- C++ -*-
2 /**
3  * \file QSearch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QSEARCH_H
13 #define QSEARCH_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "Qt2Base.h"
20
21 class ControlSearch;
22 class QSearchDialog;
23
24
25 ///
26 class QSearch
27         : public Qt2CB<ControlSearch, Qt2DB<QSearchDialog> >
28 {
29 public:
30         ///
31         friend class QSearchDialog;
32         ///
33         QSearch();
34 private:
35         /// Apply changes
36         virtual void apply() {}
37         /// update
38         virtual void update_contents() {}
39         /// build the dialog
40         virtual void build_dialog();
41
42         void find(string const & str, bool casesens,
43                   bool words, bool backwards);
44
45         void replace(string const & findstr, string const & replacestr,
46                 bool casesens, bool words, bool all);
47 };
48
49 #endif // QSEARCH_H