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

CLibraryTileView Class Reference

#include <CtrlLibraryTileView.h>

Inheritance diagram for CLibraryTileView:

CLibraryView List of all members.

Public Member Functions

 CLibraryTileView ()
virtual ~CLibraryTileView ()
virtual BOOL CheckAvailable (CLibraryTreeItem *pSel)
virtual void Update ()
virtual BOOL Select (DWORD nObject)

Protected Member Functions

void Clear ()
int GetTileIndex (CLibraryTileItem *pTile) const
BOOL Select (CLibraryTileItem *pTile, TRISTATE bSelect=TS_TRUE)
BOOL DeselectAll (CLibraryTileItem *pTile=NULL)
BOOL SelectTo (CLibraryTileItem *pTile)
void SelectTo (int nDelta)
void Highlight (CLibraryTileItem *pTile)
void UpdateScroll ()
void ScrollBy (int nDelta)
void ScrollTo (int nDelta)
CLibraryTileItemHitTest (const CPoint &point) const
BOOL GetItemRect (CLibraryTileItem *pTile, 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 OnPaint ()
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
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 OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnUpdateLibraryAlbumOpen (CCmdUI *pCmdUI)
afx_msg void OnLibraryAlbumOpen ()
afx_msg void OnUpdateLibraryAlbumDelete (CCmdUI *pCmdUI)
afx_msg void OnLibraryAlbumDelete ()
afx_msg void OnUpdateLibraryAlbumProperties (CCmdUI *pCmdUI)
afx_msg void OnLibraryAlbumProperties ()

Static Protected Member Functions

static int SortList (LPCVOID pA, LPCVOID pB)

Protected Attributes

CSize m_szBlock
int m_nColumns
int m_nRows
CLibraryTileItem ** m_pList
int m_nCount
int m_nBuffer
int m_nScroll
int m_nSelected
CLibraryTileItemm_pFocus
CLibraryTileItemm_pFirst
CPtrList m_pSelTile
BOOL m_bDrag
CPoint m_ptDrag

Constructor & Destructor Documentation

CLibraryTileView::CLibraryTileView  ) 
 

Definition at line 72 of file CtrlLibraryTileView.cpp.

References ID_LIBRARY_VIEW_TILE.

CLibraryTileView::~CLibraryTileView  )  [virtual]
 

Definition at line 78 of file CtrlLibraryTileView.cpp.


Member Function Documentation

BOOL CLibraryTileView::CheckAvailable CLibraryTreeItem pSel  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 120 of file CtrlLibraryTileView.cpp.

References CAlbumFolder::GetFileCount(), CLibraryView::m_bAvailable, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryTileView::Clear  )  [protected]
 

Definition at line 233 of file CtrlLibraryTileView.cpp.

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

Referenced by OnDestroy(), and Update().

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

Definition at line 758 of file CtrlLibraryTileView.cpp.

References CoolInterface, CCoolInterface::GetBuffer(), GetItemRect(), CCoolInterface::m_fntNormal, m_pSelTile, m_szBlock, MAX_DRAG_SIZE, MAX_DRAG_SIZE_2, and NULL.

Referenced by StartDragging().

BOOL CLibraryTileView::DeselectAll CLibraryTileItem pTile = NULL  )  [protected]
 

Definition at line 302 of file CtrlLibraryTileView.cpp.

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

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

BOOL CLibraryTileView::GetItemRect CLibraryTileItem pTile,
CRect *  pRect
[protected]
 

Definition at line 588 of file CtrlLibraryTileView.cpp.

References m_nCount, m_nScroll, m_pList, and m_szBlock.

Referenced by CreateDragImage(), and Highlight().

int CLibraryTileView::GetTileIndex CLibraryTileItem pTile  )  const [protected]
 

Definition at line 254 of file CtrlLibraryTileView.cpp.

References m_nCount, and m_pList.

Referenced by SelectTo().

void CLibraryTileView::Highlight CLibraryTileItem pTile  )  [protected]
 

Definition at line 396 of file CtrlLibraryTileView.cpp.

References GetItemRect(), and ScrollBy().

Referenced by OnChar(), and SelectTo().

CLibraryTileItem * CLibraryTileView::HitTest const CPoint &  point  )  const [protected]
 

Definition at line 559 of file CtrlLibraryTileView.cpp.

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

Referenced by OnLButtonDown().

void CLibraryTileView::OnChar UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

Definition at line 711 of file CtrlLibraryTileView.cpp.

References DeselectAll(), Highlight(), m_nCount, m_pFocus, m_pList, NULL, Select(), and TS_TRUE.

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

Definition at line 993 of file CtrlLibraryTileView.cpp.

