#include <FindTextureDlg.h>
Inheritance diagram for CFindTextureDlg:


Public Types | |
| enum | { IDD = IDD_DIALOG_FINDREPLACE } |
Public Member Functions | |
| CFindTextureDlg (CWnd *pParent=NULL) | |
| virtual BOOL | DestroyWindow () |
Static Public Member Functions | |
| bool | isOpen () |
| void | setFindStr (const char *p) |
| void | setReplaceStr (const char *p) |
| void | show () |
| void | updateTextures (const char *p) |
Data Fields | |
| BOOL | m_bForce |
| BOOL | m_bLive |
| BOOL | m_bSelectedOnly |
| CString | m_strFind |
| CString | m_strReplace |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| afx_msg void | OnBtnApply () |
| virtual void | OnCancel () |
| virtual void | OnOK () |
| afx_msg void | OnSetfocusEditFind () |
| afx_msg void | OnSetfocusEditReplace () |
|
|
Definition at line 47 of file FindTextureDlg.h. 00047 { IDD = IDD_DIALOG_FINDREPLACE };
|
|
|
Definition at line 57 of file FindTextureDlg.cpp. References m_bForce, m_bLive, m_bSelectedOnly, m_strFind, and m_strReplace. 00058 : CDialog(CFindTextureDlg::IDD, pParent) 00059 { 00060 //{{AFX_DATA_INIT(CFindTextureDlg) 00061 m_bSelectedOnly = FALSE; 00062 m_strFind = _T(""); 00063 m_strReplace = _T(""); 00064 m_bForce = FALSE; 00065 m_bLive = TRUE; 00066 //}}AFX_DATA_INIT 00067 }
|
|
|
Definition at line 162 of file FindTextureDlg.cpp. References BOOL. 00163 {
00164 return CDialog::DestroyWindow();
00165 }
|
|
|
Definition at line 70 of file FindTextureDlg.cpp. References IDC_CHECK_FORCE, IDC_CHECK_LIVE, IDC_CHECK_SELECTED, IDC_EDIT_FIND, IDC_EDIT_REPLACE, m_bForce, m_bLive, m_bSelectedOnly, m_strFind, and m_strReplace. 00071 {
00072 CDialog::DoDataExchange(pDX);
00073 //{{AFX_DATA_MAP(CFindTextureDlg)
00074 DDX_Check(pDX, IDC_CHECK_SELECTED, m_bSelectedOnly);
00075 DDX_Text(pDX, IDC_EDIT_FIND, m_strFind);
00076 DDX_Text(pDX, IDC_EDIT_REPLACE, m_strReplace);
00077 DDX_Check(pDX, IDC_CHECK_FORCE, m_bForce);
00078 DDX_Check(pDX, IDC_CHECK_LIVE, m_bLive);
00079 //}}AFX_DATA_MAP
00080 }
|
|
|
Definition at line 128 of file FindTextureDlg.cpp. References g_dlgFind, and NULL. Referenced by Texture_SetTexture(), and updateTextures(). 00129 {
00130 return (g_dlgFind.GetSafeHwnd() == NULL || ::IsWindowVisible(g_dlgFind.GetSafeHwnd()) == FALSE) ? false : true;
00131 }
|
|
|
|
|
|
Definition at line 154 of file FindTextureDlg.cpp. References SaveRegistryInfo(). 00155 {
00156 CRect rct;
00157 GetWindowRect(rct);
00158 SaveRegistryInfo("Radiant::TextureFindWindow", &rct, sizeof(rct));
00159 CDialog::OnCancel();
00160 }
|
Here is the call graph for this function:

|
|
Definition at line 100 of file FindTextureDlg.cpp. References FindReplaceTextures(), m_bForce, m_bSelectedOnly, m_strFind, m_strReplace, SaveRegistryInfo(), and TRUE. 00101 {
00102 UpdateData(TRUE);
00103 CRect rct;
00104 GetWindowRect(rct);
00105 SaveRegistryInfo("Radiant::TextureFindWindow", &rct, sizeof(rct));
00106 FindReplaceTextures(m_strFind, m_strReplace, m_bSelectedOnly, m_bForce);
00107 CDialog::OnOK();
00108 }
|
Here is the call graph for this function:

|
|
Definition at line 167 of file FindTextureDlg.cpp. References g_bFindActive. 00168 {
00169 g_bFindActive = true;
00170 }
|
|
|
Definition at line 172 of file FindTextureDlg.cpp. References g_bFindActive. 00173 {
00174 g_bFindActive = false;
00175 }
|
|
|
Definition at line 133 of file FindTextureDlg.cpp. References FALSE, g_dlgFind, m_bLive, m_strFind, and TRUE. Referenced by updateTextures(). 00134 {
00135 g_dlgFind.UpdateData(TRUE);
00136 if (g_dlgFind.m_bLive)
00137 {
00138 g_dlgFind.m_strFind = p;
00139 g_dlgFind.UpdateData(FALSE);
00140 }
00141 }
|
|
|
Definition at line 143 of file FindTextureDlg.cpp. References FALSE, g_dlgFind, m_bLive, m_strReplace, and TRUE. Referenced by updateTextures(). 00144 {
00145 g_dlgFind.UpdateData(TRUE);
00146 if (g_dlgFind.m_bLive)
00147 {
00148 g_dlgFind.m_strReplace = p;
00149 g_dlgFind.UpdateData(FALSE);
00150 }
00151 }
|
|
|
Definition at line 110 of file FindTextureDlg.cpp. References g_dlgFind, IDD_DIALOG_FINDREPLACE, LoadRegistryInfo(), LONG, and NULL. Referenced by CMainFrame::OnTextureReplaceall(). 00111 {
00112 if (g_dlgFind.GetSafeHwnd() == NULL || IsWindow(g_dlgFind.GetSafeHwnd()) == FALSE)
00113 {
00114 g_dlgFind.Create(IDD_DIALOG_FINDREPLACE);
00115 g_dlgFind.ShowWindow(SW_SHOW);
00116 }
00117 else
00118 {
00119 g_dlgFind.ShowWindow(SW_SHOW);
00120 }
00121 CRect rct;
00122 LONG lSize = sizeof(rct);
00123 if (LoadRegistryInfo("Radiant::TextureFindWindow", &rct, &lSize))
00124 g_dlgFind.SetWindowPos(NULL, rct.left, rct.top, 0,0, SWP_NOSIZE | SWP_SHOWWINDOW);
00125 }
|
Here is the call graph for this function:

|
|
Definition at line 42 of file FindTextureDlg.cpp. References isOpen(), p, setFindStr(), and setReplaceStr(). Referenced by Texture_SetTexture(). 00043 {
00044 if (isOpen())
00045 {
00046 if (g_bFindActive)
00047 {
00048 setFindStr(p);
00049 }
00050 else
00051 {
00052 setReplaceStr(p);
00053 }
00054 }
00055 }
|
Here is the call graph for this function:

|
|
Definition at line 51 of file FindTextureDlg.h. Referenced by CFindTextureDlg(), DoDataExchange(), and OnOK(). |
|
|
Definition at line 52 of file FindTextureDlg.h. Referenced by CFindTextureDlg(), DoDataExchange(), setFindStr(), and setReplaceStr(). |
|
|
Definition at line 48 of file FindTextureDlg.h. Referenced by CFindTextureDlg(), DoDataExchange(), and OnOK(). |
|
|
Definition at line 49 of file FindTextureDlg.h. Referenced by CFindTextureDlg(), DoDataExchange(), OnOK(), and setFindStr(). |
|
|
Definition at line 50 of file FindTextureDlg.h. Referenced by CFindTextureDlg(), DoDataExchange(), OnOK(), and setReplaceStr(). |
1.3.9.1