-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMiniDoc.h
71 lines (56 loc) · 2.13 KB
/
MiniDoc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/***************************************************************
* Name: MiniDoc
* Purpose: Code::Blocks plugin
* Author: ()
* Created: 2014-07-29
* Copyright:
* License: GPL
**************************************************************/
#ifndef MiniDoc_H_INCLUDED
#define MiniDoc_H_INCLUDED
// For compilers that support precompilation, includes <wx/wx.h>
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <cbplugin.h> // for "class cbPlugin"
class MiniDocPanel;
class MiniDocConfigPanel;
class wxMenu;
class MiniDoc : public cbPlugin
{
public:
MiniDoc();
virtual ~MiniDoc(){}
/** Invoke configuration dialog. */
virtual int Configure();
virtual int GetConfigurationPriority() const { return 50; }
virtual int GetConfigurationGroup() const { return cgEditor; }
virtual cbConfigurationPanel *GetConfigurationPanel(wxWindow *parent);
virtual cbConfigurationPanel *GetProjectConfigurationPanel(wxWindow *parent, cbProject *project){ return 0; }
virtual void BuildMenu(wxMenuBar *menuBar);
virtual void BuildModuleMenu(const ModuleType type, wxMenu *menu, const FileTreeData *data = 0){}
virtual bool BuildToolBar(wxToolBar *toolBar){return false;}
protected:
virtual void OnAttach();
virtual void OnRelease(bool appShutDown);
private:
void OnEditorClose(CodeBlocksEvent &event);
void OnEditorActivated(CodeBlocksEvent &event);
void OnEditorSplit(CodeBlocksEvent &event);
void OnEditorEvent();
void ConnectSizeEvent(cbEditor *ed);
void OnIdle(wxIdleEvent &event);
void UpdatePanel();
void OnResize(wxSizeEvent &event);
void OnViewMiniDocPanel(wxCommandEvent &event);
void OnUpdateViewMenu(wxUpdateUIEvent &event);
void OnEditorHook(cbEditor *editor, wxScintillaEvent &event);
int m_FunctorId;
bool updatePending_;
MiniDocPanel *m_pPanel;
wxMenu *m_pViewMenu;
private:
DECLARE_EVENT_TABLE();
};
#endif