TextureBar.h (2809B)
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_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_) 23 #define AFX_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_ 24 25 #if _MSC_VER >= 1000 26 #pragma once 27 #endif // _MSC_VER >= 1000 28 // TextureBar.h : header file 29 // 30 31 ///////////////////////////////////////////////////////////////////////////// 32 // CTextureBar dialog 33 34 class CTextureBar : public CDialogBar 35 { 36 // Construction 37 public: 38 void GetSurfaceAttributes(); 39 void SetSurfaceAttributes(); 40 CTextureBar(); 41 42 // Dialog Data 43 //{{AFX_DATA(CTextureBar) 44 enum { IDD = IDD_TEXTUREBAR }; 45 CSpinButtonCtrl m_spinRotate; 46 CSpinButtonCtrl m_spinVScale; 47 CSpinButtonCtrl m_spinVShift; 48 CSpinButtonCtrl m_spinHScale; 49 CSpinButtonCtrl m_spinHShift; 50 int m_nHShift; 51 int m_nHScale; 52 int m_nRotate; 53 int m_nVShift; 54 int m_nVScale; 55 int m_nRotateAmt; 56 //}}AFX_DATA 57 58 59 // Overrides 60 // ClassWizard generated virtual function overrides 61 //{{AFX_VIRTUAL(CTextureBar) 62 protected: 63 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 64 //}}AFX_VIRTUAL 65 66 // Implementation 67 protected: 68 // Generated message map functions 69 //{{AFX_MSG(CTextureBar) 70 afx_msg void OnDeltaposSpinHshift(NMHDR* pNMHDR, LRESULT* pResult); 71 afx_msg void OnDeltaposSpinVshift(NMHDR* pNMHDR, LRESULT* pResult); 72 afx_msg void OnDeltaposSpinHScale(NMHDR* pNMHDR, LRESULT* pResult); 73 afx_msg void OnDeltaposSpinVScale(NMHDR* pNMHDR, LRESULT* pResult); 74 afx_msg void OnDeltaposSpinRotate(NMHDR* pNMHDR, LRESULT* pResult); 75 afx_msg void OnSelectionPrint(); 76 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 77 afx_msg void OnBtnApplytexturestuff(); 78 //}}AFX_MSG 79 DECLARE_MESSAGE_MAP() 80 }; 81 82 //{{AFX_INSERT_LOCATION}} 83 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 84 85 #endif // !defined(AFX_TEXTUREBAR_H__86220273_B656_11D1_B59F_00AA00A410FC__INCLUDED_)