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.

56 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef TEXTUREBAR_H
  7. #define TEXTUREBAR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "TextureBox.h"
  12. #include "IEditorTexture.h"
  13. #include "wndTex.h"
  14. #include "ControlBarIDs.h"
  15. #include "HammerBar.h"
  16. class IEditorTexture;
  17. class CTextureBar : public CHammerBar
  18. {
  19. public:
  20. CTextureBar() : CHammerBar() {}
  21. BOOL Create(CWnd *pParentWnd, int IDD = IDD_TEXTUREBAR, int iBarID = IDCB_TEXTUREBAR);
  22. void NotifyGraphicsChanged(void);
  23. void NotifyNewMaterial( IEditorTexture *pTexture );
  24. void SelectTexture(LPCSTR pszTextureName);
  25. protected:
  26. void UpdateTexture(void);
  27. IEditorTexture *m_pCurTex;
  28. CTextureBox m_TextureList;
  29. CComboBox m_TextureGroupList;
  30. wndTex m_TexturePic;
  31. afx_msg void UpdateControl(CCmdUI *);
  32. afx_msg void OnBrowse(void);
  33. afx_msg void OnChangeTextureGroup(void);
  34. afx_msg void OnReplace(void);
  35. afx_msg void OnUpdateTexname(void);
  36. afx_msg void OnWindowPosChanged(WINDOWPOS *pPos);
  37. virtual afx_msg void OnSelChangeTexture(void);
  38. DECLARE_MESSAGE_MAP()
  39. };
  40. #endif // TEXTUREBAR_H