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.

78 lines
2.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // vkeyeditView.h : interface of the CVkeyeditView class
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. #if !defined(AFX_VKEYEDITVIEW_H__18F868AE_3796_409E_9C61_25660D4FB286__INCLUDED_)
  12. #define AFX_VKEYEDITVIEW_H__18F868AE_3796_409E_9C61_25660D4FB286__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. class CVkeyeditDoc;
  17. class KeyValues;
  18. class CVkeyeditView : public CTreeView
  19. {
  20. protected: // create from serialization only
  21. CVkeyeditView();
  22. DECLARE_DYNCREATE(CVkeyeditView)
  23. // Attributes
  24. public:
  25. CVkeyeditDoc* GetDocument();
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CVkeyeditView)
  31. public:
  32. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. protected:
  35. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  36. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  37. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
  39. virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. bool InsertKeyValues(KeyValues *kv, HTREEITEM hParent);
  44. virtual ~CVkeyeditView();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. protected:
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CVkeyeditView)
  53. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. #ifndef _DEBUG // debug version in vkeyeditView.cpp
  58. inline CVkeyeditDoc* CVkeyeditView::GetDocument()
  59. { return (CVkeyeditDoc*)m_pDocument; }
  60. #endif
  61. /////////////////////////////////////////////////////////////////////////////
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_VKEYEDITVIEW_H__18F868AE_3796_409E_9C61_25660D4FB286__INCLUDED_)