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

CMediaListCtrl Class Reference

#include <CtrlMediaList.h>

List of all members.

Public Member Functions

 CMediaListCtrl ()
virtual ~CMediaListCtrl ()
BOOL Open (LPCTSTR pszFile)
BOOL Enqueue (LPCTSTR pszFile, BOOL bStart=TRUE)
int RecursiveEnqueue (LPCTSTR pszPath)
void Remove (LPCTSTR pszFile)
BOOL LoadTextList (LPCTSTR pszFile)
int GetCount ()
void Clear ()
int GetCurrent ()
void SetCurrent (int nCurrent)
int GetNext (BOOL bSet=TRUE)
void Reset (BOOL bNext=TRUE)
CString GetPath (int nItem)
virtual BOOL Create (CWnd *pParentWnd, UINT nID)

Protected Member Functions

int Add (LPCTSTR pszPath, int nItem=-1)
void Remove (int nItem)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDoubleClick (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMediaAdd ()
afx_msg void OnUpdateMediaRemove (CCmdUI *pCmdUI)
afx_msg void OnMediaRemove ()
afx_msg void OnUpdateMediaClear (CCmdUI *pCmdUI)
afx_msg void OnMediaClear ()
afx_msg void OnUpdateMediaSelect (CCmdUI *pCmdUI)
afx_msg void OnMediaSelect ()
afx_msg void OnUpdateMediaSave (CCmdUI *pCmdUI)
afx_msg void OnMediaSave ()
afx_msg void OnMediaOpen ()
afx_msg void OnUpdateMediaPrevious (CCmdUI *pCmdUI)
afx_msg void OnMediaPrevious ()
afx_msg void OnUpdateMediaNext (CCmdUI *pCmdUI)
afx_msg void OnMediaNext ()
afx_msg void OnKeyDown (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnBeginDrag (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnUpdateMediaRepeat (CCmdUI *pCmdUI)
afx_msg void OnMediaRepeat ()
afx_msg void OnUpdateMediaRandom (CCmdUI *pCmdUI)
afx_msg void OnMediaRandom ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnMediaAddFolder ()
afx_msg void OnCustomDraw (NMLVCUSTOMDRAW *pNotify, LRESULT *pResult)

Protected Attributes

CImageList * m_pDragImage
int m_nDragDrop
BOOL m_bCreateDragImage
CLibraryTipCtrl m_wndTip


Constructor & Destructor Documentation

CMediaListCtrl::CMediaListCtrl  ) 
 

Definition at line 83 of file CtrlMediaList.cpp.

References NULL.

CMediaListCtrl::~CMediaListCtrl  )  [virtual]
 

Definition at line 89 of file CtrlMediaList.cpp.


Member Function Documentation

int CMediaListCtrl::Add LPCTSTR  pszPath,
int  nItem = -1
[protected]
 

Definition at line 218 of file CtrlMediaList.cpp.

References CShellIcons::Get(), Library, LibraryMaps, CLibraryMaps::LookupFileByPath(), CLibrary::m_pSection, and ShellIcons.

Referenced by Enqueue(), and OnLButtonUp().

void CMediaListCtrl::Clear  ) 
 

Definition at line 267 of file CtrlMediaList.cpp.

References SetCurrent().

Referenced by OnMediaClear(), CMediaFrame::OnMediaClose(), and Open().

BOOL CMediaListCtrl::Create CWnd *  pParentWnd,
UINT  nID
[virtual]
 

Definition at line 96 of file CtrlMediaList.cpp.

Referenced by CMediaFrame::OnCreate().

BOOL CMediaListCtrl::Enqueue LPCTSTR  pszFile,
BOOL  bStart = TRUE
 

Definition at line 118 of file CtrlMediaList.cpp.

References _tcsistr(), Add(), GetNext(), LoadTextList(), and NULL.

Referenced by CMediaFrame::EnqueueFile(), LoadTextList(), OnMediaAdd(), Open(), and RecursiveEnqueue().

int CMediaListCtrl::GetCount  ) 
 

Definition at line 262 of file CtrlMediaList.cpp.

Referenced by CMediaFrame::OnMediaPlay(), and CMediaFrame::UpdateState().

int CMediaListCtrl::GetCurrent  ) 
 

Definition at line 273 of file CtrlMediaList.cpp.

References STATE_CURRENT.

