doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SurfaceDlg.h
Go to the documentation of this file.
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_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)
29 #define AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_
30 
31 #if _MSC_VER >= 1000
32 #pragma once
33 #endif // _MSC_VER >= 1000
34 // SurfaceDlg.h : header file
35 //
36 
38 // CSurfaceDlg dialog
39 
40 class CSurfaceDlg : public CDialog
41 {
43  CWnd *focusControl;
44 
45  // Construction
46 public:
47  CSurfaceDlg(CWnd* pParent = NULL); // standard constructor
48  void SetTexMods();
49 
50 // Dialog Data
51  //{{AFX_DATA(CSurfaceDlg)
52  enum { IDD = IDD_SURFACE };
54  CEdit m_wndVert;
55  CEdit m_wndHorz;
57  CSliderCtrl m_wndHorzSubdivisions;
58  CSpinButtonCtrl m_wndWidth;
59  CSpinButtonCtrl m_wndHeight;
60  CSpinButtonCtrl m_wndVShift;
61  CSpinButtonCtrl m_wndVScale;
62  CSpinButtonCtrl m_wndRotate;
63  CSpinButtonCtrl m_wndHShift;
64  CSpinButtonCtrl m_wndHScale;
65  int m_nHorz;
66  int m_nVert;
67  float m_horzScale;
68  float m_horzShift;
69  float m_rotate;
70  float m_vertScale;
71  float m_vertShift;
72  CString m_strMaterial;
74  float m_fHeight;
75  float m_fWidth;
77  //}}AFX_DATA
78 
79 
80 // Overrides
81  // ClassWizard generated virtual function overrides
82  //{{AFX_VIRTUAL(CSurfaceDlg)
83  public:
84  virtual BOOL PreTranslateMessage(MSG* pMsg);
85  protected:
86  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
87  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
88  //}}AFX_VIRTUAL
89 
90 // Implementation
91 protected:
92 
93  void UpdateSpinners(int nScrollCode, int nPos, CScrollBar* pBar);
94  void UpdateSpinners(bool bUp, int nID);
95  // Generated message map functions
96  //{{AFX_MSG(CSurfaceDlg)
97  virtual BOOL OnInitDialog();
98  afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
99  afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
100  afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
101  afx_msg void OnApply();
102  virtual void OnOK();
103  afx_msg void OnClose();
104  virtual void OnCancel();
105  afx_msg void OnDestroy();
106  afx_msg void OnBtnCancel();
107  afx_msg void OnBtnColor();
108  afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
109  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
110  afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
111  afx_msg void OnBtnPatchdetails();
112  afx_msg void OnBtnPatchnatural();
113  afx_msg void OnBtnPatchreset();
114  afx_msg void OnBtnAxial();
115  afx_msg void OnBtnBrushfit();
116  afx_msg void OnBtnFacefit();
117  afx_msg void OnCheckSubdivide();
118  afx_msg void OnChangeEditHorz();
119  afx_msg void OnChangeEditVert();
120  afx_msg void OnSetfocusHscale();
121  afx_msg void OnKillfocusHscale();
122  afx_msg void OnKillfocusVscale();
123  afx_msg void OnSetfocusVscale();
124  afx_msg void OnKillfocusEditWidth();
125  afx_msg void OnSetfocusEditWidth();
126  afx_msg void OnKillfocusEditHeight();
127  afx_msg void OnSetfocusEditHeight();
128  afx_msg void OnBtnFlipx();
129  afx_msg void OnBtnFlipy();
130  afx_msg void OnKillfocusRotate();
131  afx_msg void OnSetfocusRotate();
132  //}}AFX_MSG
133  DECLARE_MESSAGE_MAP()
134 };
135 
136 //{{AFX_INSERT_LOCATION}}
137 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
138 
139 #endif // !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)
afx_msg void OnSetfocusEditHeight()
Definition: SurfaceDlg.cpp:606
afx_msg void OnChangeEditHorz()
Definition: SurfaceDlg.cpp:519
afx_msg void OnSetfocusEditWidth()
Definition: SurfaceDlg.cpp:596
CSliderCtrl m_wndVerticalSubdivisions
Definition: SurfaceDlg.h:56
afx_msg void OnSetfocusHscale()
Definition: SurfaceDlg.cpp:571
afx_msg void OnBtnPatchreset()
Definition: SurfaceDlg.cpp:474
afx_msg void OnDestroy()
Definition: SurfaceDlg.cpp:407
void SetTexMods()
Definition: SurfaceDlg.cpp:164
float m_horzShift
Definition: SurfaceDlg.h:68
CONST PIXELFORMATDESCRIPTOR UINT
Definition: win_qgl.cpp:47
virtual BOOL PreTranslateMessage(MSG *pMsg)
Definition: SurfaceDlg.cpp:549
afx_msg void OnBtnFlipy()
Definition: SurfaceDlg.cpp:616
afx_msg void OnChangeEditVert()
Definition: SurfaceDlg.cpp:534
afx_msg void OnCheckSubdivide()
Definition: SurfaceDlg.cpp:511
CEdit m_wndHorz
Definition: SurfaceDlg.h:55
CSpinButtonCtrl m_wndRotate
Definition: SurfaceDlg.h:62
afx_msg void OnBtnBrushfit()
Definition: SurfaceDlg.cpp:485
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
Definition: SurfaceDlg.cpp:376
float m_vertScale
Definition: SurfaceDlg.h:70
CSliderCtrl m_wndHorzSubdivisions
Definition: SurfaceDlg.h:57
CSpinButtonCtrl m_wndHeight
Definition: SurfaceDlg.h:59
float m_vertShift
Definition: SurfaceDlg.h:71
bool m_bPatchMode
Definition: SurfaceDlg.h:42
CEdit m_wndRotateEdit
Definition: SurfaceDlg.h:53
afx_msg void OnApply()
CSpinButtonCtrl m_wndVScale
Definition: SurfaceDlg.h:61
afx_msg void OnKillfocusRotate()
Definition: SurfaceDlg.cpp:621
float m_fHeight
Definition: SurfaceDlg.h:74
CString m_strMaterial
Definition: SurfaceDlg.h:72
#define BOOL
Definition: mprintf.c:71
afx_msg void OnBtnAxial()
Definition: SurfaceDlg.cpp:482
afx_msg void OnBtnPatchdetails()
Definition: SurfaceDlg.cpp:460
afx_msg void OnBtnCancel()
Definition: SurfaceDlg.cpp:418
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
Definition: SurfaceDlg.cpp:371
CEdit m_wndVert
Definition: SurfaceDlg.h:54
afx_msg void OnKillfocusEditWidth()
Definition: SurfaceDlg.cpp:591
virtual void DoDataExchange(CDataExchange *pDX)
Definition: SurfaceDlg.cpp:68
afx_msg void OnKillfocusEditHeight()
Definition: SurfaceDlg.cpp:601
float m_horzScale
Definition: SurfaceDlg.h:67
CSpinButtonCtrl m_wndHShift
Definition: SurfaceDlg.h:63
#define NULL
Definition: Lib.h:88
virtual BOOL PreCreateWindow(CREATESTRUCT &cs)
Definition: SurfaceDlg.cpp:447
afx_msg void OnDeltaPosSpin(NMHDR *pNMHDR, LRESULT *pResult)
Definition: SurfaceDlg.cpp:454
#define IDD_SURFACE
float m_fWidth
Definition: SurfaceDlg.h:75
BOOL m_subdivide
Definition: SurfaceDlg.h:73
virtual void OnCancel()
Definition: SurfaceDlg.cpp:399
CSpinButtonCtrl m_wndHScale
Definition: SurfaceDlg.h:64
CSurfaceDlg(CWnd *pParent=NULL)
Definition: SurfaceDlg.cpp:49
afx_msg void OnBtnFacefit()
Definition: SurfaceDlg.cpp:490
void UpdateSpinners(int nScrollCode, int nPos, CScrollBar *pBar)
Definition: SurfaceDlg.cpp:241
afx_msg void OnKillfocusVscale()
Definition: SurfaceDlg.cpp:581
float m_rotate
Definition: SurfaceDlg.h:69
afx_msg void OnKillfocusHscale()
Definition: SurfaceDlg.cpp:576
BOOL m_absolute
Definition: SurfaceDlg.h:76
afx_msg void OnSetfocusRotate()
Definition: SurfaceDlg.cpp:626
CSpinButtonCtrl m_wndWidth
Definition: SurfaceDlg.h:58
afx_msg void OnBtnPatchnatural()
Definition: SurfaceDlg.cpp:466
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
Definition: SurfaceDlg.cpp:352
virtual BOOL OnInitDialog()
Definition: SurfaceDlg.cpp:327
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
Definition: SurfaceDlg.cpp:440
CWnd * focusControl
Definition: SurfaceDlg.h:43
afx_msg HBRUSH OnCtlColor(CDC *pDC, CWnd *pWnd, UINT nCtlColor)
Definition: SurfaceDlg.cpp:435
CSpinButtonCtrl m_wndVShift
Definition: SurfaceDlg.h:60
virtual void OnOK()
Definition: SurfaceDlg.cpp:382
afx_msg void OnClose()
Definition: SurfaceDlg.cpp:394
afx_msg void OnBtnFlipx()
Definition: SurfaceDlg.cpp:611
afx_msg void OnSetfocusVscale()
Definition: SurfaceDlg.cpp:586
afx_msg void OnBtnColor()
Definition: SurfaceDlg.cpp:432