/* * Arcanum Editor - ROM area editor * Copyright (C) 1999 Lucas Wall <kthulhu@usa.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * If you make changes to the source and want to make the public you can * mail the diferences to me <kthulhu@usa.net> and I'll add them to the * main distribution. Of course your name will be added to the program with * information about the changes you made. * * * Packed on Thu Aug 19 03:02:16 1999 * */ /* * File: arcaedView.h * * Changes: * * 19/08/99 Lucas Wall <kthulhu@usa.net> * First source release. Its quite messy and has no * comments. I never planed to release the source code... :-) * */ // arcaedView.h : interface of the CArcaedView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_ARCAEDVIEW_H__936C28D1_FCCD_11D2_803D_00002168229C__INCLUDED_) #define AFX_ARCAEDVIEW_H__936C28D1_FCCD_11D2_803D_00002168229C__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "ChildFrm.h" class CArcaedView : public CScrollView { protected: // create from serialization only CArcaedView(); DECLARE_DYNCREATE(CArcaedView) // Attributes public: CArcaedDoc* GetDocument(); int m_curroom; int m_curnivel; int m_roomsx, m_roomsy; CFont *m_prfont, *m_oldfont; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CArcaedView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: void GetMapSize( int &roomsx, int &roomsy ); void DrawMap(CDC * pDC, int nivel, int select, int &maxx, int &maxy, int size, int movex, int movey, int gray = FALSE ); int CrearCuarto( int dir ); virtual ~CArcaedView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CArcaedView) afx_msg void OnAreaDatosgenerales(); afx_msg void OnCuartosLista(); afx_msg void OnMapaSubirnivel(); afx_msg void OnMapaBajarnivel(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnUpdateMapaBajarnivel(CCmdUI* pCmdUI); afx_msg void OnUpdateMapaSubirnivel(CCmdUI* pCmdUI); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnCuartosEditar(); afx_msg void OnUpdateCuartosEditar(CCmdUI* pCmdUI); afx_msg void OnCuartosNuevo(); afx_msg void OnCuartosBorrar(); afx_msg void OnUpdateCuartosBorrar(CCmdUI* pCmdUI); afx_msg void OnCuartosCrearabajo(); afx_msg void OnCuartosCreararriba(); afx_msg void OnCuartosCreareste(); afx_msg void OnCuartosCrearnorte(); afx_msg void OnCuartosCrearoeste(); afx_msg void OnCuartosCrearsur(); afx_msg void OnObjetosLista(); afx_msg void OnMobsLista(); afx_msg void OnMobsMobprogs(); afx_msg void OnUpdateZoomin(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomout(CCmdUI* pCmdUI); afx_msg void OnZoomin(); afx_msg void OnZoomout(); afx_msg void OnUpdateVerBarradeestadodemapa(CCmdUI* pCmdUI); afx_msg void OnVerBarradeestadodemapa(); afx_msg void OnUpdateViewStatusBar(CCmdUI* pCmdUI); afx_msg void OnViewStatusBar(); afx_msg void OnUpdateMobsMobprogs(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in arcaedView.cpp inline CArcaedDoc* CArcaedView::GetDocument() { return (CArcaedDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ARCAEDVIEW_H__936C28D1_FCCD_11D2_803D_00002168229C__INCLUDED_)