1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : quickfindbar.h
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
#ifndef __quickfindbar__
26
#define __quickfindbar__
34
class QuickFindBar : public wxPanel
37
wxTextCtrl *m_findWhat;
40
wxButton *m_closeButton;
42
void DoSearch(bool fwd, bool incr);
44
void OnHide (wxCommandEvent &e);
45
void OnNext (wxCommandEvent &e);
46
void OnPrev (wxCommandEvent &e);
47
void OnText (wxCommandEvent &e);
48
void OnCheckBox(wxCommandEvent &e);
49
void OnKeyDown (wxKeyEvent &e);
50
void OnEnter (wxCommandEvent &e);
51
void OnUpdateUI(wxUpdateUIEvent &e);
56
QuickFindBar(wxWindow *parent, wxWindowID id = wxID_ANY);
58
bool Show(bool s = true);
60
wxScintilla *GetEditor() { return m_sci; }
61
void SetEditor(wxScintilla *sci) { m_sci = sci; }
64
#endif // __quickfindbar__