Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CMediaFrame Class Reference

#include <CtrlMediaFrame.h>

List of all members.

Public Member Functions

 CMediaFrame ()
virtual ~CMediaFrame ()
void OnSkinChange ()
void OnUpdateCmdUI ()
BOOL PlayFile (LPCTSTR pszFile)
BOOL EnqueueFile (LPCTSTR pszFile)
BOOL IsPlaying ()
void OnFileDelete (LPCTSTR pszFile)
float GetPosition ()
float GetVolume ()
BOOL SeekTo (float nPosition)
BOOL SetVolume (float nVolume)
BOOL PaintStatusMicro (CDC &dc, CRect &rcBar)
void UpdateScreenSaverStatus (BOOL bWindowActive)
IMediaPlayerGetPlayer ()
MediaState GetState ()
virtual BOOL Create (CWnd *pParentWnd)
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Static Public Attributes

static CMediaFrameg_pMediaFrame = NULL

Protected Member Functions

void SetFullScreen (BOOL bFullScreen)
void PaintSplash (CDC &dc, CRect &rcBar)
void PaintListHeader (CDC &dc, CRect &rcBar)
void PaintStatus (CDC &dc, CRect &rcBar)
BOOL DoSizeList ()
BOOL Prepare ()
BOOL PrepareVis ()
BOOL OpenFile (LPCTSTR pszFile)
void Cleanup ()
void ZoomTo (MediaZoom nZoom)
void AspectTo (double nAspect)
void UpdateState ()
void DisableScreenSaver ()
void EnableScreenSaver ()
HRESULT PluginPlay (BSTR bsFileName)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnClose ()
afx_msg void OnUpdateMediaClose (CCmdUI *pCmdUI)
afx_msg void OnMediaClose ()
afx_msg void OnUpdateMediaPlay (CCmdUI *pCmdUI)
afx_msg void OnMediaPlay ()
afx_msg void OnUpdateMediaPause (CCmdUI *pCmdUI)
afx_msg void OnMediaPause ()
afx_msg void OnUpdateMediaStop (CCmdUI *pCmdUI)
afx_msg void OnMediaStop ()
afx_msg void OnMediaZoom ()
afx_msg void OnUpdateMediaSizeFill (CCmdUI *pCmdUI)
afx_msg void OnMediaSizeFill ()
afx_msg void OnUpdateMediaSizeDistort (CCmdUI *pCmdUI)
afx_msg void OnMediaSizeDistort ()
afx_msg void OnUpdateMediaSizeOne (CCmdUI *pCmdUI)
afx_msg void OnMediaSizeOne ()
afx_msg void OnUpdateMediaSizeTwo (CCmdUI *pCmdUI)
afx_msg void OnMediaSizeTwo ()
afx_msg void OnUpdateMediaSizeThree (CCmdUI *pCmdUI)
afx_msg void OnMediaSizeThree ()
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg void OnUpdateMediaAspectDefault (CCmdUI *pCmdUI)
afx_msg void OnMediaAspectDefault ()
afx_msg void OnUpdateMediaAspect43 (CCmdUI *pCmdUI)
afx_msg void OnMediaAspect43 ()
afx_msg void OnUpdateMediaAspect169 (CCmdUI *pCmdUI)
afx_msg void OnMediaAspect169 ()
afx_msg void OnUpdateMediaFullScreen (CCmdUI *pCmdUI)
afx_msg void OnMediaFullScreen ()
afx_msg void OnUpdateMediaPlaylist (CCmdUI *pCmdUI)
afx_msg void OnMediaPlaylist ()
afx_msg void OnMediaSettings ()
afx_msg void OnUpdateMediaSettings (CCmdUI *pCmdUI)
afx_msg void OnUpdateMediaVis (CCmdUI *pCmdUI)
afx_msg void OnMediaVis ()
afx_msg void OnUpdateMediaStatus (CCmdUI *pCmdUI)
afx_msg void OnMediaStatus ()
afx_msg void OnUpdateMediaMute (CCmdUI *pCmdUI)
afx_msg void OnMediaMute ()
afx_msg void OnNewCurrent (NMHDR *pNotify, LRESULT *pResult)
afx_msg LONG OnMediaKey (WPARAM wParam, LPARAM lParam)

Protected Attributes

IMediaPlayerm_pPlayer
MediaState m_nState
LONGLONG m_nLength
LONGLONG m_nPosition
BOOL m_bMute
BOOL m_bThumbPlay
BOOL m_bRepeat
BOOL m_bLastMedia
BOOL m_bLastNotPlayed
BOOL m_bEnqueue
BOOL m_bStopFlag
DWORD m_tLastPlay
CString m_sFile
CMetaList m_pMetadata
DWORD m_tMetadata
CMediaListCtrl m_wndList
CCoolBarCtrl m_wndListBar
CCoolBarCtrl m_wndToolBar
CSliderCtrl m_wndPosition
CSliderCtrl m_wndSpeed
CSliderCtrl m_wndVolume
BOOL m_bFullScreen
DWORD m_tBarTime
CPoint m_ptCursor
BOOL m_bListVisible
BOOL m_bListWasVisible
int m_nListSize
BOOL m_bStatusVisible
CRect m_rcVideo
CRect m_rcStatus
CBitmap m_bmLogo
CImageList m_pIcons
CFont m_pFontDefault
CFont m_pFontKey
CFont m_pFontValue
int * m_pScreenSaveValue
BOOL m_bScreenSaverEnabled


