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

CLibraryAlbumTrack Class Reference

#include <CtrlLibraryAlbumView.h>

List of all members.

Public Member Functions

 CLibraryAlbumTrack (CLibraryFile *pFile)
virtual ~CLibraryAlbumTrack ()
BOOL Update (CLibraryFile *pFile)
void Paint (CLibraryAlbumView *pView, CDC *pDC, const CRect &rcBlock, int nCount)
BOOL HitTestRating (const CRect &rcBlock, const CPoint &point)
BOOL LockRating ()

Public Attributes

DWORD m_nIndex
DWORD m_nCookie
BOOL m_bShared
BOOL m_bSelected
int m_nShell
int m_nTrack
CString m_sTrack
CString m_sTitle
CString m_sArtist
CString m_sAlbum
int m_nLength
CString m_sLength
int m_nBitrate
CString m_sBitrate
int m_nRating
BOOL m_bComments
int m_nSetRating

Protected Member Functions

void PaintText (CDC *pDC, const CRect &rcTrack, int nFrom, int nTo, const CString *pstr, BOOL bCenter=FALSE)


Constructor & Destructor Documentation

CLibraryAlbumTrack::CLibraryAlbumTrack CLibraryFile pFile  ) 
 

Definition at line 936 of file CtrlLibraryAlbumView.cpp.

References m_bSelected, m_nCookie, CLibraryFile::m_nIndex, m_nIndex, CLibraryFile::m_nUpdateCookie, and Update().

CLibraryAlbumTrack::~CLibraryAlbumTrack  )  [virtual]
 

Definition at line 945 of file CtrlLibraryAlbumView.cpp.


Member Function Documentation

BOOL CLibraryAlbumTrack::HitTestRating const CRect &  rcBlock,
const CPoint &  point
 

Definition at line 1188 of file CtrlLibraryAlbumView.cpp.

References m_nSetRating.

Referenced by CLibraryAlbumView::OnLButtonDown().

BOOL CLibraryAlbumTrack::LockRating  ) 
 

Definition at line 1211 of file CtrlLibraryAlbumView.cpp.

References CFilePropertiesSheet::Add(), CFilePropertiesSheet::DoModal(), Library, CLibrary::LookupFile(), m_nIndex, m_nRating, CLibraryFile::m_nRating, m_nSetRating, CLibrary::m_pSection, NULL, CLibraryFile::SaveMetadata(), and CLibrary::Update().

Referenced by CLibraryAlbumView::OnLButtonDown().

void CLibraryAlbumTrack::Paint CLibraryAlbumView pView,
CDC *  pDC,
const CRect &  rcBlock,
int  nCount
 

Definition at line 1037 of file CtrlLibraryAlbumView.cpp.

References CoolInterface, CShellIcons::Draw(), m_bComments, m_bSelected, CCoolInterface::m_crHighlight, CCoolInterface::m_crHiText, CLibraryAlbumView::m_crRows, CCoolInterface::m_crText, m_nRating, m_nSetRating, m_nShell, m_sAlbum, m_sArtist, m_sBitrate, m_sLength, m_sTitle, m_sTrack, NULL, PaintText(), ShellIcons, CSchema::uriMusicAlbum, and CSchema::uriMusicArtist.

Referenced by CLibraryAlbumView::OnPaint().

void CLibraryAlbumTrack::PaintText CDC *  pDC,
const CRect &  rcTrack,
int  nFrom,
int  nTo,
const CString *  pstr,
BOOL  bCenter = FALSE
[protected]
 

Definition at line 1124 of file CtrlLibraryAlbumView.cpp.

References NULL.

Referenced by Paint().

BOOL CLibraryAlbumTrack::Update CLibraryFile pFile  ) 
 

Definition at line 952 of file CtrlLibraryAlbumView.cpp.

References CShellIcons::Get(), CXMLElement::GetAttributeValue(), CLibraryFile::IsSchemaURI(), CLibraryFile::IsShared(), m_bComments, m_bShared, m_nBitrate, m_nCookie, m_nLength, CLibraryFile::m_nRating, m_nRating, m_nShell, m_nTrack, CLibraryFile::m_nUpdateCookie, CLibraryFile::m_pMetadata, m_sAlbum, m_sArtist, m_sBitrate, CLibraryFile::m_sComments, m_sLength, CLibraryFile::m_sName, m_sTitle, m_sTrack, ShellIcons, and CSchema::uriAudio.

Referenced by CLibraryAlbumTrack(), and CLibraryAlbumView::Update().


Member Data Documentation

BOOL CLibraryAlbumTrack::m_bComments
 

Definition at line 142 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), and Update().

BOOL CLibraryAlbumTrack::m_bSelected
 

Definition at line 129 of file CtrlLibraryAlbumView.h.

Referenced by CLibraryAlbumTrack(), CLibraryAlbumView::OnLButtonUp(), Paint(), CLibraryAlbumView::SelectTo(), and CLibraryAlbumView::Update().

BOOL CLibraryAlbumTrack::m_bShared
 

Definition at line 128 of file CtrlLibraryAlbumView.h.

Referenced by Update().

int CLibraryAlbumTrack::m_nBitrate
 

Definition at line 139 of file CtrlLibraryAlbumView.h.

Referenced by Update().

DWORD CLibraryAlbumTrack::m_nCookie
 

Definition at line 127 of file CtrlLibraryAlbumView.h.

Referenced by CLibraryAlbumTrack(), and Update().

DWORD CLibraryAlbumTrack::m_nIndex
 

Definition at line 126 of file CtrlLibraryAlbumView.h.

Referenced by CLibraryAlbumTrack(), CLibraryAlbumView::HitTestIndex(), LockRating(), CLibraryAlbumView::Select(), and CLibraryAlbumView::Update().

int CLibraryAlbumTrack::m_nLength
 

Definition at line 137 of file CtrlLibraryAlbumView.h.

Referenced by Update().

int CLibraryAlbumTrack::m_nRating
 

Definition at line 141 of file CtrlLibraryAlbumView.h.

Referenced by LockRating(), Paint(), and Update().

int CLibraryAlbumTrack::m_nSetRating
 

Definition at line 143 of file CtrlLibraryAlbumView.h.

Referenced by HitTestRating(), LockRating(), and Paint().

int CLibraryAlbumTrack::m_nShell
 

Definition at line 131 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), and Update().

int CLibraryAlbumTrack::m_nTrack
 

Definition at line 132 of file CtrlLibraryAlbumView.h.

Referenced by CLibraryAlbumView::SortList(), and Update().

CString CLibraryAlbumTrack::m_sAlbum
 

Definition at line 136 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), CLibraryAlbumView::SortList(), and Update().

CString CLibraryAlbumTrack::m_sArtist
 

Definition at line 135 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), CLibraryAlbumView::SortList(), and Update().

CString CLibraryAlbumTrack::m_sBitrate
 

Definition at line 140 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), and Update().

CString CLibraryAlbumTrack::m_sLength
 

Definition at line 138 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), and Update().

CString CLibraryAlbumTrack::m_sTitle
 

Definition at line 134 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), CLibraryAlbumView::SortList(), and Update().

CString CLibraryAlbumTrack::m_sTrack
 

Definition at line 133 of file CtrlLibraryAlbumView.h.

Referenced by Paint(), and Update().


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