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

CLibraryTreeView Class Reference

#include <CtrlLibraryTreeView.h>

Inheritance diagram for CLibraryTreeView:

CLibraryTreeCtrl List of all members.

Public Member Functions

 CLibraryTreeView ()
virtual ~CLibraryTreeView ()
void SetVirtual (BOOL bVirtual)
void Update (DWORD nSelectCookie)
BOOL SelectFolder (LPVOID pSearch)
BOOL DropShowTarget (CLibraryList *pList, const CPoint &point)
BOOL DropObjects (CLibraryList *pList, BOOL bCopy, CSingleLock &oLock)
virtual BOOL PreTranslateMessage (MSG *pMsg)
afx_msg void OnUpdateLibraryExportCollection (CCmdUI *pCmdUI)
afx_msg void OnLibraryExportCollection ()

Public Attributes

BOOL m_bVirtual
CFolderTipCtrl m_wndFolderTip
CAlbumTipCtrl m_wndAlbumTip

Protected Member Functions

void PostUpdate ()
void UpdatePhysical (DWORD nSelectCookie)
void UpdateVirtual (DWORD nSelectCookie)
BOOL Update (CLibraryFolder *pFolder, CLibraryTreeItem *pItem, CLibraryTreeItem *pParent, BOOL bVisible, BOOL bShared, DWORD nCleanCookie, DWORD nSelectCookie, BOOL bRecurse)
BOOL Update (CAlbumFolder *pFolder, CLibraryTreeItem *pItem, CLibraryTreeItem *pParent, BOOL bVisible, DWORD nCleanCookie, DWORD nSelectCookie)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnUpdateLibraryParent (CCmdUI *pCmdUI)
afx_msg void OnLibraryParent ()
afx_msg void OnUpdateLibraryExplore (CCmdUI *pCmdUI)
afx_msg void OnLibraryExplore ()
afx_msg void OnUpdateLibraryScan (CCmdUI *pCmdUI)
afx_msg void OnLibraryScan ()
afx_msg void OnUpdateLibraryShared (CCmdUI *pCmdUI)
afx_msg void OnLibraryShared ()
afx_msg void OnLibraryAdd ()
afx_msg void OnUpdateLibraryRemove (CCmdUI *pCmdUI)
afx_msg void OnLibraryRemove ()
afx_msg void OnUpdateLibraryFolderProperties (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderProperties ()
afx_msg void OnUpdateLibraryFolderNew (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderNew ()
afx_msg void OnUpdateLibraryFolderDelete (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderDelete ()
afx_msg void OnUpdateLibraryFolderMetadata (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderMetadata ()
afx_msg void OnUpdateLibraryFolderEnqueue (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderEnqueue ()
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnUpdateLibraryFolderFileProperties (CCmdUI *pCmdUI)
afx_msg void OnLibraryFolderFileProperties ()
afx_msg void OnUpdateLibraryRebuild (CCmdUI *pCmdUI)
afx_msg void OnLibraryRebuild ()

Constructor & Destructor Documentation

CLibraryTreeView::CLibraryTreeView  ) 
 

Definition at line 90 of file CtrlLibraryTreeView.cpp.

CLibraryTreeView::~CLibraryTreeView  )  [virtual]
 

Definition at line 95 of file CtrlLibraryTreeView.cpp.


Member Function Documentation

BOOL CLibraryTreeView::DropObjects CLibraryList pList,
BOOL  bCopy,
CSingleLock &  oLock
 

Definition at line 453 of file CtrlLibraryTreeView.cpp.

References CAlbumFolder::AddFile(), CFileCopyDlg::AddFile(), CLibraryFolders::CheckAlbum(), CAlbumFolder::CheckFolder(), Library, LibraryFolders, CLibrary::LookupFile(), CLibrary::m_nUpdateCookie, CLibraryTreeCtrl::m_pDropItem, CAlbumFolder::m_pFolders, CAlbumFolder::m_pParent, CLibraryTreeItem::m_pPhysical, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, CLibraryFolder::m_sPath, CFileCopyDlg::m_sTarget, NULL, and CAlbumFolder::OnFolderDelete().

Referenced by CLibraryFrame::CancelDrag(), and CLibraryFrame::OnLButtonUp().

BOOL CLibraryTreeView::DropShowTarget CLibraryList pList,
const CPoint &  point
 

Definition at line 412 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::HitTest(), CLibraryTreeCtrl::m_pDropItem, NULL, and CLibraryTreeCtrl::ScrollBy().

Referenced by CLibraryFrame::OnMouseMove().

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

Definition at line 577 of file CtrlLibraryTreeView.cpp.

References ID_LIBRARY_EXPLORE, ID_LIBRARY_FOLDER_PROPERTIES, m_bVirtual, Skin, and CSkin::TrackPopupMenu().

int CLibraryTreeView::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 540 of file CtrlLibraryTreeView.cpp.

References CCoolTipCtrl::Create(), m_wndAlbumTip, and m_wndFolderTip.

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

Reimplemented from CLibraryTreeCtrl.

Definition at line 589 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, CLibraryTreeCtrl::m_pFocus, CLibraryTreeCtrl::NotifySelection(), NULL, CLibraryTreeCtrl::OnLButtonDblClk(), and CLibraryTreeCtrl::SelectAll().

void CLibraryTreeView::OnLibraryAdd  )  [protected]
 

Definition at line 762 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::AddFolder(), BIF_NEWDIALOGSTYLE, LibraryFolders, and NULL.

void CLibraryTreeView::OnLibraryExplore  )  [protected]
 

Definition at line 644 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), CFileExecutor::Execute(), Library, LibraryFolders, m_bVirtual, CLibraryTreeCtrl::m_nSelected, CLibraryTreeItem::m_pPhysical, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryFolder::m_sPath, and NULL.

