~ubuntu-branches/ubuntu/oneiric/codeblocks/oneiric

« back to all changes in this revision

Viewing changes to src/plugins/openfileslist/openfileslistplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

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
 
 
6
#ifndef OPENFILESLISTPLUGIN_H
 
7
#define OPENFILESLISTPLUGIN_H
 
8
 
 
9
#include <cbplugin.h>
 
10
 
 
11
#include <wx/dynarray.h>
 
12
 
 
13
class wxTreeCtrl;
 
14
class wxTreeEvent;
 
15
class wxMenuBar;
 
16
class wxImageList;
 
17
class EditorBase;
 
18
 
 
19
WX_DEFINE_ARRAY(EditorBase*, EditorArray);
 
20
 
 
21
class OpenFilesListPlugin : public cbPlugin
 
22
{
 
23
    public:
 
24
        OpenFilesListPlugin();
 
25
        virtual ~OpenFilesListPlugin();
 
26
 
 
27
        virtual int GetConfigurationGroup() const { return cgEditor; }
 
28
 
 
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; }
 
32
 
 
33
        virtual void OnAttach();
 
34
        virtual void OnRelease();
 
35
    protected:
 
36
        int GetOpenFilesListIcon(EditorBase* ed);
 
37
        void RebuildOpenFilesTree();
 
38
        void RefreshOpenFilesTree(EditorBase* ed, bool remove = false);
 
39
 
 
40
        void OnTreeItemActivated(wxTreeEvent &event);
 
41
        void OnTreeItemRightClick(wxTreeEvent &event);
 
42
        void OnViewOpenFilesTree(wxCommandEvent& event);
 
43
        void OnUpdateUI(wxUpdateUIEvent& event);
 
44
 
 
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);
 
51
 
 
52
        void OnProjectOpened(CodeBlocksEvent& event);
 
53
 
 
54
        wxTreeCtrl* m_pTree;
 
55
        wxImageList* m_pImages;
 
56
        wxMenu* m_ViewMenu;
 
57
    private:
 
58
        EditorArray m_EditorArray;
 
59
        DECLARE_EVENT_TABLE();
 
60
};
 
61
 
 
62
 
 
63
 
 
64
#endif // OPENFILESLISTPLUGIN_H