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

CLibraryAlbumView Class Reference

#include <CtrlLibraryAlbumView.h>

Inheritance diagram for CLibraryAlbumView:

CLibraryFileView CLibraryView List of all members.

Public Member Functions

 CLibraryAlbumView ()
virtual ~CLibraryAlbumView ()
virtual void Update ()
virtual BOOL Select (DWORD nObject)
virtual DWORD HitTestIndex (const CPoint &point) const

Static Public Attributes

static COLORREF m_crRows [2]

Protected Member Functions

void Clear ()
BOOL Select (CLibraryAlbumTrack *pItem, TRISTATE bSelect=TS_TRUE)
BOOL DeselectAll (CLibraryAlbumTrack *pItem=NULL)
BOOL SelectTo (CLibraryAlbumTrack *pItem)
void SelectTo (int nDelta)
void UpdateScroll ()
void ScrollBy (int nDelta)
void ScrollTo (int nDelta)
CLibraryAlbumTrackHitTest (const CPoint &point, CRect *pRect=NULL) const
int GetTrackIndex (CLibraryAlbumTrack *pTrack) const
BOOL GetItemRect (CLibraryAlbumTrack *pTrack, CRect *pRect)
void StartDragging (CPoint &ptMouse)
CImageList * CreateDragImage (const CPoint &ptMouse)
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
afx_msg void OnPaint ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)

Static Protected Member Functions

static int SortList (LPCVOID pA, LPCVOID pB)

Protected Attributes

CSize m_szTrack
int m_nRows
LPCTSTR m_pStyle
CLibraryAlbumTrack ** m_pList
int m_nCount
int m_nBuffer
int m_nScroll
CImageList m_pStars
CPtrList m_pSelTrack
int m_nSelected
CLibraryAlbumTrackm_pFocus
CLibraryAlbumTrackm_pFirst
CLibraryAlbumTrackm_pRating
BOOL m_bDrag
CPoint m_ptDrag

Static Protected Attributes

static LPCTSTR m_pStaticStyle

Friends

class CLibraryAlbumTrack

Constructor & Destructor Documentation

CLibraryAlbumView::CLibraryAlbumView  ) 
 

Definition at line 72 of file CtrlLibraryAlbumView.cpp.

References ID_LIBRARY_VIEW_ALBUM.

CLibraryAlbumView::~CLibraryAlbumView  )  [virtual]
 

Definition at line 77 of file CtrlLibraryAlbumView.cpp.


Member Function Documentation

void CLibraryAlbumView::Clear  )  [protected]
 

Definition at line 312 of file CtrlLibraryAlbumView.cpp.

References m_nBuffer, m_nCount, m_nScroll, m_nSelected, m_pFirst, m_pFocus, m_pList, m_pSelTrack, NULL, and CLibraryView::SelClear().

Referenced by OnDestroy().

CImageList * CLibraryAlbumView::CreateDragImage const CPoint &  ptMouse  )  [protected]
 

Definition at line 844 of file CtrlLibraryAlbumView.cpp.

References CoolInterface, CCoolInterface::GetBuffer(), GetItemRect(), CCoolInterface::m_fntNormal, m_pSelTrack, m_szTrack, MAX_DRAG_SIZE, MAX_DRAG_SIZE_2, and NULL.

Referenced by StartDragging().

BOOL CLibraryAlbumView::DeselectAll CLibraryAlbumTrack pItem = NULL  )  [protected]
 

Definition at line 384 of file CtrlLibraryAlbumView.cpp.

References m_nCount, m_pList, Select(), and TS_FALSE.

Referenced by OnLButtonUp(), Select(), and SelectTo().

BOOL CLibraryAlbumView::GetItemRect CLibraryAlbumTrack pTrack,
CRect *  pRect
[protected]
 

Definition at line 647 of file CtrlLibraryAlbumView.cpp.

References m_nCount, m_nScroll, m_pList, and m_szTrack.

Referenced by CreateDragImage(), Select(), and SelectTo().

int CLibraryAlbumView::GetTrackIndex CLibraryAlbumTrack pTrack  )  const [protected]
 

Definition at line 333 of file CtrlLibraryAlbumView.cpp.

References m_nCount, and m_pList.

