~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to LiteEditor/quickfindbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-01-12 15:46:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090112154655-sdynrljcb6u167yw
Tags: upstream-1.0.2674+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2674+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2008 by Eran Ifrah
 
5
// file name            : quickfindbar.h
 
6
//
 
7
// -------------------------------------------------------------------------
 
8
// A
 
9
//              _____           _      _     _ _
 
10
//             /  __ \         | |    | |   (_) |
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|
 
15
//
 
16
//                                                  F i l e
 
17
//
 
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.
 
22
//
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
#ifndef __quickfindbar__
 
26
#define __quickfindbar__
 
27
 
 
28
#include <wx/panel.h>
 
29
 
 
30
class wxTextCtrl;
 
31
class wxScintilla;
 
32
 
 
33
 
 
34
class QuickFindBar : public wxPanel
 
35
{
 
36
protected:
 
37
    wxTextCtrl  *m_findWhat;
 
38
    wxScintilla *m_sci;
 
39
    size_t       m_flags;
 
40
        wxButton        *m_closeButton;
 
41
 
 
42
    void DoSearch(bool fwd, bool incr);
 
43
 
 
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);
 
52
 
 
53
    DECLARE_EVENT_TABLE()
 
54
 
 
55
public:
 
56
        QuickFindBar(wxWindow *parent, wxWindowID id = wxID_ANY);
 
57
 
 
58
    bool Show(bool s = true);
 
59
 
 
60
    wxScintilla *GetEditor() { return m_sci; }
 
61
    void SetEditor(wxScintilla *sci) { m_sci = sci; }
 
62
};
 
63
 
 
64
#endif // __quickfindbar__