Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/PPageFileMediaInfo.h')
-rw-r--r--src/mpc-hc/PPageFileMediaInfo.h34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/mpc-hc/PPageFileMediaInfo.h b/src/mpc-hc/PPageFileMediaInfo.h
index d9482c8b5..511e591b0 100644
--- a/src/mpc-hc/PPageFileMediaInfo.h
+++ b/src/mpc-hc/PPageFileMediaInfo.h
@@ -1,5 +1,5 @@
/*
- * (C) 2009-2013 see Authors.txt
+ * (C) 2009-2014 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -20,35 +20,51 @@
#pragma once
+#include <future>
+#include "mpc-hc_config.h"
+
// CPPageFileMediaInfo dialog
class CPPageFileMediaInfo : public CPropertyPage
{
DECLARE_DYNAMIC(CPPageFileMediaInfo)
+private:
+ CEdit m_mediainfo;
+ CFont m_font;
+
+ CString m_fn, m_path;
+ bool m_bSyncAnalysis;
+ std::shared_future<CString> m_futureMIText;
+ std::thread m_threadSetText;
+
public:
- CPPageFileMediaInfo(CString path, IFileSourceFilter* pFSF);
+ CPPageFileMediaInfo(CString path, IFileSourceFilter* pFSF, IDvdInfo2* pDVDI, CMainFrame* pMainFrame);
virtual ~CPPageFileMediaInfo();
// Dialog Data
enum { IDD = IDD_FILEMEDIAINFO };
- CEdit m_mediainfo;
- CString m_fn, m_path;
- CFont* m_pCFont;
- CString MI_Text;
-
#if !USE_STATIC_MEDIAINFO
static bool HasMediaInfo();
#endif
+
+ void OnSaveAs();
+
protected:
+ enum {
+ WM_MEDIAINFO_READY = WM_APP + 1
+ };
+
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
-public:
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
+ afx_msg void OnDestroy();
+ afx_msg void OnMediaInfoReady();
- bool HasInfo() const { return !MI_Text.IsEmpty(); };
+ bool OnKeyDownInEdit(MSG* pMsg);
};