RadiantView.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // RadiantView.h : interface of the CRadiantView class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_RADIANTVIEW_H__330BBF10_731C_11D1_B539_00AA00A410FC__INCLUDED_)
  22. #define AFX_RADIANTVIEW_H__330BBF10_731C_11D1_B539_00AA00A410FC__INCLUDED_
  23. #if _MSC_VER >= 1000
  24. #pragma once
  25. #endif // _MSC_VER >= 1000
  26. class CRadiantView : public CView
  27. {
  28. protected: // create from serialization only
  29. CRadiantView();
  30. DECLARE_DYNCREATE(CRadiantView)
  31. // Attributes
  32. public:
  33. CRadiantDoc* GetDocument();
  34. // Operations
  35. public:
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CRadiantView)
  39. public:
  40. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  41. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  42. protected:
  43. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  44. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  45. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. public:
  49. virtual ~CRadiantView();
  50. #ifdef _DEBUG
  51. virtual void AssertValid() const;
  52. virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54. protected:
  55. // Generated message map functions
  56. protected:
  57. //{{AFX_MSG(CRadiantView)
  58. // NOTE - the ClassWizard will add and remove member functions here.
  59. // DO NOT EDIT what you see in these blocks of generated code !
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. #ifndef _DEBUG // debug version in RadiantView.cpp
  64. inline CRadiantDoc* CRadiantView::GetDocument()
  65. { return (CRadiantDoc*)m_pDocument; }
  66. #endif
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_RADIANTVIEW_H__330BBF10_731C_11D1_B539_00AA00A410FC__INCLUDED_)