References ID_LIBRARY_ALBUM_OPEN, CLibraryView::m_pszToolBar, Skin, and CSkin::TrackPopupMenu().

int CLibraryTileView::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 90 of file CtrlLibraryTileView.cpp.

References m_bDrag, m_nBuffer, m_nColumns, m_nCount, m_nRows, m_nScroll, m_nSelected, m_pFirst, m_pFocus, m_pList, m_szBlock, and NULL.

void CLibraryTileView::OnDestroy  )  [protected]
 

Definition at line 111 of file CtrlLibraryTileView.cpp.

References Clear().

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

Definition at line 675 of file CtrlLibraryTileView.cpp.

References ID_LIBRARY_ALBUM_OPEN, m_nColumns, m_nCount, m_nRows, ScrollBy(), and SelectTo().

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

Definition at line 664 of file CtrlLibraryTileView.cpp.

References ID_LIBRARY_ALBUM_OPEN.

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

Definition at line 619 of file CtrlLibraryTileView.cpp.

References HitTest(), CSettings::Library, m_bDrag, m_ptDrag, SelectTo(), Settings, and CSettings::sLibrary::ShowVirtual.

Referenced by OnRButtonDown().

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

Definition at line 653 of file CtrlLibraryTileView.cpp.

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

void CLibraryTileView::OnLibraryAlbumDelete  )  [protected]
 

Definition at line 1016 of file CtrlLibraryTileView.cpp.

References CLibraryFolders::CheckAlbum(), CAlbumFolder::Delete(), IDS_LIBRARY_FOLDER_DELETE, Library, LibraryFolders, CSkin::LoadString(), m_nSelected, CLibraryTileItem::m_pFolder, CLibrary::m_pSection, m_pSelTile, CLibraryView::PostUpdate(), and Skin.

void CLibraryTileView::OnLibraryAlbumOpen  )  [protected]
 

Definition at line 1003 of file CtrlLibraryTileView.cpp.

References CLibraryView::GetFrame(), CLibraryTileItem::m_pFolder, and m_pSelTile.

void CLibraryTileView::OnLibraryAlbumProperties  )  [protected]
 

Definition at line 1045 of file CtrlLibraryTileView.cpp.

References CLibraryView::GetFrame(), CLibraryTileItem::m_pFolder, m_pSelTile, and NULL.

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

Definition at line 637 of file CtrlLibraryTileView.cpp.

References m_bDrag, m_ptDrag, and StartDragging().

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

Definition at line 490 of file CtrlLibraryTileView.cpp.

References m_szBlock, and ScrollBy().

void CLibraryTileView::OnPaint  )  [protected]
 

Definition at line 510 of file CtrlLibraryTileView.cpp.

References CoolInterface, CCoolInterface::GetBuffer(), CCoolInterface::m_crText, CCoolInterface::m_crWindow, CCoolInterface::m_fntNormal, m_nCount, m_nScroll, m_pList, m_szBlock, and CLibraryTileItem::Paint().

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

Definition at line 669 of file CtrlLibraryTileView.cpp.

References OnLButtonDown().

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

Definition at line 423 of file CtrlLibraryTileView.cpp.

References m_nColumns, m_nRows, m_szBlock, and UpdateScroll().

void CLibraryTileView::OnUpdateLibraryAlbumDelete CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1011 of file CtrlLibraryTileView.cpp.

References m_nSelected.

void CLibraryTileView::OnUpdateLibraryAlbumOpen CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 998 of file CtrlLibraryTileView.cpp.

References m_nSelected.

void CLibraryTileView::OnUpdateLibraryAlbumProperties CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1040 of file CtrlLibraryTileView.cpp.

References m_nSelected.

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

Definition at line 456 of file CtrlLibraryTileView.cpp.

References ScrollBy(), and ScrollTo().

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

Definition at line 85 of file CtrlLibraryTileView.cpp.

void CLibraryTileView::ScrollBy int  nDelta  )  [protected]
 

Definition at line 496 of file CtrlLibraryTileView.cpp.

References m_nScroll, and ScrollTo().

Referenced by Highlight(), OnKeyDown(), OnMouseWheel(), and OnVScroll().

void CLibraryTileView::ScrollTo int  nDelta  )  [protected]
 

Definition at line 501 of file CtrlLibraryTileView.cpp.

References m_nScroll, NULL, and UpdateScroll().

Referenced by OnVScroll(), and ScrollBy().

BOOL CLibraryTileView::Select CLibraryTileItem pTile,
TRISTATE  bSelect = TS_TRUE
[protected]
 

Definition at line 266 of file CtrlLibraryTileView.cpp.

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

