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

CLibraryView Class Reference

#include <CtrlLibraryView.h>

Inheritance diagram for CLibraryView:

CLibraryFileView CLibraryHomeView CLibraryTileView CLibraryAlbumView CLibraryCollectionView CLibraryDetailView CLibraryThumbView CLibraryIconView CLibraryListView List of all members.

Public Member Functions

 CLibraryView ()
virtual ~CLibraryView ()
virtual BOOL CheckAvailable (CLibraryTreeItem *pSel)
virtual void GetHeaderContent (int &nImage, CString &strTitle)
virtual void Update ()
virtual BOOL Select (DWORD nObject)
virtual void CacheSelection ()
virtual BOOL Create (CWnd *pParentWnd)

Public Attributes

UINT m_nCommandID
LPCTSTR m_pszToolBar
BOOL m_bAvailable
CLibraryList m_pSelection

Protected Member Functions

void PostUpdate ()
CLibraryFrameGetFrame () const
CLibraryTipCtrlGetToolTip () const
DWORD GetFolderCookie () const
CLibraryTreeItemGetFolderSelection () const
CAlbumFolderGetSelectedAlbum (CLibraryTreeItem *pSel=NULL) const
void DragObjects (CImageList *pImage, const CPoint &ptMouse)
BOOL SelAdd (DWORD nObject, BOOL bNotify=TRUE)
BOOL SelRemove (DWORD nObject, BOOL bNotify=TRUE)
BOOL SelClear (BOOL bNotify=TRUE)
int GetSelectedCount () const

Constructor & Destructor Documentation

CLibraryView::CLibraryView  ) 
 

Definition at line 53 of file CtrlLibraryView.cpp.

References ID_LIBRARY_VIEW, and NULL.

CLibraryView::~CLibraryView  )  [virtual]
 

Definition at line 60 of file CtrlLibraryView.cpp.


Member Function Documentation

void CLibraryView::CacheSelection  )  [virtual]
 

Reimplemented in CLibraryDetailView.

Definition at line 127 of file CtrlLibraryView.cpp.

BOOL CLibraryView::CheckAvailable CLibraryTreeItem pSel  )  [virtual]
 

Reimplemented in CLibraryCollectionView, CLibraryFileView, CLibraryHomeView, and CLibraryTileView.

Definition at line 74 of file CtrlLibraryView.cpp.

References m_bAvailable.

Referenced by CLibraryFrame::Update().

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

Reimplemented in CLibraryDetailView.

Definition at line 67 of file CtrlLibraryView.cpp.

References IDC_LIBRARY_VIEW, NULL, and SelClear().

Referenced by CLibraryHomeView::OnCreate().

void CLibraryView::DragObjects CImageList *  pImage,
const CPoint &  ptMouse
[protected]
 

Definition at line 169 of file CtrlLibraryView.cpp.

References CLibraryList::AddTail(), CLibraryFrame::DragObjects(), CLibraryList::GetHeadPosition(), CLibraryList::GetNext(), GetSelectedCount(), and m_pSelection.

Referenced by CLibraryDetailView::OnBeginDrag(), CLibraryTileView::StartDragging(), CLibraryThumbView::StartDragging(), and CLibraryAlbumView::StartDragging().

DWORD CLibraryView::GetFolderCookie  )  const [protected]
 

Definition at line 151 of file CtrlLibraryView.cpp.

References GetFrame().

Referenced by CLibraryTileView::Update(), CLibraryThumbView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

CLibraryTreeItem * CLibraryView::GetFolderSelection  )  const [protected]
 

Definition at line 156 of file CtrlLibraryView.cpp.

References GetFrame().

Referenced by GetHeaderContent(), GetSelectedAlbum(), CLibraryFileView::OnLibraryUnlink(), CLibraryFileView::OnUpdateLibraryUnlink(), CLibraryTileView::Update(), CLibraryDetailView::Update(), and CLibraryAlbumView::Update().

CLibraryFrame * CLibraryView::GetFrame  )  const [protected]
 

Definition at line 139 of file CtrlLibraryView.cpp.

Referenced by GetFolderCookie(), GetFolderSelection(), GetToolTip(), CLibraryTileView::OnLibraryAlbumOpen(), CLibraryTileView::OnLibraryAlbumProperties(), and CLibraryCollectionView::OnWebContextMenu().

void CLibraryView::GetHeaderContent int &  nImage,
CString &  strTitle
[virtual]
 

Reimplemented in CLibraryHomeView.

Definition at line 79 of file CtrlLibraryView.cpp.

References GetFolderSelection(), IDS_LIBHEAD_EXPLORE_FOLDER, IDS_LIBHEAD_EXPLORE_MANY, LoadString(), CShareazaApp::m_bRTL, CSchema::m_nIcon16, CLibraryTreeItem::m_pParent, CAlbumFolder::m_pSchema, CLibraryTreeItem::m_pVirtual, CLibraryTreeItem::m_sText, SHI_FOLDER_OPEN, and theApp.

Referenced by CLibraryHeaderBar::Update().

CAlbumFolder * CLibraryView::GetSelectedAlbum CLibraryTreeItem pSel = NULL  )  const [protected]
 

Definition at line 161 of file CtrlLibraryView.cpp.

References GetFolderSelection(), CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, and NULL.

Referenced by CLibraryCollectionView::CheckAvailable(), and CLibraryCollectionView::Update().

int CLibraryView::GetSelectedCount  )  const [protected]
 

Definition at line 226 of file CtrlLibraryView.cpp.

References CLibraryList::GetCount(), and m_pSelection.