Constructor & Destructor Documentation

CMediaFrame::CMediaFrame  ) 
 

Definition at line 115 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::ListSize, CSettings::sMediaPlayer::ListVisible, CSettings::MediaPlayer, Settings, Shareaza::smsNull, and CSettings::sMediaPlayer::StatusVisible.

CMediaFrame::~CMediaFrame  )  [virtual]
 

Definition at line 139 of file CtrlMediaFrame.cpp.

References g_pMediaFrame, and NULL.


Member Function Documentation

void CMediaFrame::AspectTo double  nAspect  )  [protected]
 

Definition at line 1563 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::Aspect, m_pPlayer, CSettings::MediaPlayer, NULL, and Settings.

Referenced by OnMediaAspect169(), OnMediaAspect43(), and OnMediaAspectDefault().

void CMediaFrame::Cleanup  )  [protected]
 

Definition at line 1536 of file CtrlMediaFrame.cpp.

References CMetaList::Clear(), m_pMetadata, m_pPlayer, m_sFile, NULL, and UpdateState().

Referenced by OnDestroy(), OnMediaClose(), OnNewCurrent(), PluginPlay(), and UpdateState().

BOOL CMediaFrame::Create CWnd *  pParentWnd  )  [virtual]
 

Definition at line 147 of file CtrlMediaFrame.cpp.

References IDC_MEDIA_FRAME, and NULL.

Referenced by CMediaWnd::OnCreate().

void CMediaFrame::DisableScreenSaver  )  [protected]
 

Definition at line 1726 of file CtrlMediaFrame.cpp.

References dss_GetList, dss_ListCount, dss_SetList, m_bScreenSaverEnabled, m_pScreenSaveValue, and NULL.

Referenced by OnNewCurrent(), and UpdateScreenSaverStatus().

BOOL CMediaFrame::DoSizeList  )  [protected]
 

Definition at line 848 of file CtrlMediaFrame.cpp.

References m_nListSize, NULL, OnSize(), SIZE_INTERNAL, and SPLIT_SIZE.

Referenced by OnLButtonDown().

void CMediaFrame::EnableScreenSaver  )  [protected]
 

Definition at line 1748 of file CtrlMediaFrame.cpp.

References dss_ListCount, dss_SetList, m_bScreenSaverEnabled, m_pScreenSaveValue, and NULL.

Referenced by OnDestroy(), OnMediaPause(), OnMediaStop(), OnNewCurrent(), and UpdateScreenSaverStatus().

BOOL CMediaFrame::EnqueueFile LPCTSTR  pszFile  ) 
 

Definition at line 1282 of file CtrlMediaFrame.cpp.

References CMediaListCtrl::Enqueue(), m_bEnqueue, m_bLastMedia, m_bLastNotPlayed, and m_wndList.

Referenced by CMediaWnd::EnqueueFile(), and PlayFile().

IMediaPlayer* CMediaFrame::GetPlayer  )  [inline]
 

Definition at line 72 of file CtrlMediaFrame.h.

References m_pPlayer.

Referenced by CMediaVisDlg::OnSetup().

float CMediaFrame::GetPosition  ) 
 

Definition at line 1305 of file CtrlMediaFrame.cpp.

References m_nLength, m_nPosition, m_nState, NULL, and Shareaza::smsOpen.

Referenced by CRemoteWnd::PaintMedia().

MediaState CMediaFrame::GetState  )  [inline]
 

Definition at line 73 of file CtrlMediaFrame.h.

References m_nState, m_pPlayer, NULL, and Shareaza::smsNull.

Referenced by CRemoteWnd::PaintMedia().

float CMediaFrame::GetVolume  ) 
 

Definition at line 1332 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, and CSettings::sMediaPlayer::Volume.

BOOL CMediaFrame::IsPlaying  ) 
 

Definition at line 1292 of file CtrlMediaFrame.cpp.

References m_nState, m_pPlayer, NULL, and Shareaza::smsPlaying.

Referenced by CMediaWnd::IsPlaying(), and UpdateScreenSaverStatus().

void CMediaFrame::OnClose  )  [protected]
 

Definition at line 747 of file CtrlMediaFrame.cpp.

References SetFullScreen().

BOOL CMediaFrame::OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[virtual]
 

Definition at line 224 of file CtrlMediaFrame.cpp.

References m_wndList, m_wndListBar, and m_wndToolBar.

Referenced by CMediaWnd::OnCmdMsg().

void CMediaFrame::OnContextMenu CWnd *  pWnd,
CPoint  point
[protected]
 

Definition at line 708 of file CtrlMediaFrame.cpp.

