Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

SurfaceDlg.h (3484B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 #if !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)
     23 #define AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_
     24 
     25 #if _MSC_VER >= 1000
     26 #pragma once
     27 #endif // _MSC_VER >= 1000
     28 // SurfaceDlg.h : header file
     29 //
     30 
     31 /////////////////////////////////////////////////////////////////////////////
     32 // CSurfaceDlg dialog
     33 
     34 class CSurfaceDlg : public CDialog
     35 {
     36 	bool m_bPatchMode;
     37 	// brush primitive fake shift scale rot coords
     38 	float	m_shift[2];
     39 	float	m_rotate;
     40 	float	m_scale[2];
     41 
     42 	// Construction
     43 public:
     44 	CSurfaceDlg(CWnd* pParent = NULL);   // standard constructor
     45   void SetTexMods();
     46   void GetTexMods();
     47   void GrabPatchMods();
     48 
     49 // Dialog Data
     50 	//{{AFX_DATA(CSurfaceDlg)
     51 	enum { IDD = IDD_SURFACE };
     52 	CSpinButtonCtrl	m_wndWidth;
     53 	CSpinButtonCtrl	m_wndHeight;
     54 	CSpinButtonCtrl	m_wndVShift;
     55 	CSpinButtonCtrl	m_wndVScale;
     56 	CSpinButtonCtrl	m_wndRotate;
     57 	CSpinButtonCtrl	m_wndHShift;
     58 	CSpinButtonCtrl	m_wndHScale;
     59 	int		m_nHeight;
     60 	int		m_nWidth;
     61 	//}}AFX_DATA
     62 
     63 
     64 // Overrides
     65 	// ClassWizard generated virtual function overrides
     66 	//{{AFX_VIRTUAL(CSurfaceDlg)
     67 	protected:
     68 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
     69 	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
     70 	//}}AFX_VIRTUAL
     71 
     72 // Implementation
     73 protected:
     74 
     75   void UpdateSpinners(int nScrollCode, int nPos, CScrollBar* pBar);
     76   void UpdateSpinners(bool bUp, int nID);
     77 	// Generated message map functions
     78 	//{{AFX_MSG(CSurfaceDlg)
     79 	virtual BOOL OnInitDialog();
     80 	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
     81 	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
     82 	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
     83 	afx_msg void OnApply();
     84 	virtual void OnOK();
     85 	afx_msg void OnClose();
     86 	virtual void OnCancel();
     87 	afx_msg void OnDestroy();
     88 	afx_msg void OnBtnCancel();
     89 	afx_msg void OnBtnColor();
     90 	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
     91 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
     92 	afx_msg void OnDeltaPosSpin(NMHDR* pNMHDR, LRESULT* pResult);
     93 	afx_msg void OnBtnPatchdetails();
     94 	afx_msg void OnBtnPatchnatural();
     95 	afx_msg void OnBtnPatchreset();
     96 	afx_msg void OnBtnPatchfit();
     97 	afx_msg void OnBtnAxial();
     98 	afx_msg void OnBtnBrushfit();
     99 	afx_msg void OnBtnFacefit();
    100 	//}}AFX_MSG
    101 	DECLARE_MESSAGE_MAP()
    102 };
    103 
    104 //{{AFX_INSERT_LOCATION}}
    105 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
    106 
    107 #endif // !defined(AFX_SURFACEDLG_H__D84E0C22_9EEA_11D1_B570_00AA00A410FC__INCLUDED_)