~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/ReopenEditor/ReopenEditor.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
4
 *
 
5
 * Copyright: 2010 Jens Lody
 
6
 *
 
7
 * $Revision: 7443 $
 
8
 * $Id: ReopenEditor.h 7443 2011-09-01 16:29:16Z mortenmacfly $
 
9
 * $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/ReopenEditor/ReopenEditor.h $
 
10
 */
 
11
 
 
12
#ifndef REOPEN_EDITOR_H_INCLUDED
 
13
#define REOPEN_EDITOR_H_INCLUDED
 
14
 
 
15
#include <cbplugin.h>
 
16
#include "ReopenEditorListView.h"
 
17
 
 
18
 
 
19
WX_DEFINE_ARRAY_PTR(cbProject*, ProjectPtrArray);
 
20
 
 
21
class ReopenEditor : public cbPlugin
 
22
{
 
23
 
 
24
    public:
 
25
        ReopenEditor();
 
26
        ~ReopenEditor();
 
27
        int GetConfigurationPriority() const
 
28
        {
 
29
            return 50;
 
30
        }
 
31
        int GetConfigurationGroup() const
 
32
        {
 
33
            return cgEditor;
 
34
        }
 
35
        cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
 
36
        cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow*  /*parent*/, cbProject* /*project*/)
 
37
        {
 
38
            return 0;
 
39
        }
 
40
        void BuildMenu(wxMenuBar* menuBar);
 
41
        void BuildModuleMenu(const ModuleType /*type*/, wxMenu* /*menu*/, const FileTreeData* /*data*/ = 0) {}
 
42
        bool BuildToolBar(wxToolBar* /*toolBar*/) {return false;}
 
43
        virtual void SetManaged(bool managed = true);
 
44
        virtual void ShowList();
 
45
 
 
46
    private:
 
47
        void OnAttach();
 
48
        void OnRelease(bool appShutDown);
 
49
        void OnReopenEditor(wxCommandEvent& event);
 
50
        void OnProjectClosed(CodeBlocksEvent& event);
 
51
        void OnProjectOpened(CodeBlocksEvent& event);
 
52
        void OnEditorClosed(CodeBlocksEvent& event);
 
53
        void OnEditorOpened(CodeBlocksEvent& event);
 
54
        void OnViewList(wxCommandEvent& event);
 
55
        void OnUpdateUI(wxUpdateUIEvent& event);
 
56
        void OnDoubleClick( wxListEvent& event );
 
57
        void DoReopenEditor(long item);
 
58
        ProjectPtrArray m_ClosedProjects;
 
59
        ReopenEditorListView* m_pListLog;
 
60
 
 
61
        bool m_IsManaged;
 
62
 
 
63
    DECLARE_EVENT_TABLE()
 
64
};
 
65
 
 
66
#endif // REOPEN_EDITOR_H_INCLUDED