2
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3
* http://www.gnu.org/licenses/gpl-3.0.html
6
#ifndef OPENFILESLISTPLUGIN_H
7
#define OPENFILESLISTPLUGIN_H
11
#include <wx/dynarray.h>
19
WX_DEFINE_ARRAY(EditorBase*, EditorArray);
21
class OpenFilesListPlugin : public cbPlugin
24
OpenFilesListPlugin();
25
virtual ~OpenFilesListPlugin();
27
virtual int GetConfigurationGroup() const { return cgEditor; }
29
virtual void BuildMenu(wxMenuBar* menuBar);
30
virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0){}
31
virtual bool BuildToolBar(wxToolBar* toolBar){ return false; }
33
virtual void OnAttach();
34
virtual void OnRelease();
36
int GetOpenFilesListIcon(EditorBase* ed);
37
void RebuildOpenFilesTree();
38
void RefreshOpenFilesTree(EditorBase* ed, bool remove = false);
40
void OnTreeItemActivated(wxTreeEvent &event);
41
void OnTreeItemRightClick(wxTreeEvent &event);
42
void OnViewOpenFilesTree(wxCommandEvent& event);
43
void OnUpdateUI(wxUpdateUIEvent& event);
45
void OnEditorActivated(CodeBlocksEvent& event);
46
void OnEditorClosed(CodeBlocksEvent& event);
47
void OnEditorDeactivated(CodeBlocksEvent& event);
48
void OnEditorModified(CodeBlocksEvent& event);
49
void OnEditorOpened(CodeBlocksEvent& event);
50
void OnEditorSaved(CodeBlocksEvent& event);
52
void OnProjectOpened(CodeBlocksEvent& event);
55
wxImageList* m_pImages;
58
EditorArray m_EditorArray;
59
DECLARE_EVENT_TABLE();
64
#endif // OPENFILESLISTPLUGIN_H