summaryrefslogtreecommitdiff
path: root/hammer/ScenePreviewDlg.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/ScenePreviewDlg.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/ScenePreviewDlg.h')
-rw-r--r--hammer/ScenePreviewDlg.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/hammer/ScenePreviewDlg.h b/hammer/ScenePreviewDlg.h
new file mode 100644
index 0000000..c93053c
--- /dev/null
+++ b/hammer/ScenePreviewDlg.h
@@ -0,0 +1,59 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef SCENEPREVIEWDLG_H
+#define SCENEPREVIEWDLG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+class CChoreoScene;
+
+
+class CScenePreviewDlg : public CDialog
+{
+// Construction
+public:
+ // Note: the dialog now owns the scene and it'll delete it when it goes away.
+ CScenePreviewDlg( CChoreoScene *pScene, const char *pSceneFilename, CWnd* pParent = NULL ); // standard constructor
+ virtual ~CScenePreviewDlg();
+
+// Dialog Data
+ //{{AFX_DATA(CSoundBrowser)
+ DECLARE_MESSAGE_MAP()
+ enum { IDD = IDD_SCENE_PREVIEW };
+
+
+protected:
+ BOOL OnInitDialog();
+ virtual LRESULT DefWindowProc( UINT message, WPARAM wParam, LPARAM lParam );
+ virtual void OnCancel(void);
+
+
+private:
+ static DWORD WINAPI StaticIdleThread( LPVOID pParameter );
+ DWORD IdleThread();
+
+ void OnIdle();
+ void EndThread();
+
+
+private:
+ CChoreoScene *m_pScene;
+
+ HANDLE m_hExitThreadEvent;
+ HANDLE m_hIdleEventHandledEvent;
+
+ HANDLE m_hIdleThread;
+
+ int m_iLastEventPlayed; // Last sound event we handled.
+ double m_flStartTime; // When we started playing the scene.
+ char m_SceneFilename[MAX_PATH];
+};
+
+
+#endif // SCENEPREVIEWDLG_H