]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/searchdlgimpl.h
Qt2 compilation + LColor cleanup from John
[lyx.git] / src / frontends / qt2 / searchdlgimpl.h
1 #ifndef SEARCHDLGIMPL_H
2 #define SEARCHDLGIMPL_H
3
4 #include <config.h>
5  
6 #include "searchdlg.h"
7 #include "FormSearch.h"
8
9 class QCloseEvent;
10
11 class SearchDlgImpl : public SearchDlg
12
13         Q_OBJECT
14
15 public:
16         SearchDlgImpl(FormSearch * form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
17          
18         ~SearchDlgImpl();
19         
20         void setReadOnly(bool);
21         
22         void Replace(bool replaceall = false);
23  
24 protected:
25         
26         void closeEvent(QCloseEvent * e);
27
28 private:
29         
30         FormSearch * form_;
31
32 protected slots:
33          
34         void Find();
35          
36         void Replace() {
37                 Replace(false);
38         };
39          
40         void ReplaceAll() {
41                 Replace(true);
42         };
43         
44         void cancel_adaptor() {
45                 form_->close();
46                 hide();
47         }
48
49 };
50
51 #endif // SEARCHDLGIMPL_H