summaryrefslogtreecommitdiff
path: root/hammer/replacetexdlg.h
blob: 75a062a5ee5639967cebf9c04b97cba4d03fb278 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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