]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/tools/radiant/PatchDialog.h
Various Mac OS X tweaks to get this to build. Probably breaking things.
[icculus/iodoom3.git] / neo / tools / radiant / PatchDialog.h
1 /*
2 ===========================================================================
3
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. 
6
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).  
8
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code.  If not, see <http://www.gnu.org/licenses/>.
21
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code.  If not, please request a copy in writing from id Software at the address below.
23
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25
26 ===========================================================================
27 */
28 #if !defined(AFX_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_)
29 #define AFX_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_
30
31 #if _MSC_VER > 1000
32 #pragma once
33 #endif // _MSC_VER > 1000
34 // PatchDialog.h : header file
35 //
36
37 /////////////////////////////////////////////////////////////////////////////
38 // CPatchDialog dialog
39
40 class CPatchDialog : public CDialog
41 {
42   patchMesh_t *m_Patch;
43 // Construction
44 public:
45         void UpdateInfo();
46         void SetPatchInfo();
47         void GetPatchInfo();
48         CPatchDialog(CWnd* pParent = NULL);   // standard constructor
49   void UpdateSpinners(bool bUp, int nID);
50
51 // Dialog Data
52         //{{AFX_DATA(CPatchDialog)
53         enum { IDD = IDD_DIALOG_PATCH };
54         CSpinButtonCtrl m_wndVShift;
55         CSpinButtonCtrl m_wndVScale;
56         CSpinButtonCtrl m_wndRotate;
57         CSpinButtonCtrl m_wndHShift;
58         CSpinButtonCtrl m_wndHScale;
59         CComboBox       m_wndType;
60         CComboBox       m_wndRows;
61         CComboBox       m_wndCols;
62         CString m_strName;
63         float   m_fS;
64         float   m_fT;
65         float   m_fX;
66         float   m_fY;
67         float   m_fZ;
68         float   m_fHScale;
69         float   m_fHShift;
70         float   m_fRotate;
71         float   m_fVScale;
72         float   m_fVShift;
73         //}}AFX_DATA
74
75
76 // Overrides
77         // ClassWizard generated virtual function overrides
78         //{{AFX_VIRTUAL(CPatchDialog)
79         protected:
80         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
81         //}}AFX_VIRTUAL
82
83 // Implementation
84 protected:
85         void UpdateRowColInfo();
86
87         // Generated message map functions
88         //{{AFX_MSG(CPatchDialog)
89         afx_msg void OnBtnPatchdetails();
90         afx_msg void OnBtnPatchfit();
91         afx_msg void OnBtnPatchnatural();
92         afx_msg void OnBtnPatchreset();
93         afx_msg void OnSelchangeComboCol();
94         afx_msg void OnSelchangeComboRow();
95         afx_msg void OnSelchangeComboType();
96         virtual void OnOK();
97         afx_msg void OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult);
98         virtual BOOL OnInitDialog();
99         afx_msg void OnDestroy();
100         afx_msg void OnApply();
101         //}}AFX_MSG
102         DECLARE_MESSAGE_MAP()
103 };
104
105 //{{AFX_INSERT_LOCATION}}
106 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
107
108 #endif // !defined(AFX_PATCHDIALOG_H__DE62DFB4_E9EC_11D2_A509_0020AFEB881A__INCLUDED_)