References ID_MEDIA_PAUSE, ID_MEDIA_PLAY, m_nState, Skin, Shareaza::smsPlaying, and CSkin::TrackPopupMenu().

int CMediaFrame::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 154 of file CtrlMediaFrame.cpp.

References CCoolBarCtrl::Create(), CMediaListCtrl::Create(), IDB_MEDIA_STATES, IDC_MEDIA_PLAYLIST, IDC_MEDIA_POSITION, IDC_MEDIA_SPEED, IDC_MEDIA_VOLUME, CShareazaApp::m_bRTL, m_pIcons, m_wndList, m_wndListBar, m_wndPosition, m_wndSpeed, m_wndToolBar, m_wndVolume, NULL, theApp, and UpdateState().

void CMediaFrame::OnDestroy  )  [protected]
 

Definition at line 208 of file CtrlMediaFrame.cpp.

References Cleanup(), EnableScreenSaver(), CSettings::sMediaPlayer::ListSize, CSettings::sMediaPlayer::ListVisible, m_bListVisible, m_bScreenSaverEnabled, m_bStatusVisible, m_nListSize, CSettings::MediaPlayer, Settings, and CSettings::sMediaPlayer::StatusVisible.

void CMediaFrame::OnFileDelete LPCTSTR  pszFile  ) 
 

Definition at line 1297 of file CtrlMediaFrame.cpp.

References m_pPlayer, and m_sFile.

Referenced by CMediaWnd::OnFileDelete().

void CMediaFrame::OnHScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
[protected]
 

Definition at line 929 of file CtrlMediaFrame.cpp.

References m_bMute, m_bThumbPlay, m_pPlayer, m_wndPosition, m_wndSpeed, m_wndVolume, CSettings::MediaPlayer, NULL, Settings, Shareaza::smsNull, Shareaza::smsOpen, Shareaza::smsPlaying, TIME_FACTOR, UpdateState(), and CSettings::sMediaPlayer::Volume.

void CMediaFrame::OnLButtonDblClk UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 836 of file CtrlMediaFrame.cpp.

References m_nState, OnMediaFullScreen(), OnMediaPause(), OnMediaPlay(), Shareaza::smsPaused, and Shareaza::smsPlaying.

void CMediaFrame::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 790 of file CtrlMediaFrame.cpp.

References DoSizeList(), m_bFullScreen, m_bListVisible, CShareazaApp::m_bMenuWasVisible, m_nListSize, m_nState, OnMediaPause(), OnMediaPlay(), OnMediaStatus(), Shareaza::smsPaused, Shareaza::smsPlaying, SPLIT_SIZE, STATUS_HEIGHT, theApp, and TOOLBAR_HEIGHT.

void CMediaFrame::OnMediaAspect169  )  [protected]
 

Definition at line 1201 of file CtrlMediaFrame.cpp.

References AspectTo().

void CMediaFrame::OnMediaAspect43  )  [protected]
 

Definition at line 1190 of file CtrlMediaFrame.cpp.

References AspectTo().

void CMediaFrame::OnMediaAspectDefault  )  [protected]
 

Definition at line 1179 of file CtrlMediaFrame.cpp.

References AspectTo(), and Shareaza::smaDefault.

void CMediaFrame::OnMediaClose  )  [protected]
 

Definition at line 1047 of file CtrlMediaFrame.cpp.

References Cleanup(), CMediaListCtrl::Clear(), and m_wndList.

void CMediaFrame::OnMediaFullScreen  )  [protected]
 

Definition at line 1112 of file CtrlMediaFrame.cpp.

References m_bFullScreen, and SetFullScreen().

Referenced by OnLButtonDblClk().

LONG CMediaFrame::OnMediaKey WPARAM  wParam,
LPARAM  lParam
[protected]
 

Definition at line 903 of file CtrlMediaFrame.cpp.

References ID_MEDIA_NEXT, ID_MEDIA_PAUSE, ID_MEDIA_PLAY, ID_MEDIA_PREVIOUS, ID_MEDIA_STOP, m_nState, and Shareaza::smsPlaying.

void CMediaFrame::OnMediaMute  )  [protected]
 

Definition at line 1255 of file CtrlMediaFrame.cpp.

References m_bMute, m_pPlayer, CSettings::MediaPlayer, NULL, Settings, and CSettings::sMediaPlayer::Volume.

void CMediaFrame::OnMediaPause  )  [protected]
 

Definition at line 1087 of file CtrlMediaFrame.cpp.

References EnableScreenSaver(), m_bScreenSaverEnabled, m_pPlayer, and UpdateState().

Referenced by OnLButtonDblClk(), and OnLButtonDown().

void CMediaFrame::OnMediaPlay  )  [protected]
 

Definition at line 1062 of file CtrlMediaFrame.cpp.

References CMediaListCtrl::GetCount(), CMediaListCtrl::GetNext(), ID_MEDIA_OPEN, m_nState, m_pPlayer, m_wndList, NULL, Shareaza::smsOpen, and UpdateState().

Referenced by OnLButtonDblClk(), and OnLButtonDown().

void CMediaFrame::OnMediaPlaylist  )  [protected]
 

