LightMapView.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LightMap *
  23. * *
  24. * $Archive:: /Commando/Code/Tool $*
  25. * *
  26. * $Author:: Ian_l $*
  27. * *
  28. * $Modtime:: 7/09/01 2:42p $*
  29. * *
  30. * $Revision:: 15 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef LIGHTMAPVIEW_H
  36. #define LIGHTMAPVIEW_H
  37. #include <afxcview.h>
  38. #include "LightMapDoc.h"
  39. #include "Lightscape.h"
  40. class StringBuilder;
  41. class LightMapView : public CListView
  42. {
  43. protected:
  44. private:
  45. // Static functions.
  46. static int Compare_Names (const void *index0, const void *index1);
  47. // Member data.
  48. unsigned *MeshIndexTable;
  49. // Static data.
  50. static LightMapDoc *_Document;
  51. // The following is maintained by MFC tools.
  52. protected: // create from serialization only
  53. LightMapView();
  54. DECLARE_DYNCREATE(LightMapView)
  55. // Attributes
  56. public:
  57. // Operations
  58. public:
  59. // Overrides
  60. // ClassWizard generated virtual function overrides
  61. //{{AFX_VIRTUAL(LightMapView)
  62. public:
  63. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  64. virtual void OnUpdate (CView* pSender, LPARAM lHint, CObject* pHint);
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. public:
  68. virtual ~LightMapView();
  69. #ifdef _DEBUG
  70. virtual void AssertValid() const;
  71. virtual void Dump(CDumpContext& dc) const;
  72. #endif
  73. LightMapDoc* GetDocument();
  74. // Generated message map functions
  75. protected:
  76. //{{AFX_MSG(LightMapView)
  77. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  78. afx_msg void OnInsertSolve();
  79. afx_msg void OnUpdateInsertSolve(CCmdUI* pCmdUI);
  80. afx_msg void OnToolsOptions();
  81. afx_msg void OnToolsPacking();
  82. afx_msg void OnUpdateToolsPacking(CCmdUI* pCmdUI);
  83. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  84. //}}AFX_MSG
  85. DECLARE_MESSAGE_MAP()
  86. };
  87. #ifndef _DEBUG // debug version in LightMapView.cpp
  88. inline LightMapDoc* LightMapView::GetDocument() {return (LightMapDoc*)m_pDocument;}
  89. #endif
  90. #endif // LIGHTMAPVIEW_H