Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // PrefabsDlg.h : header file
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPrefabsDlg dialog
  12. #include "Prefabs.h"
  13. class CPrefabsDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CPrefabsDlg(CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CPrefabsDlg)
  20. enum { IDD = IDD_PREFABS };
  21. CListCtrl m_Objects;
  22. CEdit m_ObjectNotes;
  23. CStatic m_LibraryNotes;
  24. CComboBox m_Libraries;
  25. //}}AFX_DATA
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CPrefabsDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. int iCurObject;
  35. int iCurLibrary;
  36. BOOL bCurLibraryModified;
  37. void SetCurObject(int);
  38. int GetCurObject() { return iCurObject; }
  39. CPrefabLibrary * GetCurrentLibrary(int *piSel = NULL);
  40. CPrefab * GetCurrentObject(int *piSel = NULL);
  41. void AddToObjectList(CPrefab *pPrefab, int iItem = -1,
  42. BOOL bReplace = FALSE);
  43. CImageList PrefabImages;
  44. void EditObjectInfo();
  45. void EditObjectData();
  46. afx_msg BOOL HandleEditObjectPopup(UINT nID);
  47. // Generated message map functions
  48. //{{AFX_MSG(CPrefabsDlg)
  49. afx_msg void OnAddlibrary();
  50. afx_msg void OnAddobject();
  51. afx_msg void OnEditlibrary();
  52. afx_msg void OnEditobject();
  53. afx_msg void OnExportobject();
  54. afx_msg void OnSelchangeLibraries();
  55. afx_msg void OnRemovelibrary();
  56. afx_msg void OnRemoveobject();
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnItemchangedObjects(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnEndlabeleditObjects(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnClose();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };