| 1 | /* |
|---|
| 2 | * Copyright (c) 2007-2008 Mat Booth |
|---|
| 3 | * |
|---|
| 4 | * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | * it under the terms of the GNU General Public License as published by |
|---|
| 6 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | * (at your option) any later version. |
|---|
| 8 | * |
|---|
| 9 | * This program is distributed in the hope that it will be useful, |
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | * GNU Library General Public License for more details. |
|---|
| 13 | * |
|---|
| 14 | * You should have received a copy of the GNU General Public License |
|---|
| 15 | * along with this program. If not, write to: |
|---|
| 16 | * The Free Software Foundation, Inc., |
|---|
| 17 | * 51 Franklin Street, Fifth Floor |
|---|
| 18 | * Boston, MA 02110-1301, USA. |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | #ifndef __M3MalbolgeSplitter__ |
|---|
| 22 | #define __M3MalbolgeSplitter__ |
|---|
| 23 | |
|---|
| 24 | #include <wx/wx.h> |
|---|
| 25 | #include <wx/splitter.h> |
|---|
| 26 | #include "CodePanel.h" |
|---|
| 27 | #include "VmPanel.h" |
|---|
| 28 | |
|---|
| 29 | class M3MalbolgeSplitter : public wxSplitterWindow |
|---|
| 30 | { |
|---|
| 31 | private: |
|---|
| 32 | //controls |
|---|
| 33 | M3CodePanel *m_CodePanel; |
|---|
| 34 | M3VmPanel *m_VmPanel; |
|---|
| 35 | |
|---|
| 36 | public: |
|---|
| 37 | M3MalbolgeSplitter(wxWindow *parent, wxWindowID id = -1, |
|---|
| 38 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_3D | wxSP_LIVE_UPDATE | wxCLIP_CHILDREN); |
|---|
| 39 | virtual ~M3MalbolgeSplitter(); |
|---|
| 40 | |
|---|
| 41 | //file handling |
|---|
| 42 | bool OpenMalbolgeFile(const wxString& filename); |
|---|
| 43 | bool SaveMalbolgeFile(const wxString& filename); |
|---|
| 44 | void CloseMalbolgeFile(); |
|---|
| 45 | |
|---|
| 46 | //utility |
|---|
| 47 | void LoadConf(); |
|---|
| 48 | void SaveConf(); |
|---|
| 49 | |
|---|
| 50 | protected: |
|---|
| 51 | //event handlers |
|---|
| 52 | |
|---|
| 53 | private: |
|---|
| 54 | //event gumph |
|---|
| 55 | DECLARE_EVENT_TABLE() |
|---|
| 56 | enum |
|---|
| 57 | { |
|---|
| 58 | }; |
|---|
| 59 | }; |
|---|
| 60 | |
|---|
| 61 | #endif |
|---|