]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearchDialog.h
The Cygwin path fix.
[lyx.git] / src / frontends / qt2 / QSearchDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QSearchDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QSEARCHDIALOG_H
13 #define QSEARCHDIALOG_H
14
15 #include "ui/QSearchDialogBase.h"
16 #include <string>
17
18 class QCloseEvent;
19 class QComboBox;
20
21 namespace lyx {
22 namespace frontend {
23
24 class QSearch;
25
26 class QSearchDialog : public QSearchDialogBase {
27         Q_OBJECT
28 public:
29         QSearchDialog(QSearch * form);
30
31         virtual void show();
32 protected slots:
33         void findChanged();
34         void findClicked();
35         void replaceClicked();
36         void replaceallClicked();
37 protected:
38         virtual void closeEvent(QCloseEvent * e);
39
40 private:
41         // add a string to the combo if needed
42         void remember(std::string const & find, QComboBox & combo);
43
44         QSearch * form_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // QSEARCHDIALOG_H