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.

79 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef EDITGROUPS_H
  7. #define EDITGROUPS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "GroupList.h"
  12. #include "mapdoc.h"
  13. class CVisGroup;
  14. class CColorBox : public CStatic
  15. {
  16. public:
  17. void SetColor(COLORREF, BOOL);
  18. COLORREF GetColor() { return m_c; }
  19. afx_msg void OnPaint();
  20. private:
  21. COLORREF m_c;
  22. protected:
  23. DECLARE_MESSAGE_MAP()
  24. };
  25. class CEditGroups : public CDialog
  26. {
  27. // Construction
  28. public:
  29. CEditGroups(CWnd* pParent = NULL); // standard constructor
  30. // Dialog Data
  31. //{{AFX_DATA(CEditGroups)
  32. enum { IDD = IDD_GROUPS };
  33. CEdit m_cName;
  34. CGroupList m_cGroupList;
  35. //}}AFX_DATA
  36. CColorBox m_cColorBox;
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CEditGroups)
  40. public:
  41. virtual BOOL DestroyWindow();
  42. protected:
  43. virtual BOOL OnInitDialog();
  44. virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. protected:
  48. void UpdateGroupList();
  49. void UpdateControlsForVisGroup(CVisGroup *pVisGroup);
  50. // Generated message map functions
  51. //{{AFX_MSG(CEditGroups)
  52. afx_msg void OnColor();
  53. afx_msg void OnChangeName();
  54. afx_msg void OnNew();
  55. afx_msg void OnRemove();
  56. afx_msg LRESULT OnSelChangeGroupList(WPARAM wParam, LPARAM lParam);
  57. afx_msg void OnClose();
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. #endif // EDITGROUPS_H