]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearchDialog.h
Lots and lots of little trivial bits.
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ui/QSearchDialogBase.h"
20 #include "LString.h"
21
22 class QSearch;
23 class QCloseEvent;
24 class QComboBox;
25
26 class QSearchDialog : public QSearchDialogBase
27 { Q_OBJECT
28
29 public:
30         QSearchDialog(QSearch * form);
31
32         virtual void show();
33
34 protected slots:
35         void findChanged();
36         void findClicked();
37         void replaceClicked();
38         void replaceallClicked();
39
40 protected:
41         virtual void closeEvent(QCloseEvent * e);
42
43 private:
44         // add a string to the combo if needed
45         void remember(string const & find, QComboBox & combo);
46
47         QSearch * form_;
48 };
49
50 #endif // QSEARCHDIALOG_H