Referenced by SelectTo().

CLibraryAlbumTrack * CLibraryAlbumView::HitTest const CPoint &  point,
CRect *  pRect = NULL
const [protected]
 

Definition at line 623 of file CtrlLibraryAlbumView.cpp.

References m_nCount, m_nScroll, m_pList, m_szTrack, and NULL.

Referenced by HitTestIndex(), OnLButtonDown(), and OnMouseMove().

DWORD CLibraryAlbumView::HitTestIndex const CPoint &  point  )  const [virtual]
 

Implements CLibraryFileView.

Definition at line 255 of file CtrlLibraryAlbumView.cpp.

References HitTest(), and CLibraryAlbumTrack::m_nIndex.

int CLibraryAlbumView::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CLibraryFileView.

Definition at line 90 of file CtrlLibraryAlbumView.cpp.

References IDB_SMALL_STAR, m_bDrag, m_nBuffer, m_nCount, m_nScroll, m_nSelected, m_pFirst, m_pFocus, m_pList, m_pStars, NULL, and CLibraryFileView::OnCreate().

void CLibraryAlbumView::OnDestroy  )  [protected]
 

Definition at line 112 of file CtrlLibraryAlbumView.cpp.

References Clear(), and m_pStars.

void CLibraryAlbumView::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Reimplemented from CLibraryFileView.

Definition at line 764 of file CtrlLibraryAlbumView.cpp.

References m_nCount, m_nRows, m_pFocus, m_pList, m_pStyle, NULL, CLibraryFileView::OnKeyDown(), SelectTo(), CSchema::uriMusicAlbum, and CSchema::uriMusicArtist.

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

Definition at line 753 of file CtrlLibraryAlbumView.cpp.

References ID_LIBRARY_LAUNCH.

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

Reimplemented from CLibraryFileView.

Definition at line 669 of file CtrlLibraryAlbumView.cpp.

References HitTest(), CLibraryAlbumTrack::HitTestRating(), CLibraryAlbumTrack::LockRating(), m_bDrag, m_pRating, m_ptDrag, NULL, CLibraryFileView::OnLButtonDown(), and SelectTo().

Referenced by OnRButtonDown().

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

Definition at line 742 of file CtrlLibraryAlbumView.cpp.

References DeselectAll(), m_bDrag, CLibraryAlbumTrack::m_bSelected, and m_pFocus.

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

Reimplemented from CLibraryFileView.

Definition at line 696 of file CtrlLibraryAlbumView.cpp.

References CCoolTipCtrl::Hide(), HitTest(), IDC_HAND, m_bDrag, m_pRating, m_ptDrag, NULL, CCoolTipCtrl::Show(), StartDragging(), and theApp.

BOOL CLibraryAlbumView::OnMouseWheel UINT  nFlags,
short  zDelta,
CPoint  pt
[protected]
 

Definition at line 559 of file CtrlLibraryAlbumView.cpp.

References m_szTrack, and ScrollBy().

void CLibraryAlbumView::OnPaint  )  [protected]
 

Definition at line 579 of file CtrlLibraryAlbumView.cpp.

References CCoolInterface::CalculateColour(), CoolInterface, CCoolInterface::GetBuffer(), CShareazaApp::m_bRTL, m_crRows, CSkin::m_crSchemaRow, CCoolInterface::m_crText, CCoolInterface::m_crWindow, CCoolInterface::m_fntNormal, m_nCount, m_nScroll, m_pList, m_szTrack, CLibraryAlbumTrack::Paint(), Skin, and theApp.

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

Reimplemented from CLibraryFileView.

Definition at line 758 of file CtrlLibraryAlbumView.cpp.

References OnLButtonDown(), and CLibraryFileView::OnRButtonDown().

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

Definition at line 493 of file CtrlLibraryAlbumView.cpp.

References m_nRows, and m_szTrack.

void CLibraryAlbumView::OnVScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
[protected]
 

Definition at line 521 of file CtrlLibraryAlbumView.cpp.

References m_szTrack, ScrollBy(), and ScrollTo().

BOOL CLibraryAlbumView::PreCreateWindow CREATESTRUCT &  cs  )  [protected, virtual]
 

