]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormSearch.h
Clean-up of the button controller.
[lyx.git] / src / frontends / qt2 / FormSearch.h
1 // -*- C++ -*-
2 /** 
3  * \file FormSearch.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  * 
7  * \author Edwin Leuven
8  */
9
10 #ifndef FORM_SEARCH_H
11 #define FORM_SEARCH_H
12
13 #include "DialogBase.h"
14 #include "LString.h"
15 #include "support/lstrings.h"
16
17 class LyXView;
18 class Dialogs;
19 class SearchDlgImpl;
20
21 class FormSearch : public DialogBase {
22 public:
23         ///
24         FormSearch(LyXView *, Dialogs *);
25         ///
26         ~FormSearch();
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         
37 private:
38         
39         /// Show the dialog.
40         void show();
41         /// Hide the dialog.
42         void hide();
43         /// Update the dialog.
44         void update(bool switched = false);
45         
46         /// Real GUI implementation.
47         SearchDlgImpl * dialog_;
48         
49         /// the LyXView we belong to.
50         LyXView * lv_;
51         
52         /** Which Dialogs do we belong to?
53          *  Used so we can get at the signals we have to connect to.
54          */
55         Dialogs * d_;
56         
57         /// Hide connection.
58         SigC::Connection h_;
59
60         /// Update connection.
61         SigC::Connection u_;
62         
63 };
64
65 #endif