-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEditorFrame.h
66 lines (54 loc) · 1.45 KB
/
EditorFrame.h
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
#ifndef _EDITORFRAME_H
#define _EDITORFRAME_H
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "Settings.h"
class EditorFrame : public wxFrame
{
private:
Settings* settings;
wxMenuBar* menuBar;
public:
EditorFrame();
void OnClose(wxCloseEvent&);
void OnChar(wxKeyEvent&);
//menuitem events
void OnNewLevelset(wxCommandEvent&);
void OnOpenLevelset(wxCommandEvent&);
void OnCloseLevelset(wxCommandEvent&);
void OnSaveLevelset(wxCommandEvent&);
void OnSaveLevelsetAs(wxCommandEvent&);
void OnNewLevel(wxCommandEvent&);
void OnOpenLevel(wxCommandEvent&);
void OnSaveLevel(wxCommandEvent&);
void OnCopyLevel(wxCommandEvent&);
void OnMoveLevel(wxCommandEvent&);
void OnImportLevelset(wxCommandEvent&);
void OnExportLevelset(wxCommandEvent&);
void OnExit(wxCommandEvent&);
void OnAbout(wxCommandEvent&);
//see: EditorApp::OnExit
bool IsOpen;
DECLARE_EVENT_TABLE()
};
//menu and timer id's
enum
{
FILE_NEW_LEVELSET = 1,
FILE_OPEN_LEVELSET,
FILE_CLOSE_LEVELSET,
FILE_SAVE_LEVELSET,
FILE_SAVE_LEVELSET_AS,
FILE_NEW_LEVEL,
FILE_OPEN_LEVEL,
FILE_SAVE_LEVEL,
FILE_COPY_LEVEL,
FILE_MOVE_LEVEL,
FILE_IMPORT_LEVELSET,
FILE_EXPORT_LEVELSET,
FILE_EXIT,
HELP_ABOUT
};
#endif