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.

73 lines
1.7 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: A dialog that is invoked when a new visgroup is created.
  4. //
  5. //=============================================================================//
  6. #ifndef NEWVISGROUPDLG_H
  7. #define NEWVISGROUPDLG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "resource.h"
  12. #include "GroupList.h"
  13. class CNewVisGroupDlg : public CDialog
  14. {
  15. public:
  16. CNewVisGroupDlg(CString &str, CWnd *pParent = NULL);
  17. void GetName(CString &str);
  18. CVisGroup *GetPickedVisGroup(void);
  19. bool GetRemoveFromOtherGroups(void);
  20. bool GetHideObjectsOption(void);
  21. //{{AFX_DATA(CNewVisGroupDlg)
  22. enum { IDD = IDD_NEW_VISGROUP };
  23. //}}AFX_DATA
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CNewVisGroupDlg)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange *pDX);
  28. virtual BOOL OnInitDialog(void);
  29. //}}AFX_VIRTUAL
  30. protected:
  31. void UpdateGroupList(void);
  32. // Generated message map functions
  33. //{{AFX_MSG(CNewVisGroupDlg)
  34. virtual void OnOK();
  35. LRESULT OnSelChangeGroupList(WPARAM wParam, LPARAM lParam);
  36. void OnCreateNewVisGroup();
  37. void OnPlaceInExistingVisGroup();
  38. //}}AFX_MSG
  39. CGroupList m_cGroupList;
  40. CVisGroup *m_pPickedVisGroup;
  41. BOOL m_bRemoveFromOtherGroups;
  42. BOOL m_bHideObjects;
  43. CString m_strName;
  44. DECLARE_MESSAGE_MAP()
  45. };
  46. //-----------------------------------------------------------------------------
  47. // Purpose:
  48. //-----------------------------------------------------------------------------
  49. inline bool CNewVisGroupDlg::GetRemoveFromOtherGroups(void)
  50. {
  51. return m_bRemoveFromOtherGroups == TRUE;
  52. }
  53. inline bool CNewVisGroupDlg::GetHideObjectsOption()
  54. {
  55. return (m_bHideObjects != FALSE);
  56. }
  57. #endif // NEWVISGROUPDLG_H