diff options
Diffstat (limited to 'hammer/replacetexdlg.h')
| -rw-r--r-- | hammer/replacetexdlg.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/hammer/replacetexdlg.h b/hammer/replacetexdlg.h new file mode 100644 index 0000000..75a062a --- /dev/null +++ b/hammer/replacetexdlg.h @@ -0,0 +1,69 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef REPLACETEXDLG_H +#define REPLACETEXDLG_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "resource.h" +#include "IEditorTexture.h" +#include "wndTex.h" + + +class CReplaceTexDlg : public CDialog +{ +// Construction +public: + CReplaceTexDlg(int, CWnd* pParent = NULL); // standard constructor + +// Dialog Data + //{{AFX_DATA(CReplaceTexDlg) + enum { IDD = IDD_REPLACETEX }; + CEdit m_cFind; + CEdit m_cReplace; + wndTex m_cReplacePic; + wndTex m_cFindPic; + int m_iSearchAll; + CString m_strFind; + CString m_strReplace; + int m_iAction; + BOOL m_bMarkOnly; + BOOL m_bHidden; + BOOL m_bRescaleTextureCoordinates; + //}}AFX_DATA + + int m_nSelected; + + void DoReplaceTextures(); + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CReplaceTexDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + +// Implementation +protected: + + // Generated message map functions + //{{AFX_MSG(CReplaceTexDlg) + afx_msg void OnBrowsereplace(); + afx_msg void OnBrowsefind(); + afx_msg void OnUpdateFind(); + afx_msg void OnUpdateReplace(); + virtual BOOL OnInitDialog(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() + + void BrowseTex(int iEdit); +}; + +#endif // REPLACETEXDLG_H |