Referenced by GetNext(), OnMediaPrevious(), CMediaFrame::OnNewCurrent(), and OnUpdateMediaPrevious().

int CMediaListCtrl::GetNext BOOL  bSet = TRUE  ) 
 

Definition at line 302 of file CtrlMediaList.cpp.

References GetCurrent(), CSettings::MediaPlayer, CSettings::sMediaPlayer::Random, SetCurrent(), Settings, and STATE_PLAYED.

Referenced by Enqueue(), OnMediaAdd(), OnMediaAddFolder(), OnMediaNext(), CMediaFrame::OnMediaPlay(), CMediaFrame::OnNewCurrent(), Open(), and CMediaFrame::UpdateState().

CString CMediaListCtrl::GetPath int  nItem  ) 
 

Definition at line 347 of file CtrlMediaList.cpp.

Referenced by CMediaFrame::OnNewCurrent(), and SetCurrent().

BOOL CMediaListCtrl::LoadTextList LPCTSTR  pszFile  ) 
 

Definition at line 183 of file CtrlMediaList.cpp.

References Enqueue(), CBuffer::EnsureBuffer(), CBuffer::m_nLength, CBuffer::m_pBuffer, and CBuffer::ReadLine().

Referenced by Enqueue().

void CMediaListCtrl::OnBeginDrag NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 440 of file CtrlMediaList.cpp.

References CLiveList::CreateDragImage(), CCoolTipCtrl::Hide(), m_bCreateDragImage, m_nDragDrop, m_pDragImage, m_wndTip, and NULL.

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

Definition at line 422 of file CtrlMediaList.cpp.

References ID_MEDIA_SELECT, Skin, and CSkin::TrackPopupMenu().

int CMediaListCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 357 of file CtrlMediaList.cpp.

References CCoolTipCtrl::Create(), CShellIcons::GetObject(), CSettings::Interface, m_wndTip, Settings, ShellIcons, and CSettings::sInterface::TipMedia.

void CMediaListCtrl::OnCustomDraw NMLVCUSTOMDRAW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 386 of file CtrlMediaList.cpp.

References m_bCreateDragImage, and STATE_CURRENT.

void CMediaListCtrl::OnDoubleClick NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 416 of file CtrlMediaList.cpp.

References OnMediaSelect().

void CMediaListCtrl::OnKeyDown NMHDR *  pNMHDR,
LRESULT *  pResult
[protected]
 

Definition at line 427 of file CtrlMediaList.cpp.

References CCoolTipCtrl::Hide(), ID_MEDIA_REMOVE, ID_MEDIA_SELECT, and m_wndTip.

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

Definition at line 470 of file CtrlMediaList.cpp.

References CCoolTipCtrl::Hide(), and m_wndTip.

void CMediaListCtrl::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 519 of file CtrlMediaList.cpp.

References Add(), m_nDragDrop, m_pDragImage, and NULL.

void CMediaListCtrl::OnMediaAdd  )  [protected]
 

Definition at line 583 of file CtrlMediaList.cpp.

References Enqueue(), GetNext(), IDS_MEDIA_FILTER, CSkin::LoadString(), NULL, OFN_ENABLESIZING, and Skin.

void CMediaListCtrl::OnMediaAddFolder  )  [protected]
 

Definition at line 621 of file CtrlMediaList.cpp.

References GetNext(), NULL, and RecursiveEnqueue().

void CMediaListCtrl::OnMediaClear  )  [protected]
 

Definition at line 669 of file CtrlMediaList.cpp.

References Clear().

void CMediaListCtrl::OnMediaNext  )  [protected]
 

Definition at line 738 of file CtrlMediaList.cpp.

References GetNext().

void CMediaListCtrl::OnMediaOpen  )  [protected]
 

Definition at line 674 of file CtrlMediaList.cpp.

References IDS_MEDIA_FILTER, CSkin::LoadString(), NULL, OFN_ENABLESIZING, Open(), and Skin.

void CMediaListCtrl::OnMediaPrevious  )  [protected]
 

Definition at line 727 of file CtrlMediaList.cpp.

References GetCurrent(), and SetCurrent().

void CMediaListCtrl::OnMediaRandom  )  [protected]
 

Definition at line 758 of file CtrlMediaList.cpp.

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

void CMediaListCtrl::OnMediaRemove  )  [protected]
 

Definition at line 656 of file CtrlMediaList.cpp.

References Remove().

void CMediaListCtrl::OnMediaRepeat  )  [protected]
 

