1 /*
2 * This file is part of HexEditor plugin for Code::Blocks Studio
3 * Copyright (C) 2008-2009 Bartlomiej Swiecki
4 *
5 * HexEditor plugin is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * HexEditor pluging is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with HexEditor. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * $Revision: 7109 $
19 * $Id: HexEditor.h 7109 2011-04-15 11:53:16Z mortenmacfly $
20 * $HeadURL: svn://svn.code.sf.net/p/codeblocks/code/branches/release-20.xx/src/plugins/contrib/HexEditor/HexEditor.h $
21 */
22 
23 #ifndef HEXEDITOR_H_INCLUDED
24 #define HEXEDITOR_H_INCLUDED
25 
26 #include <cbplugin.h>
27 
28 class ProjectFile;
29 
30 class HexEditor : public cbPlugin
31 {
32     public:
33 
34         HexEditor();
35         virtual ~HexEditor();
36 
37         void NotifyEditorOpened( EditorBase* );
38 
39     protected:
40 
41         virtual void BuildMenu(wxMenuBar* menuBar);
42         virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
43         virtual bool BuildToolBar(wxToolBar* toolBar);
44         virtual void OnAttach();
45         virtual void OnRelease(bool appShutDown);
46 
47         void OnOpenHexEdit( wxCommandEvent& event );
48         void OnOpenHexEditFileBrowser( wxCommandEvent& event );
49         void OnOpenWithHE ( wxCommandEvent& event );
50         void CloseMyEditors();
51 
52         void OpenProjectFile( ProjectFile* file );
53         void OpenFileFromName( const wxString& fileName );
54 
55         ProjectFile* FindProjectFile( const wxString& fileName );
56 
57         wxString m_browserselectedfile;
58 
59         DECLARE_EVENT_TABLE()
60 };
61 
62 
63 #endif
64