1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : cscope.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
//////////////////////////////////////////////////////////////////////////////
31
#include "cscopeentrydata.h"
35
class Cscope : public IPlugin
37
wxEvtHandler *m_topWindow;
38
CscopeTab *m_cscopeWin;
40
Cscope(IManager *manager);
43
//--------------------------------------------
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();
54
//------------------------------------------
55
wxMenu *CreateEditorPopMenu();
56
wxString GetCscopeExeName();
57
wxString DoCreateListFile();
58
void DoCscopeCommand(const wxString &command, const wxString &endMsg);
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);