TexWnd.h (2727B)
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_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_) 23 #define AFX_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_ 24 25 #if _MSC_VER >= 1000 26 #pragma once 27 #endif // _MSC_VER >= 1000 28 // TexWnd.h : header file 29 // 30 #include "texedit.h" 31 32 ///////////////////////////////////////////////////////////////////////////// 33 // CTexWnd window 34 35 class CTexWnd : public CWnd 36 { 37 DECLARE_DYNCREATE(CTexWnd); 38 // Construction 39 public: 40 CTexWnd(); 41 void UpdateFilter(const char* pFilter); 42 void UpdatePrefs(); 43 void FocusEdit(); 44 45 // Attributes 46 public: 47 48 // Operations 49 public: 50 51 // Overrides 52 // ClassWizard generated virtual function overrides 53 //{{AFX_VIRTUAL(CTexWnd) 54 protected: 55 virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 56 //}}AFX_VIRTUAL 57 58 // Implementation 59 public: 60 virtual ~CTexWnd(); 61 62 protected: 63 CTexEdit m_wndFilter; 64 CButton m_wndShaders; 65 bool m_bNeedRange; 66 // Generated message map functions 67 protected: 68 //{{AFX_MSG(CTexWnd) 69 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 70 afx_msg void OnSize(UINT nType, int cx, int cy); 71 afx_msg void OnParentNotify(UINT message, LPARAM lParam); 72 afx_msg void OnTimer(UINT nIDEvent); 73 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 74 afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); 75 afx_msg void OnPaint(); 76 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 77 afx_msg void OnTexturesFlush(); 78 //}}AFX_MSG 79 afx_msg void OnShaderClick(); 80 DECLARE_MESSAGE_MAP() 81 }; 82 83 ///////////////////////////////////////////////////////////////////////////// 84 85 //{{AFX_INSERT_LOCATION}} 86 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 87 88 #endif // !defined(AFX_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_)