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

« back to all changes in this revision

Viewing changes to cscope/cscope.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            : cscope.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 __Cscope__
 
26
#define __Cscope__
 
27
 
 
28
#include "plugin.h"
 
29
#include "map"
 
30
#include "vector"
 
31
#include "cscopeentrydata.h"
 
32
 
 
33
class CscopeTab;
 
34
 
 
35
class Cscope : public IPlugin
 
36
{
 
37
        wxEvtHandler *m_topWindow;
 
38
        CscopeTab *m_cscopeWin;
 
39
public:
 
40
        Cscope(IManager *manager);
 
41
        ~Cscope();
 
42
        
 
43
        //--------------------------------------------
 
44
        //Abstract methods
 
45
        //--------------------------------------------
 
46
        virtual wxToolBar *CreateToolBar(wxWindow *parent);
 
47
        virtual void CreatePluginMenu(wxMenu *pluginsMenu);
 
48
        virtual void HookPopupMenu(wxMenu *menu, MenuType type);
 
49
        virtual void UnHookPopupMenu(wxMenu *menu, MenuType type);
 
50
        virtual void UnPlug();
 
51
        
 
52
protected:
 
53
        //Helper
 
54
        //------------------------------------------
 
55
        wxMenu *CreateEditorPopMenu();
 
56
        wxString GetCscopeExeName();
 
57
        wxString DoCreateListFile();
 
58
        void DoCscopeCommand(const wxString &command, const wxString &endMsg);
 
59
        
 
60
        //Event handlers
 
61
        //------------------------------------------
 
62
        void OnFindSymbol(wxCommandEvent &e);
 
63
        void OnFindGlobalDefinition(wxCommandEvent &e);
 
64
        void OnFindFunctionsCalledByThisFuncion(wxCommandEvent &e);
 
65
        void OnFindFunctionsCallingThisFunction(wxCommandEvent &e);
 
66
        void OnCScopeThreadEnded(wxCommandEvent &e);
 
67
        void OnCScopeThreadUpdateStatus(wxCommandEvent &e);
 
68
        void OnCscopeUI(wxUpdateUIEvent &e);
 
69
};
 
70
 
 
71
#endif //Cscope
 
72