]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GSearch.h
John Spray's gtk search dialog.
[lyx.git] / src / frontends / gtk / GSearch.h
1 // -*- C++ -*-
2 /**
3  * \file GSearch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GSEARCH_H
13 #define GSEARCH_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlSearch;
21
22 /** This class provides a GTK+ implementation of the FormSearch Dialog.
23  */
24 class GSearch : public GViewCB<ControlSearch, GViewGladeB>
25 {
26 public:
27         GSearch(Dialog & parent);
28 private:
29         virtual void apply() {}
30         virtual void doBuild();
31         virtual void update() {}
32         
33         void onFindNext();
34         void onReplace();
35         void onReplaceAll();
36         void onFindEntryChanged();              
37         
38         Gtk::Button * findnextbutton;
39         Gtk::Button * replacebutton;
40         Gtk::Button * replaceallbutton;         
41         Gtk::Entry * findentry;
42         Gtk::Entry * replaceentry;
43         Gtk::CheckButton * casecheck;
44         Gtk::CheckButton * matchwordcheck;
45         Gtk::CheckButton * backwardscheck;              
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // GSEARCH_H