]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/searchdlgimpl.h
implement getLabelList
[lyx.git] / src / frontends / qt2 / searchdlgimpl.h
1 #ifndef SEARCHDLGIMPL_H
2 #define SEARCHDLGIMPL_H
3
4 #include "searchdlg.h"
5 #include "FormSearch.h"
6
7 class QCloseEvent;
8
9 class SearchDlgImpl : public SearchDlg
10
11     Q_OBJECT
12
13
14  public:
15     
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);
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