Definition at line 1211 of file CtrlMediaFrame.cpp.

References m_bListVisible, m_tBarTime, OnSize(), and SIZE_INTERNAL.

void CMediaFrame::OnMediaSettings  )  [protected]
 

Definition at line 1245 of file CtrlMediaFrame.cpp.

References CSettingsManagerDlg::Run().

void CMediaFrame::OnMediaSizeDistort  )  [protected]
 

Definition at line 1138 of file CtrlMediaFrame.cpp.

References Shareaza::smzDistort, and ZoomTo().

void CMediaFrame::OnMediaSizeFill  )  [protected]
 

Definition at line 1128 of file CtrlMediaFrame.cpp.

References Shareaza::smzFill, and ZoomTo().

void CMediaFrame::OnMediaSizeOne  )  [protected]
 

Definition at line 1148 of file CtrlMediaFrame.cpp.

References ZoomTo().

void CMediaFrame::OnMediaSizeThree  )  [protected]
 

Definition at line 1168 of file CtrlMediaFrame.cpp.

References ZoomTo().

void CMediaFrame::OnMediaSizeTwo  )  [protected]
 

Definition at line 1158 of file CtrlMediaFrame.cpp.

References ZoomTo().

void CMediaFrame::OnMediaStatus  )  [protected]
 

Definition at line 1223 of file CtrlMediaFrame.cpp.

References m_bStatusVisible, OnSize(), and SIZE_INTERNAL.

Referenced by OnLButtonDown().

void CMediaFrame::OnMediaStop  )  [protected]
 

Definition at line 1099 of file CtrlMediaFrame.cpp.

References EnableScreenSaver(), m_bStopFlag, m_pPlayer, m_wndList, and CMediaListCtrl::Reset().

void CMediaFrame::OnMediaVis  )  [protected]
 

Definition at line 1234 of file CtrlMediaFrame.cpp.

References PrepareVis().

void CMediaFrame::OnMediaZoom  )  [protected]
 

Definition at line 1117 of file CtrlMediaFrame.cpp.

References CSkin::GetMenu(), ID_MEDIA_ZOOM, m_wndToolBar, Skin, and CCoolBarCtrl::ThrowMenu().

void CMediaFrame::OnNewCurrent NMHDR *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 1625 of file CtrlMediaFrame.cpp.

References Cleanup(), DisableScreenSaver(), EnableScreenSaver(), CMediaListCtrl::GetCurrent(), CMediaListCtrl::GetNext(), CMediaListCtrl::GetPath(), m_bEnqueue, m_bLastMedia, m_bLastNotPlayed, m_bRepeat, m_bScreenSaverEnabled, m_bStopFlag, m_nState, m_pPlayer, m_wndList, CSettings::MediaPlayer, OpenFile(), CSettings::sMediaPlayer::Repeat, CMediaListCtrl::Reset(), CMediaListCtrl::SetCurrent(), Settings, Shareaza::smsPlaying, and UpdateState().

void CMediaFrame::OnPaint  )  [protected]
 

Definition at line 438 of file CtrlMediaFrame.cpp.

References HEADER_HEIGHT, IDR_LARGE_LOGO, CImageServices::LoadBitmap(), m_bListVisible, m_bmLogo, m_bStatusVisible, m_nListSize, m_pFontDefault, m_pFontKey, m_pFontValue, m_pPlayer, m_rcStatus, m_rcVideo, NULL, PaintListHeader(), PaintSplash(), PaintStatus(), RT_JPEG, and SPLIT_SIZE.

BOOL CMediaFrame::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Definition at line 752 of file CtrlMediaFrame.cpp.

References m_bFullScreen, m_bListVisible, CShareazaApp::m_bRTL, m_nListSize, m_tBarTime, NULL, SPLIT_SIZE, theApp, TOOLBAR_ANIMATE, and TOOLBAR_STICK.

void CMediaFrame::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 348 of file CtrlMediaFrame.cpp.

References HEADER_HEIGHT, m_bFullScreen, m_bListVisible, m_bStatusVisible, m_nListSize, m_pPlayer, m_rcStatus, m_rcVideo, m_tBarTime, m_wndList, m_wndListBar, m_wndToolBar, NULL, SIZE_BARSLIDE, SIZE_INTERNAL, SPLIT_SIZE, STATUS_HEIGHT, TOOLBAR_ANIMATE, TOOLBAR_HEIGHT, and TOOLBAR_STICK.

Referenced by DoSizeList(), OnMediaPlaylist(), OnMediaStatus(), OnTimer(), Prepare(), and SetFullScreen().

void CMediaFrame::OnSkinChange  ) 
 

Definition at line 281 of file CtrlMediaFrame.cpp.

References CSkin::CreateToolBar(), CCoolBarCtrl::GetID(), IDC_MEDIA_POSITION, IDC_MEDIA_SPEED, IDC_MEDIA_VOLUME, m_wndListBar, m_wndToolBar, and Skin.

Referenced by CMediaWnd::OnSkinChange().

void CMediaFrame::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 714 of file CtrlMediaFrame.cpp.

