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.

59 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CHOREOGLOBALEVENTWIDGET_H
  8. #define CHOREOGLOBALEVENTWIDGET_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "choreowidget.h"
  13. class CChoreoEvent;
  14. //-----------------------------------------------------------------------------
  15. // Purpose: For section start/end
  16. // FIXME: Finish this
  17. //-----------------------------------------------------------------------------
  18. class CChoreoGlobalEventWidget : public CChoreoWidget
  19. {
  20. public:
  21. typedef CChoreoWidget BaseClass;
  22. // Construction/destruction
  23. CChoreoGlobalEventWidget( CChoreoWidget *parent );
  24. virtual ~CChoreoGlobalEventWidget( void );
  25. // Create children
  26. virtual void Create( void );
  27. // Redo layout
  28. virtual void Layout( RECT& rc );
  29. // Screen refresh
  30. virtual void redraw(CChoreoWidgetDrawHelper& drawHelper);
  31. // Access underlying scene object
  32. CChoreoEvent *GetEvent( void );
  33. void SetEvent( CChoreoEvent *event );
  34. // Draw focus rect while mouse dragging is going on
  35. void DrawFocusRect( void );
  36. private:
  37. void DrawLabel( CChoreoWidgetDrawHelper& drawHelper, const Color& clr, int x, int y, bool right );
  38. // The underlying scene object
  39. CChoreoEvent *m_pEvent;
  40. // For updating focus rect
  41. bool m_bDragging;
  42. int m_xStart;
  43. RECT m_rcFocus;
  44. RECT m_rcOrig;
  45. HCURSOR m_hPrevCursor;
  46. };
  47. #endif // CHOREOGLOBALEVENTWIDGET_H