Counter Strike : Global Offensive Source Code
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.

183 lines
4.1 KiB

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef MANIFESTDIALOG_H
  8. #define MANIFESTDIALOG_H
  9. #pragma once
  10. #include "afxcmn.h"
  11. #include "afxwin.h"
  12. #include "HammerBar.h"
  13. class CManifestMap;
  14. // CManifestMove dialog
  15. class CManifestMove : public CDialog
  16. {
  17. DECLARE_DYNAMIC(CManifestMove)
  18. public:
  19. CManifestMove( bool bIsMove, CWnd* pParent = NULL ); // standard constructor
  20. virtual ~CManifestMove();
  21. void GetFriendlyName( CString &Result ) { Result = m_FriendlyName; }
  22. void GetFileName( CString &Result ) { Result = m_FileName; }
  23. bool GetCenterContents( void ) { return m_CenterContents; }
  24. // Dialog Data
  25. enum { IDD = IDD_MANIFEST_MOVE };
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. DECLARE_MESSAGE_MAP()
  29. public:
  30. CEdit m_FileNameControl;
  31. CButton m_CenterContentsControl;
  32. CEdit m_FriendlyNameControl;
  33. CStatic m_FullPathNameControl;
  34. bool m_bIsMove;
  35. protected:
  36. virtual void OnOK();
  37. CString m_FriendlyName;
  38. CString m_FileName;
  39. bool m_CenterContents;
  40. public:
  41. virtual BOOL OnInitDialog();
  42. afx_msg void OnEnChangeManifestFilename();
  43. };
  44. class CManifestListBox : public CListBox
  45. {
  46. public:
  47. CManifestListBox( void );
  48. virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
  49. virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );
  50. virtual int CompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct );
  51. private:
  52. CImageList m_Icons;
  53. CMenu m_ManifestFilterMenu, m_ManifestFilterSecondaryMenu, m_ManifestFilterPrimaryMenu, m_ManifestFilterBlankMenu;
  54. CManifestMap *m_pTrackerManifestMap;
  55. protected:
  56. //{{AFX_MSG(CManifestListBox)
  57. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. public:
  61. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  62. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  63. afx_msg void OnMoveSelectionToSubMap();
  64. afx_msg void OnMoveSelectionToNewSubMap();
  65. afx_msg void OnVersionControlCheckOut();
  66. afx_msg void OnVersionControlCheckIn();
  67. afx_msg void OnVersionControlAdd();
  68. afx_msg void OnInsertEmptySubMap();
  69. afx_msg void OnInsertExistingSubMap();
  70. afx_msg void OnManifestProperties();
  71. afx_msg void OnManifestRemove();
  72. };
  73. // CManifestFilter dialog
  74. class CManifestFilter : public CHammerBar
  75. {
  76. public:
  77. CManifestFilter() : CHammerBar() { bInitialized = FALSE; }
  78. BOOL Create(CWnd *pParentWnd);
  79. virtual ~CManifestFilter();
  80. void UpdateManifestList( void );
  81. // Dialog Data
  82. enum { IDD = IDD_MANIFEST_CONTROL };
  83. private:
  84. BOOL bInitialized;
  85. CManifestListBox m_ManifestList;
  86. CBrush *m_pBkBrush;
  87. protected:
  88. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  89. DECLARE_MESSAGE_MAP()
  90. public:
  91. //{{AFX_MSG(CManifestFilter)
  92. afx_msg void OnLbnSelchangeManifestList();
  93. afx_msg void OnLbnDblClkManifestList();
  94. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  95. afx_msg void OnDestroy();
  96. afx_msg void OnSize(UINT nType, int cx, int cy);
  97. //}}AFX_MSG
  98. };
  99. // CManifestMapDlg dialog
  100. class CManifestMapDlg : public CDialog
  101. {
  102. DECLARE_DYNAMIC(CManifestMapDlg)
  103. public:
  104. CManifestMapDlg( CManifestMap *pManifestMap, CWnd* pParent = NULL ); // standard constructor
  105. virtual ~CManifestMapDlg();
  106. // Dialog Data
  107. enum { IDD = IDD_MANIFEST_MAP };
  108. protected:
  109. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  110. DECLARE_MESSAGE_MAP()
  111. public:
  112. virtual BOOL OnInitDialog();
  113. private:
  114. CManifestMap *m_pManifestMap;
  115. public:
  116. CEdit m_FriendlyNameControl;
  117. protected:
  118. virtual void OnOK();
  119. public:
  120. CStatic m_FullFileNameCtrl;
  121. };
  122. // CManifestCheckin dialog
  123. class CManifestCheckin : public CDialog
  124. {
  125. DECLARE_DYNAMIC(CManifestCheckin)
  126. public:
  127. CManifestCheckin(CWnd* pParent = NULL); // standard constructor
  128. virtual ~CManifestCheckin();
  129. // Dialog Data
  130. enum { IDD = IDD_MANIFEST_CHECKIN };
  131. protected:
  132. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  133. DECLARE_MESSAGE_MAP()
  134. public:
  135. virtual BOOL OnInitDialog();
  136. afx_msg void OnBnClickedOk();
  137. CListCtrl m_CheckinListCtrl;
  138. CEdit m_DescriptionCtrl;
  139. };
  140. #endif // MANIFESTDIALOG_H