References m_bFullScreen, m_bListVisible, m_pMetadata, m_ptCursor, m_tBarTime, m_tMetadata, META_DELAY, NULL, OnSize(), CMetaList::Shuffle(), SIZE_BARSLIDE, and UpdateState().

Referenced by SeekTo(), and SetVolume().

void CMediaFrame::OnUpdateCmdUI  ) 
 

Definition at line 291 of file CtrlMediaFrame.cpp.

References m_wndListBar, m_wndToolBar, and CCoolBarCtrl::OnUpdateCmdUI().

Referenced by CMediaWnd::OnIdleUpdateCmdUI().

void CMediaFrame::OnUpdateMediaAspect169 CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1195 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::Aspect, CSettings::MediaPlayer, Settings, Shareaza::smzDistort, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaAspect43 CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1184 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::Aspect, CSettings::MediaPlayer, Settings, Shareaza::smzDistort, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaAspectDefault CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1173 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::Aspect, CSettings::MediaPlayer, Settings, Shareaza::smaDefault, Shareaza::smzDistort, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaClose CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1042 of file CtrlMediaFrame.cpp.

References m_wndList.

void CMediaFrame::OnUpdateMediaFullScreen CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1107 of file CtrlMediaFrame.cpp.

References m_bFullScreen.

void CMediaFrame::OnUpdateMediaMute CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1250 of file CtrlMediaFrame.cpp.

References m_bMute.

void CMediaFrame::OnUpdateMediaPause CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1078 of file CtrlMediaFrame.cpp.

References CCoolBarItem::FromCmdUI(), m_bThumbPlay, m_nState, Shareaza::smsPaused, and Shareaza::smsPlaying.

void CMediaFrame::OnUpdateMediaPlay CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1053 of file CtrlMediaFrame.cpp.

References CCoolBarItem::FromCmdUI(), m_bThumbPlay, m_nState, Shareaza::smsPaused, and Shareaza::smsPlaying.

void CMediaFrame::OnUpdateMediaPlaylist CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1206 of file CtrlMediaFrame.cpp.

References m_bListVisible.

void CMediaFrame::OnUpdateMediaSettings CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1240 of file CtrlMediaFrame.cpp.

References m_bFullScreen.

void CMediaFrame::OnUpdateMediaSizeDistort CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1133 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, Shareaza::smzDistort, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaSizeFill CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1123 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, Shareaza::smzFill, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaSizeOne CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1143 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaSizeThree CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1163 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaSizeTwo CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1153 of file CtrlMediaFrame.cpp.

References CSettings::MediaPlayer, Settings, and CSettings::sMediaPlayer::Zoom.

void CMediaFrame::OnUpdateMediaStatus CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1218 of file CtrlMediaFrame.cpp.

References m_bStatusVisible.

void CMediaFrame::OnUpdateMediaStop CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1094 of file CtrlMediaFrame.cpp.

References m_nState, and Shareaza::smsOpen.

void CMediaFrame::OnUpdateMediaVis CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1229 of file CtrlMediaFrame.cpp.

References m_bFullScreen.

BOOL CMediaFrame::OpenFile LPCTSTR  pszFile  )  [protected]
 

Definition at line 1444 of file CtrlMediaFrame.cpp.

References CMetaList::Add(), CMetaList::Clean(), CMetaList::Clear(), CMetaList::Combine(), CMetaList::Find(), IDS_MEDIA_LOAD_FAIL, IDS_MEDIA_LOAD_FAIL_HELP, IDS_MEDIA_PARTIAL_RENDER, Library, LibraryMaps, LoadString(), CLibraryMaps::LookupFileByPath(), m_pMetadata, m_pPlayer, CLibrary::m_pSection, m_sFile, CMetaItem::m_sKey, CMetaItem::m_sValue, m_tMetadata, NULL, PluginPlay(), Prepare(), CMetaList::Remove(), CMetaList::Setup(), and UpdateState().

Referenced by OnNewCurrent().

void CMediaFrame::PaintListHeader CDC &  dc,
CRect &  rcBar
[protected]
 

Definition at line 541 of file CtrlMediaFrame.cpp.

References IDS_MEDIA_PLAYLIST, LoadString(), and NULL.

Referenced by OnPaint().

void CMediaFrame::PaintSplash CDC &  dc,
CRect &  rcBar
[protected]
 

Definition at line 502 of file CtrlMediaFrame.cpp.

References IDS_MEDIA_TITLE, LoadString(), m_bmLogo, m_rcVideo, and NULL.

Referenced by OnPaint().

void CMediaFrame::PaintStatus CDC &  dc,
CRect &  rcBar
[protected]
 

Definition at line 554 of file CtrlMediaFrame.cpp.

References CMetaList::GetFirst(), IDS_GENERAL_OF, IDS_MEDIA_EMPTY, LoadString(), CShareazaApp::m_bRTL, m_nLength, m_nPosition, m_nState, m_pFontDefault, m_pFontKey, m_pFontValue, m_pIcons, m_pMetadata, m_sFile, NULL, ONE_SECOND, Shareaza::smsOpen, Shareaza::smsPaused, Shareaza::smsPlaying, and theApp.

