summaryrefslogtreecommitdiff
path: root/hammer/editprefabdlg.h
blob: 832bf3fea6ec4ceb5d9e88b2fecae2497027f29b (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef EDITPREFABDLG_H
#define EDITPREFABDLG_H
#ifdef _WIN32
#pragma once
#endif

#include "resource.h"

class CEditPrefabDlg : public CDialog
{
// Construction
public:
	CEditPrefabDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CEditPrefabDlg)
	enum { IDD = IDD_EDITPREFAB };
	CComboBox	m_CreateIn;
	CEdit	m_Name;
	CEdit	m_Descript;
	CString	m_strDescript;
	CString	m_strName;
	//}}AFX_DATA

	void SetRanges(int iMaxDescript, int iMaxName);
	void EnableLibrary(BOOL = TRUE);
	DWORD m_dwLibraryID;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditPrefabDlg)
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int iMaxDescriptChars, iMaxNameChars;
	BOOL m_bEnableLibrary;

	// Generated message map functions
	//{{AFX_MSG(CEditPrefabDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeCreatein();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif // EDITPREFABDLG_H