TexWnd.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #if !defined(AFX_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_)
  19. #define AFX_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // TexWnd.h : header file
  24. //
  25. #include "texedit.h"
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CTexWnd window
  28. class CTexWnd : public CWnd
  29. {
  30. DECLARE_DYNCREATE(CTexWnd);
  31. // Construction
  32. public:
  33. CTexWnd();
  34. void UpdateFilter(const char* pFilter);
  35. void UpdatePrefs();
  36. void FocusEdit();
  37. // Attributes
  38. public:
  39. // Operations
  40. public:
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CTexWnd)
  44. protected:
  45. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. public:
  49. virtual ~CTexWnd();
  50. protected:
  51. CTexEdit m_wndFilter;
  52. CButton m_wndShaders;
  53. bool m_bNeedRange;
  54. // Generated message map functions
  55. protected:
  56. //{{AFX_MSG(CTexWnd)
  57. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  58. afx_msg void OnSize(UINT nType, int cx, int cy);
  59. afx_msg void OnParentNotify(UINT message, LPARAM lParam);
  60. afx_msg void OnTimer(UINT nIDEvent);
  61. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  62. afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
  63. afx_msg void OnPaint();
  64. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  65. afx_msg void OnTexturesFlush();
  66. //}}AFX_MSG
  67. afx_msg void OnShaderClick();
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_TEXWND_H__44B4BA05_781B_11D1_B53C_00AA00A410FC__INCLUDED_)