-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMainFrm.h
109 lines (93 loc) · 3.17 KB
/
MainFrm.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// MainFrm.h : CMainFrame 类的接口
//
#pragma once
#include "FileView.h"
#include "SceneObjView.h"
#include "OutputWnd.h"
#include "ObjPropertiesWnd.h"
#include "PropertiesWnd.h"
#include "EditTerrainWnd.h"
#include "SceneSetPropertiesWnd.h"
class CMainFrame : public CFrameWndEx
{
public:
CMFCMenuBar m_wndMenuBar;
CMFCToolBar m_wndToolBar;
CMFCToolBar m_wndToolBarEditObj;
CMFCToolBar m_wndToolBarViewEdit;
CMFCStatusBar m_wndStatusBar;
CMFCToolBarImages m_UserImages;
CFileView m_wndFileView;
SceneObjView m_wndSceneObjView;
COutputWnd m_wndOutput;
CPropertiesWnd m_wndProperties;
ObjPropertiesWnd m_wndObjProperties;
SceneSetPropertiesWnd m_wndSceneSetProperties;
EditTerainWnd *m_wndEditTerrain;
bool showAllEntity; //显示所有的实体//
bool showAllCollide; //显示所有的碰撞体//
bool showAllSound; //显示所有的声音//
bool showAllLight; //显示所有的灯光//
bool showAllParticle; //显示所有的粒子//
void calcuateLightMap();
void updateTerrainPhy();
protected:
CMainFrame();
virtual ~CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
BOOL CreateDockingWindows();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
virtual BOOL PreTranslateMessage(MSG* pMsg);
void AddResPath(CString &resPath);
void selectObj();
void moveSelectObj();
void scaleSelectObj();
void rotateSelectObj();
void copySelectObj();
void deleteSelectObj();
void openPhysics();
void closePhysics();
void changePlayMode();
void changeEditMode();
void selectBoxMode();
void selectMeshMode();
void updateSelectMeshMode(CCmdUI *pCmdUI);
void updateSelectBoxMode(CCmdUI *pCmdUI);
void updateToolbarUI(CCmdUI *pCmdUI);
void showEditToolBar();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnViewCustomize();
afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
afx_msg void OnApplicationLook(UINT id);
afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
afx_msg void AddResPath();
afx_msg void SaveScene();
afx_msg void OpenScene();
afx_msg void findSceneObj();
afx_msg void ResetHeroPostion();
afx_msg void OnUpdateSubMenueShow(UINT id);
afx_msg void OnUpdateSubMenueShowLook(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewEditBar(CCmdUI *pCmdUI);
afx_msg void OnViewFileShow();
afx_msg void OnUpdateViewFileShow(CCmdUI *pCmdUI);
afx_msg void OnViewSceneShow();
afx_msg void OnUpdateViewSceneShow(CCmdUI *pCmdUI);
afx_msg void OnViewTerrainShow();
afx_msg void OnUpdateViewTerrainShow(CCmdUI *pCmdUI);
afx_msg void OnViewProShow();
afx_msg void OnUpdateViewProShow(CCmdUI *pCmdUI);
afx_msg void OnViewMinimapShow();
afx_msg void OnUpdateViewMinimapShow(CCmdUI *pCmdUI);
afx_msg void OnViewSceneSetShow();
afx_msg void OnUpdateViewSceneSetShow(CCmdUI *pCmdUI);
afx_msg void OnViewSetBarShow();
afx_msg void OnUpdateViewSetBarShow(CCmdUI *pCmdUI);
DECLARE_MESSAGE_MAP()
};