1
/***************************************************************
3
* Purpose: Code::Blocks Valgrind plugin: main functions
4
* Author: Lieven de Cock (aka killerbot)
6
* Copyright: (c) Lieven de Cock (aka killerbot)
8
**************************************************************/
10
#ifndef VALGRIND_H_INCLUDED
11
#define VALGRIND_H_INCLUDED
13
#include "cbplugin.h" // the base class we 're inheriting
16
class ValgrindListLog;
19
class Valgrind : public cbPlugin
24
void BuildMenu(wxMenuBar* menuBar);
25
void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0){};
26
bool BuildToolBar(wxToolBar* toolBar){ return false; }
27
void OnAttach(); // fires when the plugin is attached to the application
28
void OnRelease(bool appShutDown); // fires when the plugin is released from the application
30
void WriteToLog(const wxString& Text);
31
void AppendToLog(const wxString& Text);
32
void ProcessStack(const TiXmlElement& Stack, const wxString& What);
33
long DoValgrindVersion();
34
void OnMemCheck(wxCommandEvent& );
35
void OnCachegrind(wxCommandEvent& );
37
TextCtrlLogger* m_ValgrindLog; //!< log tab in the message pane
38
ValgrindListLog* m_ListLog; //!< log tab to click/double click to take you to offending line of code
39
int m_LogPageIndex; //!< index of our log tab (can this change during run time ??)
40
int m_ListLogPageIndex; //!< index of our list log tab
44
#endif // VALGRIND_H_INCLUDED