Definition at line 84 of file CtrlLibraryAlbumView.cpp.

void CLibraryAlbumView::ScrollBy int  nDelta  )  [protected]
 

Definition at line 565 of file CtrlLibraryAlbumView.cpp.

References m_nScroll, and ScrollTo().

Referenced by OnMouseWheel(), OnVScroll(), Select(), and SelectTo().

void CLibraryAlbumView::ScrollTo int  nDelta  )  [protected]
 

Definition at line 570 of file CtrlLibraryAlbumView.cpp.

References m_nScroll, NULL, and UpdateScroll().

Referenced by OnVScroll(), and ScrollBy().

BOOL CLibraryAlbumView::Select CLibraryAlbumTrack pItem,
TRISTATE  bSelect = TS_TRUE
[protected]
 

Definition at line 345 of file CtrlLibraryAlbumView.cpp.

References m_nSelected, m_pSelTrack, NULL, CLibraryView::SelAdd(), CLibraryView::SelRemove(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.

BOOL CLibraryAlbumView::Select DWORD  nObject  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 220 of file CtrlLibraryAlbumView.cpp.

References DeselectAll(), GetItemRect(), m_nCount, CLibraryAlbumTrack::m_nIndex, m_pFocus, m_pList, and ScrollBy().

Referenced by DeselectAll(), SelectTo(), and Update().

void CLibraryAlbumView::SelectTo int  nDelta  )  [protected]
 

Definition at line 470 of file CtrlLibraryAlbumView.cpp.

References GetTrackIndex(), m_nCount, m_pFocus, m_pList, and SelectTo().

BOOL CLibraryAlbumView::SelectTo CLibraryAlbumTrack pItem  )  [protected]
 

Definition at line 400 of file CtrlLibraryAlbumView.cpp.

References DeselectAll(), GetItemRect(), GetTrackIndex(), CLibraryAlbumTrack::m_bSelected, m_nSelected, m_pFirst, m_pFocus, m_pList, NULL, ScrollBy(), Select(), TS_TRUE, and TS_UNKNOWN.

Referenced by OnKeyDown(), OnLButtonDown(), and SelectTo().

int CLibraryAlbumView::SortList LPCVOID  pA,
LPCVOID  pB
[static, protected]
 

Definition at line 261 of file CtrlLibraryAlbumView.cpp.

References CLibraryAlbumTrack::m_nTrack, m_pStaticStyle, CLibraryAlbumTrack::m_sAlbum, CLibraryAlbumTrack::m_sArtist, CLibraryAlbumTrack::m_sTitle, CSchema::uriMusicAlbum, and CSchema::uriMusicArtist.

Referenced by Update().

void CLibraryAlbumView::StartDragging CPoint &  ptMouse  )  [protected]
 

Definition at line 834 of file CtrlLibraryAlbumView.cpp.

References CreateDragImage(), CLibraryView::DragObjects(), and NULL.

Referenced by OnMouseMove().

void CLibraryAlbumView::Update  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 122 of file CtrlLibraryAlbumView.cpp.

References CLibraryAlbumTrack, CSchema::Equals(), CSchema::FilterType(), CSettings::sLibrary::FilterURI, CSchemaCache::Get(), CLibraryMaps::GetFileIterator(), CLibraryView::GetFolderCookie(), CLibraryView::GetFolderSelection(), CLibraryMaps::GetNextFile(), CLibraryFile::IsAvailable(), Library, CSettings::Library, LibraryMaps, CLibrary::LookupFile(), CLibraryAlbumTrack::m_bSelected, m_nBuffer, m_nCount, CLibraryAlbumTrack::m_nIndex, CLibraryFile::m_nListCookie, m_nScroll, CLibraryFile::m_nSelectCookie, m_pFirst, m_pFocus, m_pList, CLibraryFile::m_pMetadata, CLibraryFile::m_pSchema, CLibraryTreeItem::m_pSelNext, m_pStaticStyle, m_pStyle, CLibraryTreeItem::m_pVirtual, CLibraryFile::m_sName, CAlbumFolder::m_sSchemaURI, m_szTrack, NULL, SchemaCache, Select(), Settings, CSettings::sLibrary::ShowVirtual, SortList(), TS_FALSE, CLibraryAlbumTrack::Update(), UpdateScroll(), CSchema::uriMusicAlbum, and CSchema::uriMusicArtist.

