]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QSearch.h
some more random changes, added Timeout (make clean if LyX crashes !!)
[lyx.git] / src / frontends / qt2 / QSearch.h
1 // -*- C++ -*-
2 /** 
3  * \file QSearch.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  * 
7  * \author Edwin Leuven
8  */
9
10 #ifndef QSEARCH_H
11 #define QSEARCH_H
12
13 #include "DialogBase.h"
14 #include "LString.h"
15 #include "support/lstrings.h"
16
17 class LyXView;
18 class Dialogs;
19 class QSearchDialog;
20
21 class QSearch : public DialogBase {
22 public:
23         ///
24         QSearch(LyXView *, Dialogs *);
25         ///
26         ~QSearch();
27         
28         /// Close connections.
29         void close();
30         /// find stuff (we need access to lv_).
31         void find(string const &, bool const &, bool const &, bool const &);
32         /// replace stuff (we need access to lv_).
33         void replace(string const &, string const &, 
34                 bool const &, bool const &, bool const &, bool const &);
35         
36 private:
37         /// Show the dialog.
38         void show();
39         /// Hide the dialog.
40         void hide();
41         /// Update the dialog.
42         void update(bool switched = false);
43         
44         /// Real GUI implementation.
45         QSearchDialog * dialog_;
46         
47         /// the LyXView we belong to.
48         LyXView * lv_;
49         
50         /** Which Dialogs do we belong to?
51          *  Used so we can get at the signals we have to connect to.
52          */
53         Dialogs * d_;
54         
55         /// Hide connection.
56         SigC::Connection h_;
57
58         /// Update connection.
59         SigC::Connection u_;
60         
61 };
62
63 #endif // QSEARCH_H