]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiSearch.h
This is the last of a series of patches that merges the layout modules development...
[lyx.git] / src / frontends / qt4 / GuiSearch.h
1 // -*- C++ -*-
2 /**
3  * \file GuiSearch.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 GUISEARCH_H
13 #define GUISEARCH_H
14
15 #include "GuiDialog.h"
16 #include "ControlSearch.h"
17 #include "ui_SearchUi.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlSearch;
23
24 class GuiSearchDialog : public GuiDialog, public Ui::SearchUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiSearchDialog(LyXView & lv);
30
31 private Q_SLOTS:
32         void findChanged();
33         void findClicked();
34         void replaceClicked();
35         void replaceallClicked();
36
37 private:
38         void showView();
39         void closeEvent(QCloseEvent * e);
40         /// parent controller
41         ControlSearch & controller();
42         ///
43         void find(docstring const & str, bool casesens,
44           bool words, bool backwards);
45         ///
46         void replace(docstring const & findstr,
47           docstring const & replacestr,
48           bool casesens, bool words, bool backwards, bool all);
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // GUISEARCH_H