FindTextureDlg.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_FINDTEXTUREDLG_H__34B75D32_9F3A_11D1_B570_00AA00A410FC__INCLUDED_)
  19. #define AFX_FINDTEXTUREDLG_H__34B75D32_9F3A_11D1_B570_00AA00A410FC__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // FindTextureDlg.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CFindTextureDlg dialog
  27. class CFindTextureDlg : public CDialog
  28. {
  29. // Construction
  30. public:
  31. static void setReplaceStr(const char* p);
  32. static void setFindStr(const char* p);
  33. static bool isOpen();
  34. static void show();
  35. static void updateTextures(const char* p);
  36. CFindTextureDlg(CWnd* pParent = NULL); // standard constructor
  37. // Dialog Data
  38. //{{AFX_DATA(CFindTextureDlg)
  39. enum { IDD = IDD_DIALOG_FINDREPLACE };
  40. BOOL m_bSelectedOnly;
  41. CString m_strFind;
  42. CString m_strReplace;
  43. BOOL m_bForce;
  44. BOOL m_bLive;
  45. //}}AFX_DATA
  46. // Overrides
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CFindTextureDlg)
  49. public:
  50. virtual BOOL DestroyWindow();
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CFindTextureDlg)
  58. afx_msg void OnBtnApply();
  59. virtual void OnOK();
  60. virtual void OnCancel();
  61. afx_msg void OnSetfocusEditFind();
  62. afx_msg void OnSetfocusEditReplace();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_FINDTEXTUREDLG_H__34B75D32_9F3A_11D1_B570_00AA00A410FC__INCLUDED_)