]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GSearch.h
Change glob() API to accept a dir parameter.
[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 public:
26         GSearch(Dialog & parent);
27 private:
28         virtual void apply() {}
29         virtual void doBuild();
30         virtual void update();
31
32         void onFindNext();
33         void onReplace();
34         void onReplaceAll();
35         void onFindEntryChanged();
36
37         Gtk::Button * findnextbutton;
38         Gtk::Button * replacebutton;
39         Gtk::Button * replaceallbutton;
40         Gtk::Entry * findentry;
41         Gtk::Entry * replaceentry;
42         Gtk::CheckButton * casecheck;
43         Gtk::CheckButton * matchwordcheck;
44         Gtk::CheckButton * backwardscheck;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GSEARCH_H