Referenced by PreTranslateMessage().

void CLibraryTreeView::OnLibraryExportCollection  ) 
 

Definition at line 1001 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, CAlbumFolder::m_pXML, and NULL.

void CLibraryTreeView::OnLibraryFolderDelete  )  [protected]
 

Definition at line 861 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckAlbum(), CAlbumFolder::Delete(), IDS_LIBRARY_FOLDER_DELETE, Library, LibraryFolders, CSkin::LoadString(), CLibraryTreeCtrl::m_nSelected, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, CLibraryTreeCtrl::NotifySelection(), NULL, and Skin.

Referenced by PreTranslateMessage().

void CLibraryTreeView::OnLibraryFolderEnqueue  )  [protected]
 

Definition at line 810 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckAlbum(), CFileExecutor::Enqueue(), CLibraryFile::GetPath(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, and CLibraryTreeItem::m_pSelNext.

void CLibraryTreeView::OnLibraryFolderFileProperties  )  [protected]
 

Definition at line 979 of file CtrlLibraryTreeView.cpp.

References CFilePropertiesSheet::Add(), CFilePropertiesSheet::DoModal(), Library, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, and CLibraryTreeItem::m_pSelNext.

void CLibraryTreeView::OnLibraryFolderMetadata  )  [protected]
 

Definition at line 843 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckAlbum(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, CAlbumFolder::MetaToFiles(), and CLibrary::Update().

void CLibraryTreeView::OnLibraryFolderNew  )  [protected]
 

Definition at line 889 of file CtrlLibraryTreeView.cpp.

References CAlbumFolder::AddFolder(), CLibraryTreeCtrl::DeselectAll(), CLibraryTreeCtrl::Expand(), CLibrary::GetAlbumRoot(), CLibraryTreeCtrl::GetFolderItem(), ID_LIBRARY_FOLDER_PROPERTIES, Library, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, CLibraryTreeCtrl::NotifySelection(), NULL, CLibraryTreeCtrl::Select(), and TS_TRUE.

void CLibraryTreeView::OnLibraryFolderProperties  )  [protected]
 

Definition at line 952 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::DeselectAll(), CLibraryTreeCtrl::GetFolderItem(), CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, CLibraryTreeCtrl::NotifySelection(), NULL, CLibraryTreeCtrl::Select(), and TS_TRUE.

Referenced by PreTranslateMessage().

void CLibraryTreeView::OnLibraryParent  )  [protected]
 

Definition at line 614 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::DeselectAll(), CLibraryTreeCtrl::Highlight(), CLibraryTreeCtrl::m_nSelected, CLibraryTreeItem::m_pParent, CLibraryTreeCtrl::m_pRoot, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeCtrl::NotifySelection(), NULL, and CLibraryTreeCtrl::Select().

void CLibraryTreeView::OnLibraryRebuild  )  [protected]
 

Definition at line 924 of file CtrlLibraryTreeView.cpp.

References CLibraryList::GetIterator(), CLibraryList::GetNextFile(), Library, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, and CLibrary::Update().

void CLibraryTreeView::OnLibraryRemove  )  [protected]
 

