]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearchDialog.h
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / QSearchDialog.h
1 /**
2  * \file QSearchDialog.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Edwin Leuven
7  */
8
9 #ifndef QSEARCHDIALOG_H
10 #define QSEARCHDIALOG_H
11
12 #include <config.h>
13  
14 #include "ui/QSearchDialogBase.h"
15 #include "QSearch.h"
16
17 class QCloseEvent;
18
19 class QSearchDialog : public QSearchDialogBase
20 { Q_OBJECT
21
22 public:
23         QSearchDialog(QSearch * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
24         ~QSearchDialog();
25         
26         void setReadOnly(bool);
27         
28         void Replace(bool replaceall = false);
29  
30 protected:
31         void closeEvent(QCloseEvent * e);
32
33 private:
34         QSearch * form_;
35
36 protected slots:
37
38         void Find();
39  
40         void Replace() {
41                 Replace(false);
42         };
43  
44         void ReplaceAll() {
45                 Replace(true);
46         };
47
48         void cancel_adaptor() {
49                 form_->close();
50                 hide();
51         }
52 };
53
54 #endif // QSEARCHDIALOG_H