#include <DlgVidMan.h>
Public Types | |
| enum | { IDD = IDD_VIDMAN } |
Public Member Functions | |
| void | Convert () |
| void | ApplyLanguage () |
| void | SaveSettings () |
| void | UpdateCommand (UINT nID, BOOL *pbEnabled, BOOL *pbChecked) |
| void | ApplyVolumeSettings () |
| void | Update () |
| CDlgVidMan (CWnd *pParent=NULL) | |
Public Attributes | |
| BOOL | m_bInFVDownloads |
| class CDownloads_VideoPreview * | m_parent |
| CSliderCtrl | m_wndVol |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| virtual BOOL | OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult) |
| void | UpdateMuteImage () |
| void | UpdateVolumePerc () |
| void | ApplyVolume () |
| void | UpdateEnabled () |
| void | CreateBars () |
| afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnPlay () |
| afx_msg void | OnPause () |
| afx_msg void | OnStop () |
| afx_msg void | OnMute () |
| afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
| afx_msg void | OnConvert () |
| afx_msg void | OnSwitchAuto () |
Protected Attributes | |
| CFont | m_fntBold |
| CBrush | m_brClrWindow |
| BOOL | m_bMute |
| CImageList | m_imgMute |
| CImageList | m_imgMan |
| CImageList | m_dimgMan |
| CToolBar | m_barMute |
| CToolBar | m_barMan |
Definition at line 15 of file DlgVidMan.h.
| anonymous enum |
| CDlgVidMan::CDlgVidMan | ( | CWnd * | pParent = NULL |
) |
| void CDlgVidMan::Convert | ( | ) |
Definition at line 412 of file DlgVidMan.cpp.
References IDC_CONVERT.
Referenced by CDownloads_VideoPreview::Convert().
| void CDlgVidMan::ApplyLanguage | ( | ) |
Definition at line 384 of file DlgVidMan.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC__DURATION, IDC__MEDIAINFO, IDC__SIZE, IDC__SIZEAVAIL, IDC__VOLUME, IDC_CONVERT, IDC_SWITCH_AUTO, L_CONVERT, L_DLGAVAILABLE, L_DLGDURATION, L_DLGSIZE, L_DLGVOLUME, L_MEDIAINFO, and L_SWITCH_TO_TAB_AUTO.
Referenced by CDownloads_VideoPreview::ApplyLanguage(), and OnInitDialog().
| void CDlgVidMan::SaveSettings | ( | ) |
Definition at line 322 of file DlgVidMan.cpp.
References _App, m_bMute, m_wndVol, fsAppSettings::MP_Mute(), and fsAppSettings::MP_Volume().
Referenced by CDownloads_VideoPreview::SaveState().
| void CDlgVidMan::UpdateCommand | ( | UINT | nID, | |
| BOOL * | pbEnabled, | |||
| BOOL * | pbChecked | |||
| ) |
Definition at line 288 of file DlgVidMan.cpp.
References BOOL, FALSE, CDownloads_VideoPreview::Get_ActiveDownload(), ID_DLD_VID_MUTE, ID_DLD_VID_PAUSE, ID_DLD_VID_PLAY, ID_DLD_VID_STOP, CDownloads_VideoPreview::IsMuteAvail(), CDownloads_VideoPreview::IsPauseAvail(), CDownloads_VideoPreview::IsPaused(), CDownloads_VideoPreview::IsPlaying(), m_bMute, m_parent, and NULL.
Referenced by CDownloads_VideoPreview::UpdateCommand().
| void CDlgVidMan::ApplyVolumeSettings | ( | ) |
Definition at line 273 of file DlgVidMan.cpp.
References ApplyVolume(), m_bMute, m_parent, and CDownloads_VideoPreview::Set_Volume().
Referenced by CDownloads_VideoPreview::Play().
| void CDlgVidMan::Update | ( | ) |
Definition at line 152 of file DlgVidMan.cpp.
References BOOL, BytesToXBytes(), FALSE, CDownloads_VideoPreview::Get_AvailFileSize(), CDownloads_VideoPreview::Get_FileName(), CDownloads_VideoPreview::Get_FileSize(), CDownloads_VideoPreview::GetDuration(), ID_DLD_VID_PAUSE, ID_DLD_VID_PLAY, IDC__DURATIONVAL, IDC__FILENAME, IDC__SIZEAVAILVAL, IDC__SIZEVAL, CDownloads_VideoPreview::IsPlaying(), m_barMan, m_parent, and UpdateEnabled().
Referenced by CDownloadsWnd::_Events(), CDownloads_VideoPreview::OnGraphMessage(), OnInitDialog(), OnPause(), OnPlay(), OnStop(), CDownloadsWnd::OnTimer(), CDownloads_VideoPreview::Pause(), CDownloads_VideoPreview::Set_ActiveDownload(), and CDownloads_VideoPreview::Stop().
| void CDlgVidMan::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
| BOOL CDlgVidMan::OnNotify | ( | WPARAM | wParam, | |
| LPARAM | lParam, | |||
| LRESULT * | pResult | |||
| ) | [protected, virtual] |
Definition at line 328 of file DlgVidMan.cpp.
References ID_DLD_VID_MUTE, ID_DLD_VID_PAUSE, ID_DLD_VID_PLAY, ID_DLD_VID_STOP, L_MUTE, L_PAUSE, L_PLAY, L_STOP, LS, m_barMan, m_barMute, and TRUE.
| void CDlgVidMan::UpdateMuteImage | ( | ) | [protected] |
Definition at line 316 of file DlgVidMan.cpp.
References ID_DLD_VID_MUTE, m_barMute, and m_bMute.
Referenced by OnHScroll(), OnInitDialog(), and OnMute().
| void CDlgVidMan::UpdateVolumePerc | ( | ) | [protected] |
Definition at line 281 of file DlgVidMan.cpp.
References IDC__VOLPERC, and m_wndVol.
Referenced by OnHScroll(), and OnInitDialog().
| void CDlgVidMan::ApplyVolume | ( | ) | [protected] |
Definition at line 268 of file DlgVidMan.cpp.
References m_parent, m_wndVol, and CDownloads_VideoPreview::Set_Volume().
Referenced by ApplyVolumeSettings(), OnHScroll(), and OnMute().
| void CDlgVidMan::UpdateEnabled | ( | ) | [protected] |
Definition at line 144 of file DlgVidMan.cpp.
References CDownloads_VideoPreview::Get_ActiveDownload(), IDC_CONVERT, CDownloads_VideoPreview::IsMuteAvail(), m_parent, m_wndVol, and NULL.
Referenced by Update().
| void CDlgVidMan::CreateBars | ( | ) | [protected] |
Definition at line 93 of file DlgVidMan.cpp.
References ID_DLD_VID_MUTE, ID_DLD_VID_PLAY, ID_DLD_VID_STOP, IDB_MUTE, IDB_VIDMAN, IDB_VIDMAN_D, IDC__MUTE, IDC__TOOL, m_barMan, m_barMute, m_dimgMan, m_imgMan, m_imgMute, and SBMP.
Referenced by OnInitDialog().
| HBRUSH CDlgVidMan::OnCtlColor | ( | CDC * | pDC, | |
| CWnd * | pWnd, | |||
| UINT | nCtlColor | |||
| ) | [protected] |
Definition at line 47 of file DlgVidMan.cpp.
References IDC__FILENAME, m_brClrWindow, and m_fntBold.
| BOOL CDlgVidMan::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 57 of file DlgVidMan.cpp.
References _App, ApplyLanguage(), CreateBars(), IDC_SWITCH_AUTO, m_bInFVDownloads, m_bMute, m_brClrWindow, m_fntBold, m_wndVol, fsAppSettings::MP_Mute(), fsAppSettings::MP_Volume(), TRUE, Update(), UpdateMuteImage(), UpdateVolumePerc(), and fsAppSettings::View_AutoSwitchToMediaPreview().
| void CDlgVidMan::OnPlay | ( | ) | [protected] |
Definition at line 205 of file DlgVidMan.cpp.
References CDownloads_VideoPreview::IsPlaying(), m_parent, CDownloads_VideoPreview::Pause(), CDownloads_VideoPreview::Play(), and Update().
| void CDlgVidMan::OnPause | ( | ) | [protected] |
Definition at line 215 of file DlgVidMan.cpp.
References m_parent, CDownloads_VideoPreview::Pause(), and Update().
| void CDlgVidMan::OnStop | ( | ) | [protected] |
Definition at line 221 of file DlgVidMan.cpp.
References m_parent, CDownloads_VideoPreview::Stop(), and Update().
| void CDlgVidMan::OnMute | ( | ) | [protected] |
Definition at line 227 of file DlgVidMan.cpp.
References ApplyVolume(), FALSE, m_bMute, m_parent, m_wndVol, CDownloads_VideoPreview::Set_Volume(), TRUE, and UpdateMuteImage().
Referenced by OnHScroll().
Definition at line 248 of file DlgVidMan.cpp.
References ApplyVolume(), FALSE, m_bMute, m_wndVol, OnMute(), UpdateMuteImage(), and UpdateVolumePerc().
| void CDlgVidMan::OnSize | ( | UINT | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 379 of file DlgVidMan.cpp.
| void CDlgVidMan::OnConvert | ( | ) | [protected] |
Definition at line 399 of file DlgVidMan.cpp.
References _AppMgr, _MediaConvertMgr, vmsMediaConvertMgr::ConvertMediaFile(), FALSE, CDownloads_VideoPreview::Get_ActiveDownload(), vmsFdmAppMgr::IsMediaFeaturesInstalled(), m_parent, MCM_OS_SHOW_OPTIONS_UI, NULL, and vmsFdmAppMgr::ShowInstallMediaFeaturesMessage().
| void CDlgVidMan::OnSwitchAuto | ( | ) | [protected] |
Definition at line 417 of file DlgVidMan.cpp.
References _App, IDC_SWITCH_AUTO, and fsAppSettings::View_AutoSwitchToMediaPreview().
Definition at line 19 of file DlgVidMan.h.
Referenced by CDlgVidMan(), OnInitDialog(), and CDownloads_VideoPreview::set_InFVDownloads().
Definition at line 29 of file DlgVidMan.h.
Referenced by ApplyVolume(), ApplyVolumeSettings(), CDownloads_VideoPreview::CDownloads_VideoPreview(), OnConvert(), OnMute(), OnPause(), OnPlay(), OnStop(), Update(), UpdateCommand(), and UpdateEnabled().
| CSliderCtrl CDlgVidMan::m_wndVol |
Definition at line 34 of file DlgVidMan.h.
Referenced by ApplyVolume(), DoDataExchange(), OnHScroll(), OnInitDialog(), OnMute(), SaveSettings(), UpdateEnabled(), and UpdateVolumePerc().
CFont CDlgVidMan::m_fntBold [protected] |
CBrush CDlgVidMan::m_brClrWindow [protected] |
BOOL CDlgVidMan::m_bMute [protected] |
Definition at line 50 of file DlgVidMan.h.
Referenced by ApplyVolumeSettings(), CDlgVidMan(), OnHScroll(), OnInitDialog(), OnMute(), SaveSettings(), UpdateCommand(), and UpdateMuteImage().
CImageList CDlgVidMan::m_imgMute [protected] |
CImageList CDlgVidMan::m_imgMan [protected] |
CImageList CDlgVidMan::m_dimgMan [protected] |
CToolBar CDlgVidMan::m_barMute [protected] |
Definition at line 61 of file DlgVidMan.h.
Referenced by CreateBars(), OnNotify(), and UpdateMuteImage().
CToolBar CDlgVidMan::m_barMan [protected] |
1.5.6