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.2 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef SCENEPREVIEWDLG_H
  7. #define SCENEPREVIEWDLG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class CChoreoScene;
  12. class CScenePreviewDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. // Note: the dialog now owns the scene and it'll delete it when it goes away.
  17. CScenePreviewDlg( CChoreoScene *pScene, const char *pSceneFilename, CWnd* pParent = NULL ); // standard constructor
  18. virtual ~CScenePreviewDlg();
  19. // Dialog Data
  20. //{{AFX_DATA(CSoundBrowser)
  21. DECLARE_MESSAGE_MAP()
  22. enum { IDD = IDD_SCENE_PREVIEW };
  23. protected:
  24. BOOL OnInitDialog();
  25. virtual LRESULT DefWindowProc( UINT message, WPARAM wParam, LPARAM lParam );
  26. virtual void OnCancel(void);
  27. private:
  28. static DWORD WINAPI StaticIdleThread( LPVOID pParameter );
  29. DWORD IdleThread();
  30. void OnIdle();
  31. void EndThread();
  32. private:
  33. CChoreoScene *m_pScene;
  34. HANDLE m_hExitThreadEvent;
  35. HANDLE m_hIdleEventHandledEvent;
  36. HANDLE m_hIdleThread;
  37. int m_iLastEventPlayed; // Last sound event we handled.
  38. double m_flStartTime; // When we started playing the scene.
  39. char m_SceneFilename[MAX_PATH];
  40. };
  41. #endif // SCENEPREVIEWDLG_H