Referenced by OnPaint().

BOOL CMediaFrame::PaintStatusMicro CDC &  dc,
CRect &  rcBar
 

Definition at line 641 of file CtrlMediaFrame.cpp.

References CoolInterface, CCoolInterface::GetBuffer(), CMetaList::GetFirst(), IDS_GENERAL_OF, LoadString(), CShareazaApp::m_bRTL, m_nLength, m_nPosition, m_nState, m_pMetadata, m_sFile, ONE_SECOND, Shareaza::smsOpen, and theApp.

Referenced by CRemoteWnd::PaintMedia().

BOOL CMediaFrame::PlayFile LPCTSTR  pszFile  ) 
 

Definition at line 1264 of file CtrlMediaFrame.cpp.

References EnqueueFile(), m_tLastPlay, m_wndList, and CMediaListCtrl::Open().

Referenced by CMediaWnd::PlayFile().

HRESULT CMediaFrame::PluginPlay BSTR  bsFileName  )  [protected]
 

Definition at line 1519 of file CtrlMediaFrame.cpp.

References Cleanup(), m_pPlayer, CShareazaApp::Message(), MSG_ERROR, and theApp.

Referenced by OpenFile().

BOOL CMediaFrame::Prepare  )  [protected]
 

Definition at line 1348 of file CtrlMediaFrame.cpp.

References CSettings::sMediaPlayer::Aspect, IDS_MEDIA_PLUGIN_CREATE, CSkin::LoadString(), CPlugins::LookupCLSID(), m_bmLogo, m_bMute, CShareazaApp::m_bRTL, m_bThumbPlay, m_pPlayer, CSettings::MediaPlayer, NULL, OnSize(), Plugins, PrepareVis(), Settings, SIZE_INTERNAL, Skin, theApp, UpdateState(), CSettings::sMediaPlayer::Volume, and CSettings::sMediaPlayer::Zoom.

Referenced by OpenFile().

BOOL CMediaFrame::PrepareVis  )  [protected]
 

Definition at line 1396 of file CtrlMediaFrame.cpp.

References GUIDX::Decode(), CPlugins::LookupEnable(), m_pPlayer, CSettings::MediaPlayer, NULL, Plugins, Settings, CSettings::sMediaPlayer::VisCLSID, CSettings::sMediaPlayer::VisPath, and CSettings::sMediaPlayer::VisSize.

Referenced by OnMediaVis(), and Prepare().

BOOL CMediaFrame::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 242 of file CtrlMediaFrame.cpp.

References ID_MEDIA_NEXT, ID_MEDIA_PREVIOUS, m_bFullScreen, m_wndList, and SetFullScreen().

Referenced by CMediaWnd::PreTranslateMessage().

BOOL CMediaFrame::SeekTo float  nPosition  ) 
 

Definition at line 1317 of file CtrlMediaFrame.cpp.

References m_nLength, m_nPosition, m_nState, m_pPlayer, NULL, OnTimer(), and Shareaza::smsPaused.

Referenced by CRemoteWnd::TrackSeek().

void CMediaFrame::SetFullScreen BOOL  bFullScreen  )  [protected]
 

Definition at line 297 of file CtrlMediaFrame.cpp.

References m_bFullScreen, m_bListVisible, m_bListWasVisible, m_tBarTime, NULL, OnSize(), SIZE_INTERNAL, and theApp.

Referenced by OnClose(), OnMediaFullScreen(), and PreTranslateMessage().

BOOL CMediaFrame::SetVolume float  nVolume  ) 
 

Definition at line 1337 of file CtrlMediaFrame.cpp.

References m_bMute, m_pPlayer, CSettings::MediaPlayer, NULL, OnTimer(), Settings, and CSettings::sMediaPlayer::Volume.

Referenced by CRemoteWnd::TrackVol().

void CMediaFrame::UpdateScreenSaverStatus BOOL  bWindowActive  ) 
 

Definition at line 1764 of file CtrlMediaFrame.cpp.

References DisableScreenSaver(), EnableScreenSaver(), IsPlaying(), and m_bScreenSaverEnabled.

Referenced by CMediaWnd::OnNcActivate().

void CMediaFrame::UpdateState  )  [protected]
 

Definition at line 1571 of file CtrlMediaFrame.cpp.

References Cleanup(), CMediaListCtrl::GetCount(), CMediaListCtrl::GetNext(), m_bMute, m_bStatusVisible, m_nLength, m_nPosition, m_nState, m_pPlayer, m_rcStatus, m_wndList, m_wndPosition, m_wndSpeed, m_wndVolume, CSettings::MediaPlayer, Settings, Shareaza::smsNull, Shareaza::smsOpen, Shareaza::smsPlaying, TIME_FACTOR, and CSettings::sMediaPlayer::Volume.

Referenced by Cleanup(), OnCreate(), OnHScroll(), OnMediaPause(), OnMediaPlay(), OnNewCurrent(), OnTimer(), OpenFile(), and Prepare().