BOOL CLibraryTileView::Select DWORD  nObject  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 225 of file CtrlLibraryTileView.cpp.

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

void CLibraryTileView::SelectTo int  nDelta  )  [protected]
 

Definition at line 376 of file CtrlLibraryTileView.cpp.

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

BOOL CLibraryTileView::SelectTo CLibraryTileItem pTile  )  [protected]
 

Definition at line 318 of file CtrlLibraryTileView.cpp.

References DeselectAll(), GetTileIndex(), Highlight(), CLibraryTileItem::m_bSelected, m_nSelected, m_pFirst, m_pFocus, m_pList, NULL, Select(), TS_TRUE, and TS_UNKNOWN.

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

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

Definition at line 413 of file CtrlLibraryTileView.cpp.

References CLibraryTileItem::m_sTitle.

Referenced by Update().

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

Definition at line 748 of file CtrlLibraryTileView.cpp.

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

Referenced by OnMouseMove().

void CLibraryTileView::Update  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 132 of file CtrlLibraryTileView.cpp.

References CAlbumFolder::CheckFolder(), Clear(), CLibrary::GetAlbumRoot(), CAlbumFolder::GetFileCount(), CLibraryView::GetFolderCookie(), CAlbumFolder::GetFolderIterator(), CLibraryView::GetFolderSelection(), CAlbumFolder::GetNextFolder(), Library, CLibraryTileItem::m_bSelected, m_nBuffer, m_nColumns, m_nCount, CAlbumFolder::m_nListCookie, m_nScroll, m_pFirst, m_pFocus, CLibraryTileItem::m_pFolder, m_pList, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, m_szBlock, NULL, Select(), SortList(), TS_FALSE, CLibraryTileItem::Update(), and UpdateScroll().

Referenced by CLibraryHomeView::Update().

void CLibraryTileView::UpdateScroll  )  [protected]
 

Definition at line 435 of file CtrlLibraryTileView.cpp.

References m_nColumns, m_nCount, m_nScroll, and m_szBlock.

Referenced by OnSize(), ScrollTo(), and Update().


Member Data Documentation

BOOL CLibraryTileView::m_bDrag [protected]
 

Definition at line 55 of file CtrlLibraryTileView.h.

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

int CLibraryTileView::m_nBuffer [protected]
 

Definition at line 48 of file CtrlLibraryTileView.h.

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

int CLibraryTileView::m_nColumns [protected]
 

Definition at line 43 of file CtrlLibraryTileView.h.

Referenced by OnCreate(), OnKeyDown(), OnSize(), Update(), and UpdateScroll().

int CLibraryTileView::m_nCount [protected]
 

Definition at line 47 of file CtrlLibraryTileView.h.

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

int CLibraryTileView::m_nRows [protected]
 

Definition at line 44 of file CtrlLibraryTileView.h.

Referenced by OnCreate(), OnKeyDown(), and OnSize().

int CLibraryTileView::m_nScroll [protected]
 

Definition at line 49 of file CtrlLibraryTileView.h.

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

int CLibraryTileView::m_nSelected [protected]
 

Definition at line 51 of file CtrlLibraryTileView.h.

Referenced by Clear(), OnCreate(), OnLibraryAlbumDelete(), OnUpdateLibraryAlbumDelete(), OnUpdateLibraryAlbumOpen(), OnUpdateLibraryAlbumProperties(), Select(), and SelectTo().

CLibraryTileItem* CLibraryTileView::m_pFirst [protected]
 

Definition at line 53 of file CtrlLibraryTileView.h.

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

CLibraryTileItem* CLibraryTileView::m_pFocus [protected]
 

Definition at line 52 of file CtrlLibraryTileView.h.

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

CLibraryTileItem** CLibraryTileView::m_pList [protected]
 

Definition at line 46 of file CtrlLibraryTileView.h.

Referenced by Clear(), DeselectAll(), GetItemRect(), GetTileIndex(), HitTest(), OnChar(), OnCreate(), OnPaint(), SelectTo(), and Update().

CPtrList CLibraryTileView::m_pSelTile [protected]
 

Definition at line 54 of file CtrlLibraryTileView.h.

Referenced by Clear(), CreateDragImage(), OnLibraryAlbumDelete(), OnLibraryAlbumOpen(), OnLibraryAlbumProperties(), and Select().

CPoint CLibraryTileView::m_ptDrag [protected]
 

Definition at line 56 of file CtrlLibraryTileView.h.

Referenced by OnLButtonDown(), and OnMouseMove().

CSize CLibraryTileView::m_szBlock [protected]
 

Definition at line 42 of file CtrlLibraryTileView.h.

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


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