Definition at line 743 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, NULL, PostUpdate(), CLibraryFolders::RemoveFolder(), and CLibrary::Save().

void CLibraryTreeView::OnLibraryScan  )  [protected]
 

Definition at line 661 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, and CLibraryTreeItem::m_pSelNext.

void CLibraryTreeView::OnLibraryShared  )  [protected]
 

Definition at line 698 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, PostUpdate(), TS_FALSE, TS_TRUE, TS_UNKNOWN, and CLibrary::Update().

void CLibraryTreeView::OnUpdateLibraryExplore CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 639 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, and CLibraryTreeCtrl::m_nSelected.

void CLibraryTreeView::OnUpdateLibraryExportCollection CCmdUI *  pCmdUI  ) 
 

Definition at line 996 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, and CLibraryTreeCtrl::m_nSelected.

void CLibraryTreeView::OnUpdateLibraryFolderDelete CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 856 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryTreeView::OnUpdateLibraryFolderEnqueue CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 793 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckAlbum(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, and CLibraryTreeItem::m_pSelNext.

void CLibraryTreeView::OnUpdateLibraryFolderFileProperties CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 974 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected.

void CLibraryTreeView::OnUpdateLibraryFolderMetadata CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 838 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryTreeView::OnUpdateLibraryFolderNew CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 884 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryTreeView::OnUpdateLibraryFolderProperties CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 947 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pVirtual, and NULL.

void CLibraryTreeView::OnUpdateLibraryParent CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 600 of file CtrlLibraryTreeView.cpp.

References CCoolBarCtrl::GetID(), ID_LIBRARY_PARENT, CLibraryTreeCtrl::m_nSelected, CLibraryFrame::m_wndViewTop, and CCoolBarItem::Show().

void CLibraryTreeView::OnUpdateLibraryRebuild CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 919 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::m_nSelected.

void CLibraryTreeView::OnUpdateLibraryRemove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 723 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, and NULL.

void CLibraryTreeView::OnUpdateLibraryScan CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 656 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, and CLibraryTreeCtrl::m_nSelected.

void CLibraryTreeView::OnUpdateLibraryShared CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 671 of file CtrlLibraryTreeView.cpp.

References CLibraryFolders::CheckFolder(), Library, LibraryFolders, CLibraryTreeCtrl::m_nSelected, CLibrary::m_pSection, CLibraryTreeCtrl::m_pSelFirst, CLibraryTreeItem::m_pSelNext, TS_FALSE, TS_TRUE, and TS_UNKNOWN.

void CLibraryTreeView::PostUpdate  )  [protected]
 

Definition at line 124 of file CtrlLibraryTreeView.cpp.

References ID_LIBRARY_REFRESH.

Referenced by OnLibraryRemove(), and OnLibraryShared().

BOOL CLibraryTreeView::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 550 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, OnLibraryExplore(), OnLibraryFolderDelete(), and OnLibraryFolderProperties().

BOOL CLibraryTreeView::SelectFolder LPVOID  pSearch  ) 
 

Definition at line 390 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::DeselectAll(), CLibraryTreeCtrl::GetFolderItem(), CLibraryTreeCtrl::Highlight(), CLibraryTreeItem::m_bSelected, CLibraryTreeCtrl::m_nSelected, CLibraryTreeCtrl::NotifySelection(), NULL, CLibraryTreeCtrl::Select(), and TS_TRUE.

Referenced by CLibraryFrame::Display().

void CLibraryTreeView::SetVirtual BOOL  bVirtual  ) 
 

Definition at line 102 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::Clear(), m_bVirtual, m_wndAlbumTip, m_wndFolderTip, and CLibraryTreeCtrl::SetToolTip().

Referenced by CLibraryFrame::OnSkinChange().

BOOL CLibraryTreeView::Update CAlbumFolder pFolder,
CLibraryTreeItem pItem,
CLibraryTreeItem pParent,
BOOL  bVisible,
DWORD  nCleanCookie,
DWORD  nSelectCookie
[protected]
 

