summaryrefslogtreecommitdiff
path: root/hammer/prefabsdlg.h
blob: 518fff4d505221cc2896c3c971034065b301b75d (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
70
71
72
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// PrefabsDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPrefabsDlg dialog

#include "Prefabs.h"

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

// Dialog Data
	//{{AFX_DATA(CPrefabsDlg)
	enum { IDD = IDD_PREFABS };
	CListCtrl	m_Objects;
	CEdit	m_ObjectNotes;
	CStatic	m_LibraryNotes;
	CComboBox	m_Libraries;
	//}}AFX_DATA


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

// Implementation
protected:
	int iCurObject;
	int iCurLibrary;
	BOOL bCurLibraryModified;
	void SetCurObject(int);
	int GetCurObject() { return iCurObject; }
	CPrefabLibrary * GetCurrentLibrary(int *piSel = NULL);
	CPrefab * GetCurrentObject(int *piSel = NULL);
	void AddToObjectList(CPrefab *pPrefab, int iItem = -1, 
		BOOL bReplace = FALSE);
	CImageList PrefabImages;
	void EditObjectInfo();
	void EditObjectData();

	afx_msg BOOL HandleEditObjectPopup(UINT nID);

	// Generated message map functions
	//{{AFX_MSG(CPrefabsDlg)
	afx_msg void OnAddlibrary();
	afx_msg void OnAddobject();
	afx_msg void OnEditlibrary();
	afx_msg void OnEditobject();
	afx_msg void OnExportobject();
	afx_msg void OnSelchangeLibraries();
	afx_msg void OnRemovelibrary();
	afx_msg void OnRemoveobject();
	virtual BOOL OnInitDialog();
	afx_msg void OnItemchangedObjects(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnEndlabeleditObjects(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};