SBSPSS/Utils/MapEdit/MapEditDoc.h

99 lines
2.6 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:
2001-02-10 21:21:20 +01:00
void SetView(CMapEditView *View);
CMapEditView *GetView();
2001-02-14 23:35:47 +01:00
void UpdateView();
void Render();
void UpdateAll();
2000-11-28 15:34:42 +01:00
void FocusView();
2001-02-09 22:17:01 +01:00
void GUIUpdate();
void GUIChanged();
2000-11-06 21:24:11 +01:00
2001-04-19 17:36:49 +02:00
int GetMapWidth() {return(Core.GetMapWidth());}
int GetMapHeight() {return(Core.GetMapHeight());}
2000-11-06 21:24:11 +01:00
// Windows Messages Thru Point
2001-02-14 23:35:47 +01:00
void LButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void MButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void RButtonControl(UINT nFlags, CPoint &point,BOOL DownFlag);
void MouseWheel(UINT nFlags, short zDelta, CPoint &pt);
void MouseMove(UINT nFlags, CPoint &point);
2001-02-20 16:57:03 +01:00
2001-03-01 18:28:20 +01:00
void Command(int CmdMsg,int Param0=0,int Param1=0);
2000-11-15 22:22:40 +01:00
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);
2001-02-14 23:35:47 +01:00
virtual void OnCloseDocument();
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);
2001-02-01 23:48:22 +01:00
afx_msg void OnExport();
2000-12-11 22:52:32 +01:00
afx_msg void OnZoomIn();
afx_msg void OnZoomOut();
2001-03-01 18:28:20 +01:00
afx_msg void OnToggleSubView();
2001-02-14 23:35:47 +01:00
afx_msg void OnToggleGrid();
afx_msg void OnMirrorx();
afx_msg void OnMirrory();
afx_msg void OnActivebrushLeft();
afx_msg void OnActivebrushRight();
afx_msg void OnMapSetSize();
afx_msg void OnEditCopy();
afx_msg void OnEditPaste();
afx_msg void On2d3dToggle();
2001-02-16 19:23:01 +01:00
afx_msg void OnResetView();
2001-04-05 16:20:56 +02:00
afx_msg void OnRenderToTga();
2001-05-09 23:56:48 +02:00
afx_msg void OnRotate();
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_)