void CMediaFrame::ZoomTo MediaZoom  nZoom  )  [protected]
 

Definition at line 1555 of file CtrlMediaFrame.cpp.

References m_pPlayer, CSettings::MediaPlayer, NULL, Settings, and CSettings::sMediaPlayer::Zoom.

Referenced by OnMediaSizeDistort(), OnMediaSizeFill(), OnMediaSizeOne(), OnMediaSizeThree(), and OnMediaSizeTwo().


Member Data Documentation

CMediaFrame * CMediaFrame::g_pMediaFrame = NULL [static]
 

Definition at line 109 of file CtrlMediaFrame.cpp.

Referenced by CMainWnd::OnCmdMsg(), CMainWnd::OnMediaCommand(), CRemoteWnd::OnSetCursor(), CMainWnd::OnUpdateMediaCommand(), CRemoteWnd::PaintMedia(), CRemoteWnd::TrackSeek(), CRemoteWnd::TrackVol(), and ~CMediaFrame().

BOOL CMediaFrame::m_bEnqueue [protected]
 

Definition at line 86 of file CtrlMediaFrame.h.

Referenced by EnqueueFile(), and OnNewCurrent().

BOOL CMediaFrame::m_bFullScreen [protected]
 

Definition at line 101 of file CtrlMediaFrame.h.

Referenced by OnLButtonDown(), OnMediaFullScreen(), OnSetCursor(), OnSize(), OnTimer(), OnUpdateMediaFullScreen(), OnUpdateMediaSettings(), OnUpdateMediaVis(), PreTranslateMessage(), and SetFullScreen().

BOOL CMediaFrame::m_bLastMedia [protected]
 

Definition at line 84 of file CtrlMediaFrame.h.

Referenced by EnqueueFile(), and OnNewCurrent().

BOOL CMediaFrame::m_bLastNotPlayed [protected]
 

Definition at line 85 of file CtrlMediaFrame.h.

Referenced by EnqueueFile(), and OnNewCurrent().

BOOL CMediaFrame::m_bListVisible [protected]
 

Definition at line 104 of file CtrlMediaFrame.h.

Referenced by OnDestroy(), OnLButtonDown(), OnMediaPlaylist(), OnPaint(), OnSetCursor(), OnSize(), OnTimer(), OnUpdateMediaPlaylist(), and SetFullScreen().

BOOL CMediaFrame::m_bListWasVisible [protected]
 

Definition at line 105 of file CtrlMediaFrame.h.

Referenced by SetFullScreen().

CBitmap CMediaFrame::m_bmLogo [protected]
 

Definition at line 111 of file CtrlMediaFrame.h.

Referenced by OnPaint(), PaintSplash(), and Prepare().

BOOL CMediaFrame::m_bMute [protected]
 

Definition at line 81 of file CtrlMediaFrame.h.

Referenced by OnHScroll(), OnMediaMute(), OnUpdateMediaMute(), Prepare(), SetVolume(), and UpdateState().

BOOL CMediaFrame::m_bRepeat [protected]
 

Definition at line 83 of file CtrlMediaFrame.h.

Referenced by OnNewCurrent().

BOOL CMediaFrame::m_bScreenSaverEnabled [protected]
 

Definition at line 118 of file CtrlMediaFrame.h.

Referenced by DisableScreenSaver(), EnableScreenSaver(), OnDestroy(), OnMediaPause(), OnNewCurrent(), and UpdateScreenSaverStatus().

BOOL CMediaFrame::m_bStatusVisible [protected]
 

Definition at line 107 of file CtrlMediaFrame.h.

Referenced by OnDestroy(), OnMediaStatus(), OnPaint(), OnSize(), OnUpdateMediaStatus(), and UpdateState().

BOOL CMediaFrame::m_bStopFlag [protected]
 

Definition at line 87 of file CtrlMediaFrame.h.

Referenced by OnMediaStop(), and OnNewCurrent().

BOOL CMediaFrame::m_bThumbPlay [protected]
 

Definition at line 82 of file CtrlMediaFrame.h.

Referenced by OnHScroll(), OnUpdateMediaPause(), OnUpdateMediaPlay(), and Prepare().

LONGLONG CMediaFrame::m_nLength [protected]
 

Definition at line 79 of file CtrlMediaFrame.h.

Referenced by GetPosition(), PaintStatus(), PaintStatusMicro(), SeekTo(), and UpdateState().

int CMediaFrame::m_nListSize [protected]
 

Definition at line 106 of file CtrlMediaFrame.h.

Referenced by DoSizeList(), OnDestroy(), OnLButtonDown(), OnPaint(), OnSetCursor(), and OnSize().

LONGLONG CMediaFrame::m_nPosition [protected]
 

Definition at line 80 of file CtrlMediaFrame.h.

Referenced by GetPosition(), PaintStatus(), PaintStatusMicro(), SeekTo(), and UpdateState().

MediaState CMediaFrame::m_nState [protected]
 

Definition at line 78 of file CtrlMediaFrame.h.