void CLibraryAlbumView::UpdateScroll  )  [protected]
 

Definition at line 502 of file CtrlLibraryAlbumView.cpp.

References m_nCount, m_nScroll, and m_szTrack.

Referenced by ScrollTo(), and Update().


Friends And Related Function Documentation

friend class CLibraryAlbumTrack [friend]
 

Definition at line 114 of file CtrlLibraryAlbumView.h.

Referenced by Update().


Member Data Documentation

BOOL CLibraryAlbumView::m_bDrag [protected]
 

Definition at line 60 of file CtrlLibraryAlbumView.h.

Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), and OnMouseMove().

COLORREF CLibraryAlbumView::m_crRows [static]
 

Definition at line 66 of file CtrlLibraryAlbumView.cpp.

Referenced by OnPaint(), and CLibraryAlbumTrack::Paint().

int CLibraryAlbumView::m_nBuffer [protected]
 

Definition at line 51 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), OnCreate(), and Update().

int CLibraryAlbumView::m_nCount [protected]
 

Definition at line 50 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), DeselectAll(), GetItemRect(), GetTrackIndex(), HitTest(), OnCreate(), OnKeyDown(), OnPaint(), Select(), SelectTo(), Update(), and UpdateScroll().

int CLibraryAlbumView::m_nRows [protected]
 

Definition at line 45 of file CtrlLibraryAlbumView.h.

Referenced by OnKeyDown(), and OnSize().

int CLibraryAlbumView::m_nScroll [protected]
 

Definition at line 52 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), GetItemRect(), HitTest(), OnCreate(), OnPaint(), ScrollBy(), ScrollTo(), Update(), and UpdateScroll().

int CLibraryAlbumView::m_nSelected [protected]
 

Definition at line 56 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), OnCreate(), Select(), and SelectTo().

CLibraryAlbumTrack* CLibraryAlbumView::m_pFirst [protected]
 

Definition at line 58 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), OnCreate(), SelectTo(), and Update().

CLibraryAlbumTrack* CLibraryAlbumView::m_pFocus [protected]
 

Definition at line 57 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), OnCreate(), OnKeyDown(), OnLButtonUp(), Select(), SelectTo(), and Update().

CLibraryAlbumTrack** CLibraryAlbumView::m_pList [protected]
 

Definition at line 49 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), DeselectAll(), GetItemRect(), GetTrackIndex(), HitTest(), OnCreate(), OnKeyDown(), OnPaint(), Select(), SelectTo(), and Update().

CLibraryAlbumTrack* CLibraryAlbumView::m_pRating [protected]
 

Definition at line 59 of file CtrlLibraryAlbumView.h.

Referenced by OnLButtonDown(), and OnMouseMove().

CPtrList CLibraryAlbumView::m_pSelTrack [protected]
 

Definition at line 55 of file CtrlLibraryAlbumView.h.

Referenced by Clear(), CreateDragImage(), and Select().

CImageList CLibraryAlbumView::m_pStars [protected]
 

Definition at line 53 of file CtrlLibraryAlbumView.h.

Referenced by OnCreate(), and OnDestroy().

LPCTSTR CLibraryAlbumView::m_pStaticStyle [static, protected]
 

Definition at line 65 of file CtrlLibraryAlbumView.cpp.

Referenced by SortList(), and Update().

LPCTSTR CLibraryAlbumView::m_pStyle [protected]
 

Definition at line 46 of file CtrlLibraryAlbumView.h.

Referenced by OnKeyDown(), and Update().

CPoint CLibraryAlbumView::m_ptDrag [protected]
 

Definition at line 61 of file CtrlLibraryAlbumView.h.

Referenced by OnLButtonDown(), and OnMouseMove().

CSize CLibraryAlbumView::m_szTrack [protected]
 

Definition at line 44 of file CtrlLibraryAlbumView.h.

Referenced by CreateDragImage(), GetItemRect(), HitTest(), OnMouseWheel(), OnPaint(), OnSize(), OnVScroll(), Update(), and UpdateScroll().


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