Definition at line 299 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeItem::Add(), CLibraryTreeCtrl::CleanItems(), CAlbumFolder::GetFolderIterator(), CAlbumFolder::GetNextFolder(), CLibraryTreeItem::m_bBold, CLibraryTreeItem::m_bCollection, CAlbumFolder::m_bCollSHA1, CAlbumFolder::m_bExpanded, CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_bSelected, CLibraryTreeCtrl::m_nCleanCookie, CLibraryTreeItem::m_nCleanCookie, CLibraryTreeItem::m_nCookie, CLibraryTreeItem::m_nCount, CSchema::m_nIcon16, CLibraryTreeItem::m_nIcon16, CAlbumFolder::m_nSelectCookie, CLibraryFile::m_nSelectCookie, CLibraryTreeCtrl::m_nTotal, CAlbumFolder::m_nUpdateCookie, CAlbumFolder::m_pFiles, CLibraryTreeItem::m_pList, CAlbumFolder::m_pSchema, CLibraryTreeItem::m_pVirtual, CAlbumFolder::m_sName, CLibraryTreeItem::m_sText, NULL, and Update().

BOOL CLibraryTreeView::Update CLibraryFolder pFolder,
CLibraryTreeItem pItem,
CLibraryTreeItem pParent,
BOOL  bVisible,
BOOL  bShared,
DWORD  nCleanCookie,
DWORD  nSelectCookie,
BOOL  bRecurse
[protected]
 

Definition at line 173 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeItem::Add(), CLibraryTreeCtrl::CleanItems(), CSettings::sDownloads::CompletePath, CSettings::Downloads, CLibraryFolder::GetFolderIterator(), CLibraryFolder::GetNextFolder(), CLibraryTreeItem::m_bBold, CLibraryFolder::m_bExpanded, CLibraryTreeItem::m_bExpanded, CLibraryTreeItem::m_bSelected, CLibraryTreeItem::m_bShared, CLibraryFolder::m_bShared, CLibraryTreeCtrl::m_nCleanCookie, CLibraryTreeItem::m_nCleanCookie, CLibraryTreeItem::m_nCookie, CLibraryTreeItem::m_nCount, CLibraryFolder::m_nSelectCookie, CLibraryTreeCtrl::m_nTotal, CLibraryFolder::m_nUpdateCookie, CLibraryFolder::m_pFiles, CLibraryTreeItem::m_pList, CLibraryFolder::m_pParent, CLibraryTreeItem::m_pPhysical, CLibraryFolder::m_sName, CLibraryFolder::m_sPath, CLibraryTreeItem::m_sText, NULL, Settings, TS_FALSE, TS_TRUE, and Update().

void CLibraryTreeView::Update DWORD  nSelectCookie  ) 
 

Definition at line 112 of file CtrlLibraryTreeView.cpp.

References m_bVirtual, UpdatePhysical(), and UpdateVirtual().

Referenced by Update(), CLibraryFrame::Update(), UpdatePhysical(), and UpdateVirtual().

void CLibraryTreeView::UpdatePhysical DWORD  nSelectCookie  )  [protected]
 

Definition at line 132 of file CtrlLibraryTreeView.cpp.

References CLibraryTreeCtrl::CleanItems(), CLibraryFolders::GetFolderIterator(), CLibraryFolders::GetNextFolder(), LibraryFolders, CLibraryTreeCtrl::m_nCleanCookie, CLibraryTreeItem::m_nCount, CLibraryTreeItem::m_pList, CLibraryTreeCtrl::m_pRoot, CLibraryTreeCtrl::NotifySelection(), NULL, Update(), and CLibraryTreeCtrl::UpdateScroll().

Referenced by Update().

void CLibraryTreeView::UpdateVirtual DWORD  nSelectCookie  )  [protected]
 

Definition at line 287 of file CtrlLibraryTreeView.cpp.

References CLibrary::GetAlbumRoot(), Library, CLibraryTreeCtrl::m_pRoot, CLibraryTreeCtrl::NotifySelection(), NULL, Update(), and CLibraryTreeCtrl::UpdateScroll().

Referenced by Update().


Member Data Documentation

BOOL CLibraryTreeView::m_bVirtual
 

Definition at line 43 of file CtrlLibraryTreeView.h.

Referenced by OnContextMenu(), OnLButtonDblClk(), OnLibraryExplore(), OnUpdateLibraryExplore(), OnUpdateLibraryExportCollection(), OnUpdateLibraryScan(), PreTranslateMessage(), SetVirtual(), and Update().

CAlbumTipCtrl CLibraryTreeView::m_wndAlbumTip
 

Definition at line 45 of file CtrlLibraryTreeView.h.

Referenced by OnCreate(), and SetVirtual().

CFolderTipCtrl CLibraryTreeView::m_wndFolderTip
 

Definition at line 44 of file CtrlLibraryTreeView.h.

Referenced by OnCreate(), and SetVirtual().


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