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.

91 lines
2.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef __VERSION_CONTROL_DIALOG_H
  9. #define __VERSION_CONTROL_DIALOG_H
  10. #pragma once
  11. #include "utlsymbol.h"
  12. #include "afxwin.h"
  13. struct P4File_t;
  14. class CMapDocCheckin : public CDialog
  15. {
  16. DECLARE_DYNAMIC(CMapDocCheckin)
  17. public:
  18. CMapDocCheckin(CWnd* pParent = NULL); // standard constructor
  19. virtual ~CMapDocCheckin();
  20. // Dialog Data
  21. enum { IDD = IDD_MAPDOC_CHECKIN };
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  24. void AddFileToList( CMapDoc *pMapDoc, P4File_t *FileInfo );
  25. bool m_bSelectAll;
  26. DECLARE_MESSAGE_MAP()
  27. public:
  28. virtual BOOL OnInitDialog();
  29. virtual void OnOK();
  30. afx_msg void OnBnClickedSubmit();
  31. CUtlVector< CUtlSymbol > m_FileList;
  32. CListCtrl m_CheckinListCtrl;
  33. CEdit m_DescriptionCtrl;
  34. CStatic m_CheckInStatusControl;
  35. CButton m_SubmitButtonControl;
  36. afx_msg void OnNMRclickCheckinList(NMHDR *pNMHDR, LRESULT *pResult);
  37. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  38. };
  39. class CMapDocStatus : public CDialog
  40. {
  41. DECLARE_DYNAMIC(CMapDocStatus)
  42. public:
  43. CMapDocStatus(CWnd* pParent = NULL); // standard constructor
  44. virtual ~CMapDocStatus();
  45. // Dialog Data
  46. enum { IDD = IDD_MAPDOC_STATUS };
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. void UpdateMapList( bool RedoList = false );
  50. void SetControls( bool bDisable, char *pszMessage );
  51. bool m_bSelectAll;
  52. DECLARE_MESSAGE_MAP()
  53. public:
  54. virtual BOOL OnInitDialog();
  55. CListCtrl m_FileListCtrl;
  56. afx_msg void OnBnClickedCheckout();
  57. afx_msg void OnBnClickedAdd();
  58. CStatic m_StatusTextControl;
  59. CButton m_SyncControl;
  60. CButton m_AddControl;
  61. CButton m_CheckOutControl;
  62. afx_msg void OnBnClickedSync();
  63. CButton m_DoneControl;
  64. CButton m_RevertControl;
  65. afx_msg void OnBnClickedRevert();
  66. afx_msg void OnNMRclickFileList(NMHDR *pNMHDR, LRESULT *pResult);
  67. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  68. };
  69. #endif // __VERSION_CONTROL_DIALOG_H