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
|
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
* http://www.gnu.org/licenses/gpl-3.0.html
*
* Copyright: 2010 Jens Lody
*
* $Revision: 7443 $
* $Id: ReopenEditor.h 7443 2011-09-01 16:29:16Z mortenmacfly $
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/ReopenEditor/ReopenEditor.h $
*/
#ifndef REOPEN_EDITOR_H_INCLUDED
#define REOPEN_EDITOR_H_INCLUDED
#include <cbplugin.h>
#include "ReopenEditorListView.h"
WX_DEFINE_ARRAY_PTR(cbProject*, ProjectPtrArray);
class ReopenEditor : public cbPlugin
{
public:
ReopenEditor();
~ReopenEditor();
int GetConfigurationPriority() const
{
return 50;
}
int GetConfigurationGroup() const
{
return cgEditor;
}
cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* /*parent*/, cbProject* /*project*/)
{
return 0;
}
void BuildMenu(wxMenuBar* menuBar);
void BuildModuleMenu(const ModuleType /*type*/, wxMenu* /*menu*/, const FileTreeData* /*data*/ = 0) {}
bool BuildToolBar(wxToolBar* /*toolBar*/) {return false;}
virtual void SetManaged(bool managed = true);
virtual void ShowList();
private:
void OnAttach();
void OnRelease(bool appShutDown);
void OnReopenEditor(wxCommandEvent& event);
void OnProjectClosed(CodeBlocksEvent& event);
void OnProjectOpened(CodeBlocksEvent& event);
void OnEditorClosed(CodeBlocksEvent& event);
void OnEditorOpened(CodeBlocksEvent& event);
void OnViewList(wxCommandEvent& event);
void OnUpdateUI(wxUpdateUIEvent& event);
void OnDoubleClick( wxListEvent& event );
void DoReopenEditor(long item);
ProjectPtrArray m_ClosedProjects;
ReopenEditorListView* m_pListLog;
bool m_IsManaged;
DECLARE_EVENT_TABLE()
};
#endif // REOPEN_EDITOR_H_INCLUDED
|