InfoSheet.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // InfoSheet.h : header file
  13. //
  14. #ifndef INFOSHEET_H
  15. #define INFOSHEET_H 1
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CInfoSheet
  18. class CInfoFrame;
  19. enum ModeID {
  20. INFO_MODE_ALL = 0,
  21. INFO_MODE_GLOBAL,
  22. INFO_MODE_POSITION,
  23. INFO_MODE_PRIMITIVE,
  24. INFO_MODE_POLYGON,
  25. INFO_MODE_SECTOR,
  26. INFO_MODE_TERRAIN,
  27. };
  28. class CInfoSheet : public CPropertySheet
  29. {
  30. DECLARE_DYNAMIC(CInfoSheet)
  31. // Construction
  32. public:
  33. CInfoSheet(CWnd* pWndParent);
  34. BOOL OnIdle(LONG lCount);
  35. // functions for dealing with pages
  36. void DeleteAllPages();
  37. void SetInfoModeGlobal(void);
  38. void SetInfoModePosition(void);
  39. void SetInfoModePrimitive(void);
  40. void SetInfoModePolygon(void);
  41. void SetInfoModeSector(void);
  42. void SetInfoModeTerrain(void);
  43. void SoftSetActivePage( INDEX iActivePage);
  44. // Attributes
  45. public:
  46. ModeID m_ModeID;
  47. CDlgPgGlobal m_PgGlobal;
  48. CDlgPgTerrain m_PgTerrain;
  49. CDlgPgPosition m_PgPosition;
  50. CDlgPgPrimitive m_PgPrimitive;
  51. CDlgPgRenderingStatistics m_PgRenderingStatistics;
  52. CDlgPgPolygon m_PgPolygon;
  53. CDlgPgShadow m_PgShadow;
  54. CDlgPgSector m_PgSector;
  55. CDlgPgTexture m_PgTexture;
  56. // Operations
  57. public:
  58. // Overrides
  59. // ClassWizard generated virtual function overrides
  60. //{{AFX_VIRTUAL(CInfoSheet)
  61. public:
  62. virtual BOOL PreTranslateMessage(MSG* pMsg);
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX);
  65. virtual void PostNcDestroy();
  66. //}}AFX_VIRTUAL
  67. // Implementation
  68. public:
  69. virtual ~CInfoSheet();
  70. // Generated message map functions
  71. protected:
  72. //{{AFX_MSG(CInfoSheet)
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. /////////////////////////////////////////////////////////////////////////////
  77. #endif // INFOSHEET_H