Definition at line 748 of file CtrlMediaList.cpp.

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

void CMediaListCtrl::OnMediaSave  )  [protected]
 

Definition at line 690 of file CtrlMediaList.cpp.

References NULL, and OFN_ENABLESIZING.

void CMediaListCtrl::OnMediaSelect  )  [protected]
 

Definition at line 571 of file CtrlMediaList.cpp.

References SetCurrent().

Referenced by OnDoubleClick().

void CMediaListCtrl::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 482 of file CtrlMediaList.cpp.

References CCoolTipCtrl::Hide(), Library, CLibrary::LookupFile(), m_nDragDrop, m_pDragImage, m_wndTip, NULL, and CCoolTipCtrl::Show().

void CMediaListCtrl::OnRButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 476 of file CtrlMediaList.cpp.

References CCoolTipCtrl::Hide(), and m_wndTip.

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

Definition at line 373 of file CtrlMediaList.cpp.

void CMediaListCtrl::OnUpdateMediaClear CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 664 of file CtrlMediaList.cpp.

void CMediaListCtrl::OnUpdateMediaNext CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 733 of file CtrlMediaList.cpp.

void CMediaListCtrl::OnUpdateMediaPrevious CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 722 of file CtrlMediaList.cpp.

References GetCurrent().

void CMediaListCtrl::OnUpdateMediaRandom CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 753 of file CtrlMediaList.cpp.

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

void CMediaListCtrl::OnUpdateMediaRemove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 651 of file CtrlMediaList.cpp.

void CMediaListCtrl::OnUpdateMediaRepeat CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 743 of file CtrlMediaList.cpp.

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

void CMediaListCtrl::OnUpdateMediaSave CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 685 of file CtrlMediaList.cpp.

void CMediaListCtrl::OnUpdateMediaSelect CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 566 of file CtrlMediaList.cpp.

BOOL CMediaListCtrl::Open LPCTSTR  pszFile  ) 
 

Definition at line 105 of file CtrlMediaList.cpp.

References Clear(), Enqueue(), and GetNext().

Referenced by OnMediaOpen(), and CMediaFrame::PlayFile().

int CMediaListCtrl::RecursiveEnqueue LPCTSTR  pszPath  ) 
 

Definition at line 135 of file CtrlMediaList.cpp.

References Enqueue().

Referenced by OnMediaAddFolder().

void CMediaListCtrl::Remove LPCTSTR  pszFile  ) 
 

Definition at line 172 of file CtrlMediaList.cpp.

References Remove().

void CMediaListCtrl::Remove int  nItem  )  [protected]
 

Definition at line 252 of file CtrlMediaList.cpp.

References SetCurrent(), and STATE_CURRENT.

Referenced by OnMediaRemove(), and Remove().

void CMediaListCtrl::Reset BOOL  bNext = TRUE  ) 
 

Definition at line 340 of file CtrlMediaList.cpp.

References SetCurrent(), and STATE_PLAYED.

Referenced by CMediaFrame::OnMediaStop(), and CMediaFrame::OnNewCurrent().

void CMediaListCtrl::SetCurrent int  nCurrent  ) 
 

Definition at line 283 of file CtrlMediaList.cpp.

References GetPath(), MLN_NEWCURRENT, and STATE_CURRENT.

Referenced by Clear(), GetNext(), OnMediaPrevious(), OnMediaSelect(), CMediaFrame::OnNewCurrent(), Remove(), and Reset().


Member Data Documentation

BOOL CMediaListCtrl::m_bCreateDragImage [protected]
 

Definition at line 43 of file CtrlMediaList.h.

Referenced by OnBeginDrag(), and OnCustomDraw().

int CMediaListCtrl::m_nDragDrop [protected]
 

Definition at line 42 of file CtrlMediaList.h.

Referenced by OnBeginDrag(), OnLButtonUp(), and OnMouseMove().

CImageList* CMediaListCtrl::m_pDragImage [protected]
 

Definition at line 41 of file CtrlMediaList.h.

Referenced by OnBeginDrag(), OnLButtonUp(), and OnMouseMove().

CLibraryTipCtrl CMediaListCtrl::m_wndTip [protected]
 

Definition at line 45 of file CtrlMediaList.h.

Referenced by OnBeginDrag(), OnCreate(), OnKeyDown(), OnLButtonDown(), OnMouseMove(), and OnRButtonDown().


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