SBSPSS/Utils/MapEdit/MapEditDoc.h

90 lines
2.5 KiB
C
Raw Normal View History

2000-09-22 17:11:29 +02:00
// MapEditDoc.h : interface of the CMapEditDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPEDITDOC_H__C235E087_8243_4400_BA8E_2937FBC1F9F2__INCLUDED_)
#define AFX_MAPEDITDOC_H__C235E087_8243_4400_BA8E_2937FBC1F9F2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Core.h"
class CMapEditDoc : public CDocument
{
protected: // create from serialization only
CMapEditDoc();
DECLARE_DYNCREATE(CMapEditDoc)
// Attributes
public:
2000-11-06 21:24:11 +01:00
void UpdateView(CMapEditView *View);
void Render(CMapEditView *View);
void UpdateAll(CMapEditView *View);
2000-11-28 15:34:42 +01:00
void FocusView();
2000-11-06 21:24:11 +01:00
// Windows Messages Thru Point
void LButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
void MButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
void RButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
void MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &pt);
void MouseMove(CMapEditView *View,UINT nFlags, CPoint &point);
void ToggleTileView(CMapEditView *View);
2000-11-14 16:03:04 +01:00
void ToggleGrid(CMapEditView *View);
2000-11-20 17:21:43 +01:00
void MirrorX(CMapEditView *View);
void MirrorY(CMapEditView *View);
void ActiveBrushLeft(CMapEditView *View);
void ActiveBrushRight(CMapEditView *View);
void MapSetSize(CMapEditView *View);
2000-11-22 23:08:47 +01:00
void Toggle2d3d(CMapEditView *View);
2000-11-14 16:03:04 +01:00
2000-11-15 22:22:40 +01:00
void TileBankLoad();
2000-11-29 18:07:57 +01:00
void TileBankDelete();
2000-11-15 22:22:40 +01:00
void TileBankReload();
void TileBankSet();
void SetMode(int NewMode);
2000-11-28 00:07:07 +01:00
void SetLayer(int Layer);
2000-09-22 17:11:29 +02:00
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapEditDoc)
public:
virtual BOOL OnNewDocument();
2000-11-04 19:24:51 +01:00
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
2000-11-06 21:24:11 +01:00
virtual void Serialize(CArchive& ar);
2000-09-22 17:11:29 +02:00
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMapEditDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
2000-11-06 21:24:11 +01:00
CCore Core;
2000-11-14 16:03:04 +01:00
2000-09-22 17:11:29 +02:00
// Generated message map functions
protected:
//{{AFX_MSG(CMapEditDoc)
2000-11-06 21:24:11 +01:00
afx_msg void OnStatusCursorXY(CCmdUI *pCmdUI);
2000-11-28 00:07:07 +01:00
afx_msg void OnExportAgb();
afx_msg void OnExportPsx();
2000-09-22 17:11:29 +02:00
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPEDITDOC_H__C235E087_8243_4400_BA8E_2937FBC1F9F2__INCLUDED_)