diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/editgroups.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/editgroups.h')
| -rw-r--r-- | hammer/editgroups.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/hammer/editgroups.h b/hammer/editgroups.h new file mode 100644 index 0000000..c84d6ce --- /dev/null +++ b/hammer/editgroups.h @@ -0,0 +1,79 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef EDITGROUPS_H +#define EDITGROUPS_H +#ifdef _WIN32 +#pragma once +#endif + +#include "GroupList.h" +#include "mapdoc.h" + + +class CVisGroup; + + +class CColorBox : public CStatic +{ + public: + void SetColor(COLORREF, BOOL); + COLORREF GetColor() { return m_c; } + + afx_msg void OnPaint(); + + private: + COLORREF m_c; + + protected: + DECLARE_MESSAGE_MAP() +}; + + +class CEditGroups : public CDialog +{ + // Construction + public: + CEditGroups(CWnd* pParent = NULL); // standard constructor + + // Dialog Data + //{{AFX_DATA(CEditGroups) + enum { IDD = IDD_GROUPS }; + CEdit m_cName; + CGroupList m_cGroupList; + //}}AFX_DATA + + CColorBox m_cColorBox; + + // Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CEditGroups) + public: + virtual BOOL DestroyWindow(); + protected: + virtual BOOL OnInitDialog(); + virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support + //}}AFX_VIRTUAL + + // Implementation + protected: + + void UpdateGroupList(); + void UpdateControlsForVisGroup(CVisGroup *pVisGroup); + + // Generated message map functions + //{{AFX_MSG(CEditGroups) + afx_msg void OnColor(); + afx_msg void OnChangeName(); + afx_msg void OnNew(); + afx_msg void OnRemove(); + afx_msg LRESULT OnSelChangeGroupList(WPARAM wParam, LPARAM lParam); + afx_msg void OnClose(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +#endif // EDITGROUPS_H |