1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
#ifndef _GRID_H
#define _GRID_H
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
/**
* @class CGrid
*
* @brief Dialog for adjusting/modifying the grid
*/
class CGrid : public CDialog
{
public:
/**
* @brief Standard constructor
*/
CGrid(CWnd* pParent = NULL);
/**
* @brief Standard constructor
*/
CGrid(CView* pView);
/**
* @brief Creates the dialog
*
* @TODO This might not be used. Verify and remove
*/
BOOL Create();
//{{AFX_DATA(CGrid)
enum
{
IDD = IDD_GRID
};
UINT m_GridSize; //!< Size of the the grid.
//}}AFX_DATA
//{{AFX_VIRTUAL(CGrid)
/**
* @brief Creates the dialog
*
* @param[in] lpszClassName
* @param[in] lpszWindowName
* @param[in] dwStyle
* @param[in] rect
* @param[in] pParentWnd
* @param[in] nID
* @param[in] pContext
*/
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
/**
* @brief Destroys the dialog
*/
virtual BOOL DestroyWindow();
protected:
/**
* @brief Does data exchange
*
* @param[in] pDX
*/
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CGrid)
/**
* @brief Handler for the XY button
*/
afx_msg void OnGridXyPlane();
/**
* @brief Handler for the XZ button
*/
afx_msg void OnGridXzPlane();
/**
* @brief Handler for the YZ button
*/
afx_msg void OnGridYzPlane();
/**
* @brief Handler for the Close button
*/
afx_msg void OnClose();
/**
* @brief Handler for OnDestroy events
*/
afx_msg void OnDestroy();
/**
* @brief Handler for OnKillFocus events
*/
afx_msg void OnKillFocus(CWnd* pNewWnd);
/**
* @brief Handler for OnInitDialog events
*/
virtual BOOL OnInitDialog();
/**
* @brief Handler for the vertical scroll buttons
*/
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CView* m_pGView; //!< Reference to parent window
};
#endif // _GRID_H
|