Referenced by DragObjects(), CLibraryFileView::OnLibraryURL(), CLibraryFileView::OnUpdateLibraryBitziDownload(), CLibraryFileView::OnUpdateLibraryBitziWeb(), CLibraryFileView::OnUpdateLibraryCopy(), CLibraryFileView::OnUpdateLibraryCreateTorrent(), CLibraryFileView::OnUpdateLibraryDelete(), CLibraryFileView::OnUpdateLibraryEnqueue(), CLibraryFileView::OnUpdateLibraryLaunch(), CLibraryFileView::OnUpdateLibraryMove(), CLibraryFileView::OnUpdateLibraryProperties(), CLibraryFileView::OnUpdateLibraryRebuildAnsi(), CLibraryDetailView::OnUpdateLibraryRename(), CLibraryFileView::OnUpdateLibraryShared(), CLibraryFileView::OnUpdateLibraryUnlink(), and CLibraryFileView::OnUpdateLibraryURL().

CLibraryTipCtrl * CLibraryView::GetToolTip  )  const [protected]
 

Definition at line 146 of file CtrlLibraryView.cpp.

References GetFrame().

Referenced by CLibraryFileView::OnKeyDown(), CLibraryFileView::OnLButtonDown(), CLibraryFileView::OnMouseMove(), CLibraryFileView::OnRButtonDown(), and CLibraryCollectionView::OnWebContextMenu().

void CLibraryView::PostUpdate  )  [protected]
 

Definition at line 134 of file CtrlLibraryView.cpp.

References ID_LIBRARY_REFRESH.

Referenced by CLibraryTileView::OnLibraryAlbumDelete(), CLibraryCollectionView::OnLibraryFolderDownload(), and CLibraryDetailView::SetViewSchema().

BOOL CLibraryView::SelAdd DWORD  nObject,
BOOL  bNotify = TRUE
[protected]
 

Definition at line 183 of file CtrlLibraryView.cpp.

References CLibraryList::AddTail(), CLibraryList::Find(), m_pSelection, and CLibraryFrame::OnViewSelection().

Referenced by CLibraryDetailView::CacheSelection(), CLibraryDetailView::OnItemChanged(), CLibraryDetailView::OnItemRangeChanged(), CLibraryCollectionView::OnWebContextMenu(), CLibraryTileView::Select(), CLibraryThumbView::Select(), and CLibraryAlbumView::Select().

BOOL CLibraryView::SelClear BOOL  bNotify = TRUE  )  [protected]
 

Definition at line 212 of file CtrlLibraryView.cpp.

References CLibraryList::GetCount(), m_pSelection, CLibraryFrame::OnViewSelection(), and CLibraryList::RemoveAll().

Referenced by CLibraryDetailView::CacheSelection(), CLibraryTileView::Clear(), CLibraryThumbView::Clear(), CLibraryAlbumView::Clear(), Create(), CLibraryDetailView::Create(), CLibraryDetailView::OnItemChanged(), and CLibraryCollectionView::OnWebContextMenu().

BOOL CLibraryView::Select DWORD  nObject  )  [virtual]
 

Reimplemented in CLibraryAlbumView, CLibraryDetailView, CLibraryThumbView, and CLibraryTileView.

Definition at line 122 of file CtrlLibraryView.cpp.

Referenced by CLibraryFrame::Select().

BOOL CLibraryView::SelRemove DWORD  nObject,
BOOL  bNotify = TRUE
[protected]
 

Definition at line 197 of file CtrlLibraryView.cpp.

References CLibraryList::Find(), m_pSelection, NULL, CLibraryFrame::OnViewSelection(), and CLibraryList::RemoveAt().

Referenced by CLibraryDetailView::OnItemChanged(), CLibraryDetailView::OnItemRangeChanged(), CLibraryTileView::Select(), CLibraryThumbView::Select(), CLibraryAlbumView::Select(), and CLibraryDetailView::Update().

void CLibraryView::Update  )  [virtual]
 

Reimplemented in CLibraryAlbumView, CLibraryCollectionView, CLibraryDetailView, CLibraryHomeView, CLibraryThumbView, and CLibraryTileView.

Definition at line 118 of file CtrlLibraryView.cpp.


Member Data Documentation

BOOL CLibraryView::m_bAvailable
 

Definition at line 46 of file CtrlLibraryView.h.

Referenced by CheckAvailable(), CLibraryTileView::CheckAvailable(), CLibraryHomeView::CheckAvailable(), CLibraryFileView::CheckAvailable(), CLibraryCollectionView::CheckAvailable(), CLibraryHeaderBar::OnLibraryView(), and CLibraryFrame::Update().

UINT CLibraryView::m_nCommandID
 

Definition at line 44 of file CtrlLibraryView.h.

Referenced by CLibraryHeaderBar::OnLibraryView(), and CLibraryHeaderBar::Update().

CLibraryList CLibraryView::m_pSelection
 

Definition at line 48 of file CtrlLibraryView.h.

Referenced by DragObjects(), CLibraryFileView::GetNextSelectedFile(), GetSelectedCount(), CLibraryFileView::GetSelectedFile(), CLibraryFileView::OnUpdateLibraryRebuildAnsi(), SelAdd(), SelClear(), SelRemove(), CLibraryFileView::StartSelectedFileLoop(), and CLibraryFrame::UpdatePanel().

LPCTSTR CLibraryView::m_pszToolBar
 

Definition at line 45 of file CtrlLibraryView.h.

Referenced by CLibraryTileView::OnContextMenu(), and CLibraryFileView::OnContextMenu().


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