Referenced by GetPosition(), GetState(), IsPlaying(), OnContextMenu(), OnLButtonDblClk(), OnLButtonDown(), OnMediaKey(), OnMediaPlay(), OnNewCurrent(), OnUpdateMediaPause(), OnUpdateMediaPlay(), OnUpdateMediaStop(), PaintStatus(), PaintStatusMicro(), SeekTo(), and UpdateState().

CFont CMediaFrame::m_pFontDefault [protected]
 

Definition at line 113 of file CtrlMediaFrame.h.

Referenced by OnPaint(), and PaintStatus().

CFont CMediaFrame::m_pFontKey [protected]
 

Definition at line 114 of file CtrlMediaFrame.h.

Referenced by OnPaint(), and PaintStatus().

CFont CMediaFrame::m_pFontValue [protected]
 

Definition at line 115 of file CtrlMediaFrame.h.

Referenced by OnPaint(), and PaintStatus().

CImageList CMediaFrame::m_pIcons [protected]
 

Definition at line 112 of file CtrlMediaFrame.h.

Referenced by OnCreate(), and PaintStatus().

CMetaList CMediaFrame::m_pMetadata [protected]
 

Definition at line 91 of file CtrlMediaFrame.h.

Referenced by Cleanup(), OnTimer(), OpenFile(), PaintStatus(), and PaintStatusMicro().

IMediaPlayer* CMediaFrame::m_pPlayer [protected]
 

Definition at line 77 of file CtrlMediaFrame.h.

Referenced by AspectTo(), Cleanup(), GetPlayer(), GetState(), IsPlaying(), OnFileDelete(), OnHScroll(), OnMediaMute(), OnMediaPause(), OnMediaPlay(), OnMediaStop(), OnNewCurrent(), OnPaint(), OnSize(), OpenFile(), PluginPlay(), Prepare(), PrepareVis(), SeekTo(), SetVolume(), UpdateState(), and ZoomTo().

int* CMediaFrame::m_pScreenSaveValue [protected]
 

Definition at line 117 of file CtrlMediaFrame.h.

Referenced by DisableScreenSaver(), and EnableScreenSaver().

CPoint CMediaFrame::m_ptCursor [protected]
 

Definition at line 103 of file CtrlMediaFrame.h.

Referenced by OnTimer().

CRect CMediaFrame::m_rcStatus [protected]
 

Definition at line 110 of file CtrlMediaFrame.h.

Referenced by OnPaint(), OnSize(), and UpdateState().

CRect CMediaFrame::m_rcVideo [protected]
 

Definition at line 109 of file CtrlMediaFrame.h.

Referenced by OnPaint(), OnSize(), and PaintSplash().

CString CMediaFrame::m_sFile [protected]
 

Definition at line 90 of file CtrlMediaFrame.h.

Referenced by Cleanup(), OnFileDelete(), OpenFile(), PaintStatus(), and PaintStatusMicro().

DWORD CMediaFrame::m_tBarTime [protected]
 

Definition at line 102 of file CtrlMediaFrame.h.

Referenced by OnMediaPlaylist(), OnSetCursor(), OnSize(), OnTimer(), and SetFullScreen().

DWORD CMediaFrame::m_tLastPlay [protected]
 

Definition at line 88 of file CtrlMediaFrame.h.

Referenced by PlayFile().

DWORD CMediaFrame::m_tMetadata [protected]
 

Definition at line 92 of file CtrlMediaFrame.h.

Referenced by OnTimer(), and OpenFile().

CMediaListCtrl CMediaFrame::m_wndList [protected]
 

Definition at line 94 of file CtrlMediaFrame.h.

Referenced by EnqueueFile(), OnCmdMsg(), OnCreate(), OnMediaClose(), OnMediaPlay(), OnMediaStop(), OnNewCurrent(), OnSize(), OnUpdateMediaClose(), PlayFile(), PreTranslateMessage(), and UpdateState().

CCoolBarCtrl CMediaFrame::m_wndListBar [protected]
 

Definition at line 95 of file CtrlMediaFrame.h.

Referenced by OnCmdMsg(), OnCreate(), OnSize(), OnSkinChange(), and OnUpdateCmdUI().

CSliderCtrl CMediaFrame::m_wndPosition [protected]
 

Definition at line 97 of file CtrlMediaFrame.h.

Referenced by OnCreate(), OnHScroll(), and UpdateState().

CSliderCtrl CMediaFrame::m_wndSpeed [protected]
 

Definition at line 98 of file CtrlMediaFrame.h.

Referenced by OnCreate(), OnHScroll(), and UpdateState().

CCoolBarCtrl CMediaFrame::m_wndToolBar [protected]
 

Definition at line 96 of file CtrlMediaFrame.h.

Referenced by OnCmdMsg(), OnCreate(), OnMediaZoom(), OnSize(), OnSkinChange(), and OnUpdateCmdUI().

CSliderCtrl CMediaFrame::m_wndVolume [protected]
 

Definition at line 99 of file CtrlMediaFrame.h.

Referenced by OnCreate(), OnHScroll(), and UpdateState().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:09 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2