-
Notifications
You must be signed in to change notification settings - Fork 0
/
CEDITOR.h
49 lines (43 loc) · 1.25 KB
/
CEDITOR.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
#pragma once
#include "CEDITOR_Display.h"
#include "CEDITOR_Map.h"
// CEDITOR dialog
class CEDITOR : public CDialogEx
{
DECLARE_DYNAMIC(CEDITOR)
public:
CEDITOR(CRESOURCE* currentRes, CWnd* pParent = nullptr); // standard constructor
virtual ~CEDITOR();
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_EDITOR };
#endif
protected:
virtual BOOL OnInitDialog();
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL PreTranslateMessage(MSG* pMsg);
DECLARE_MESSAGE_MAP()
private:
CFont m_font, m_font2;
CEDITOR_Display* myDisplay;
CEDITOR_Map* myMap;
CRESOURCE* myRes;
CString m_filePath;
/*mode{-1:没有打开的地图;0:编辑地图元素中;1:编辑人物位置中}*/
int m_mode;
public:
virtual BOOL DestroyWindow();
afx_msg void OnBnClickedEditorReturnbutton();
afx_msg void OnBnClickedEditorNewbutton();
afx_msg void OnBnClickedEditorOpenbutton();
afx_msg void OnBnClickedEditorSavebutton();
afx_msg void OnBnClickedEditorSaveasbutton();
afx_msg void OnBnClickedEditorClosebutton();
afx_msg void OnBnClickedEditorUndobutton();
afx_msg void OnBnClickedEditorRedobutton();
afx_msg void OnBnClickedEditorSwitchbutton();
virtual int QuerySave();
virtual void Clear();
/*根据MyMap是否可以撤销重做更新按钮*/
virtual void UpdateUndoRedoButton();
};