EntKeyFindReplace.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. ===========================================================================
  3. Doom 3 GPL Source Code
  4. Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
  5. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
  6. Doom 3 Source Code is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Doom 3 Source Code is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
  16. In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
  17. If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
  18. ===========================================================================
  19. */
  20. #if !defined(AFX_ENTKEYFINDREPLACE_H__1AE54C31_FC22_11D3_8A60_00500424438B__INCLUDED_)
  21. #define AFX_ENTKEYFINDREPLACE_H__1AE54C31_FC22_11D3_8A60_00500424438B__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // EntKeyFindReplace.h : header file
  26. //
  27. // return vals for modal dialogue, any values will do that don't clash with the first 9 or so defined by IDOK etc
  28. //
  29. #define ID_RET_REPLACE 100
  30. #define ID_RET_FIND 101
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CEntKeyFindReplace dialog
  33. class CEntKeyFindReplace : public CDialog
  34. {
  35. // Construction
  36. public:
  37. CEntKeyFindReplace(CString* p_strFindKey,
  38. CString* p_strFindValue,
  39. CString* p_strReplaceKey,
  40. CString* p_strReplaceValue,
  41. bool* p_bWholeStringMatchOnly,
  42. bool* p_bSelectAllMatchingEnts,
  43. CWnd* pParent = NULL); // standard constructor
  44. // Dialog Data
  45. //{{AFX_DATA(CEntKeyFindReplace)
  46. enum { IDD = IDD_ENTFINDREPLACE };
  47. CString m_strFindKey;
  48. CString m_strFindValue;
  49. CString m_strReplaceKey;
  50. CString m_strReplaceValue;
  51. BOOL m_bWholeStringMatchOnly;
  52. BOOL m_bSelectAllMatchingEnts;
  53. //}}AFX_DATA
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(CEntKeyFindReplace)
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. // Generated message map functions
  63. //{{AFX_MSG(CEntKeyFindReplace)
  64. virtual void OnCancel();
  65. afx_msg void OnReplace();
  66. afx_msg void OnFind();
  67. afx_msg void OnKeycopy();
  68. afx_msg void OnValuecopy();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. CString* m_pStrFindKey;
  72. CString* m_pStrFindValue;
  73. CString* m_pStrReplaceKey;
  74. CString* m_pStrReplaceValue;
  75. bool* m_pbWholeStringMatchOnly;
  76. bool* m_pbSelectAllMatchingEnts;
  77. void CopyFields();
  78. };
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_ENTKEYFINDREPLACE_H__1AE54C31_FC22_11D3_8A60_00500424438B__INCLUDED_)