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

CLibraryDetailView Class Reference

#include <CtrlLibraryDetailView.h>

Inheritance diagram for CLibraryDetailView:

CLibraryFileView CLibraryView CLibraryIconView CLibraryListView List of all members.

Public Member Functions

 CLibraryDetailView (UINT nCommandID=ID_LIBRARY_VIEW_DETAIL)
virtual ~CLibraryDetailView ()
virtual void Update ()
virtual BOOL Select (DWORD nObject)
virtual void CacheSelection ()
virtual DWORD HitTestIndex (const CPoint &point) const
void SetViewSchema (CSchema *pSchema, CPtrList *pColumns, BOOL bSave, BOOL bUpdate)
virtual BOOL Create (CWnd *pParentWnd)

Protected Member Functions

void CacheItem (int nItem)
void SortItems (int nColumn=-1)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnUpdateLibraryRename (CCmdUI *pCmdUI)
afx_msg void OnLibraryRename ()
afx_msg void OnLibraryColumns ()
afx_msg void OnUpdateLibraryColumns (CCmdUI *pCmdUI)
afx_msg void OnCacheHint (NMLVCACHEHINT *pNotify, LRESULT *pResult)
afx_msg void OnGetDispInfoW (NMLVDISPINFO *pNotify, LRESULT *pResult)
afx_msg void OnGetDispInfoA (NMLVDISPINFO *pNotify, LRESULT *pResult)
afx_msg void OnColumnClick (NM_LISTVIEW *pNotify, LRESULT *pResult)
afx_msg void OnBeginLabelEdit (LV_DISPINFO *pNotify, LRESULT *pResult)
afx_msg void OnEndLabelEditW (LV_DISPINFO *pNotify, LRESULT *pResult)
afx_msg void OnEndLabelEditA (LV_DISPINFO *pNotify, LRESULT *pResult)
afx_msg void OnBeginDrag (NM_LISTVIEW *pNotify, LRESULT *pResult)
afx_msg void OnItemChanged (NM_LISTVIEW *pNotify, LRESULT *pResult)
afx_msg void OnItemRangeChanged (NMLVODSTATECHANGE *pNotify, LRESULT *pResult)
afx_msg void OnFindItemW (NMLVFINDITEM *pNotify, LRESULT *pResult)
afx_msg void OnFindItemA (NMLVFINDITEM *pNotify, LRESULT *pResult)
afx_msg void OnCustomDraw (NMLVCUSTOMDRAW *pNotify, LRESULT *pResult)
afx_msg void OnDblClk (NMHDR *pNotify, LRESULT *pResult)
afx_msg void OnUpdateBlocker (CCmdUI *pCmdUI)

Static Protected Member Functions

static int ListCompare (LPCVOID pA, LPCVOID pB)

Protected Attributes

UINT m_nStyle
CSchemam_pSchema
CPtrList m_pColumns
CCoolMenum_pCoolMenu
BOOL m_bCreateDragImage
LDVITEMm_pList
DWORD m_nList
DWORD m_nBuffer
DWORD m_nListCookie
int m_nSortColumn
BOOL m_bSortFlip

Static Protected Attributes

static CLibraryDetailViewm_pThis

Classes

struct  LDVITEM

Constructor & Destructor Documentation

CLibraryDetailView::CLibraryDetailView UINT  nCommandID = ID_LIBRARY_VIEW_DETAIL  ) 
 

Definition at line 90 of file CtrlLibraryDetailView.cpp.

References ID_LIBRARY_VIEW_DETAIL, ID_LIBRARY_VIEW_ICON, ID_LIBRARY_VIEW_LIST, and NULL.

CLibraryDetailView::~CLibraryDetailView  )  [virtual]
 

Definition at line 109 of file CtrlLibraryDetailView.cpp.


Member Function Documentation

void CLibraryDetailView::CacheItem int  nItem  )  [protected]
 

Definition at line 382 of file CtrlLibraryDetailView.cpp.

References DETAIL_COLUMNS, CSchema::Equals(), CShellIcons::Get(), CXMLNode::GetName(), CLibraryFile::GetSize(), CSchemaMember::GetValueFrom(), CSHA::HashToString(), CLibraryFile::IsShared(), LDVI_PRIVATE, LDVI_SELECTED, LDVI_UNSAFE, LDVI_UNSCANNED, Library, CLibrary::LookupFile(), CLibraryFile::m_bSHA1, CLibraryFile::m_bVerify, CLibraryFile::m_nHitsToday, CLibraryFile::m_nHitsTotal, CLibraryFile::m_nIcon16, m_nListCookie, m_nStyle, CLibraryFile::m_nUploadsToday, CLibraryFile::m_nUploadsTotal, m_pColumns, CLibraryFile::m_pFolder, m_pList, CLibraryFile::m_pMetadata, CLibraryFile::m_pSchema, m_pSchema, CLibraryFile::m_pSHA1, CLibraryFile::m_pTime, CSchemaMember::m_sName, CLibraryFile::m_sName, CLibraryFolder::m_sPath, CSchema::m_sSingular, CLibraryDetailView::LDVITEM::nCookie, CLibraryDetailView::LDVITEM::nIcon, CLibraryDetailView::LDVITEM::nState, NULL, CLibraryDetailView::LDVITEM::pText, Settings, ShellIcons, CSettings::SmartVolume(), and TS_FALSE.

Referenced by OnCacheHint(), OnGetDispInfoA(), and OnGetDispInfoW().

void CLibraryDetailView::CacheSelection  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 670 of file CtrlLibraryDetailView.cpp.

References GET_LIST, CLibraryView::SelAdd(), and CLibraryView::SelClear().

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

Reimplemented from CLibraryView.

Definition at line 116 of file CtrlLibraryDetailView.cpp.

References IDC_LIBRARY_VIEW, CShareazaApp::m_bRTL, m_nStyle, CLibraryView::SelClear(), and theApp.

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

Implements CLibraryFileView.

Definition at line 681 of file CtrlLibraryDetailView.cpp.

References GET_LIST, m_pList, and CLibraryDetailView::LDVITEM::nIndex.

int CLibraryDetailView::ListCompare LPCVOID  pA,
LPCVOID  pB
[static, protected]
 

Definition at line 581 of file CtrlLibraryDetailView.cpp.

References DETAIL_COLUMNS, CLibraryFile::GetSize(), CSchemaMember::GetValueFrom(), Library, CLibrary::LookupFile(), m_bSortFlip, CLibraryFile::m_nHitsTotal, m_nSortColumn, CLibraryFile::m_nUploadsTotal, m_pColumns, CLibraryFile::m_pFolder, CLibraryFile::m_pMetadata, m_pThis, CLibraryFile::m_pTime, CLibraryFile::m_sName, CLibraryFolder::m_sPath, CLibraryDetailView::LDVITEM::nIndex, NULL, and CLiveList::SortProc().

Referenced by SortItems().

void CLibraryDetailView::OnBeginDrag NM_LISTVIEW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 980 of file CtrlLibraryDetailView.cpp.

References CLiveList::CreateDragImage(), CLibraryView::DragObjects(), GET_LIST, m_bCreateDragImage, and NULL.

void CLibraryDetailView::OnBeginLabelEdit LV_DISPINFO *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 746 of file CtrlLibraryDetailView.cpp.

References CLibraryFileView::m_bEditing.

void CLibraryDetailView::OnCacheHint NMLVCACHEHINT *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 475 of file CtrlLibraryDetailView.cpp.

References CacheItem(), Library, and CLibrary::m_pSection.

void CLibraryDetailView::OnColumnClick NM_LISTVIEW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 740 of file CtrlLibraryDetailView.cpp.

References SortItems().

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

Reimplemented from CLibraryFileView.

Definition at line 916 of file CtrlLibraryDetailView.cpp.

References CCoolMenu::AddMenu(), CSchemaColumnsDlg::BuildColumnMenu(), CSkin::GetWatermark(), ID_LIBRARY_COLUMNS, ID_SEPARATOR, IDS_SCHEMAS, LoadString(), m_nStyle, m_pColumns, m_pCoolMenu, m_pSchema, NULL, CLibraryFileView::OnContextMenu(), OnLibraryColumns(), SetViewSchema(), CCoolMenu::SetWatermark(), Skin, and CSchemaColumnsDlg::ToggleColumnHelper().

int CLibraryDetailView::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CLibraryFileView.

Definition at line 128 of file CtrlLibraryDetailView.cpp.

References CSettings::sLibrary::FilterURI, CSchemaCache::Get(), GET_LIST, CShellIcons::GetObject(), CSettings::Library, CSchemaColumnsDlg::LoadColumns(), m_bCreateDragImage, m_nBuffer, m_nList, m_nStyle, m_pList, NULL, CLibraryFileView::OnCreate(), SchemaCache, CSettings::sLibrary::SchemaURI, Settings, SetViewSchema(), ShellIcons, Skin, and CSkin::Translate().

void CLibraryDetailView::OnCustomDraw NMLVCUSTOMDRAW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 874 of file CtrlLibraryDetailView.cpp.

References CoolInterface, LDVI_PRIVATE, LDVI_SELECTED, LDVI_UNSAFE, LDVI_UNSCANNED, m_bCreateDragImage, CCoolInterface::m_crDisabled, CCoolInterface::m_crHighlight, CCoolInterface::m_crHiText, m_nList, m_pList, and CLibraryDetailView::LDVITEM::nState.

void CLibraryDetailView::OnDblClk NMHDR *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 907 of file CtrlLibraryDetailView.cpp.

References ID_LIBRARY_LAUNCH.

void CLibraryDetailView::OnDestroy  )  [protected]
 

Definition at line 187 of file CtrlLibraryDetailView.cpp.

References m_nBuffer, m_nList, m_nStyle, m_pList, m_pSchema, CSchema::m_sSingular, NULL, CLibraryDetailView::LDVITEM::pText, CSettings::SaveList(), and Settings.

void CLibraryDetailView::OnDrawItem int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct
[protected]
 

Definition at line 972 of file CtrlLibraryDetailView.cpp.

References m_pCoolMenu, and CCoolMenu::OnDrawItem().

void CLibraryDetailView::OnEndLabelEditA LV_DISPINFO *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 783 of file CtrlLibraryDetailView.cpp.

References CShareazaApp::GetErrorString(), IDS_LIBRARY_RENAME_FAIL, LDVI_SELECTED, Library, LoadString(), CLibrary::LookupFile(), CLibraryFileView::m_bEditing, m_pList, CLibrary::m_pSection, CLibraryDetailView::LDVITEM::nIndex, CLibraryDetailView::LDVITEM::nState, theApp, and CLibrary::Update().

void CLibraryDetailView::OnEndLabelEditW LV_DISPINFO *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 752 of file CtrlLibraryDetailView.cpp.

References CShareazaApp::GetErrorString(), IDS_LIBRARY_RENAME_FAIL, LDVI_SELECTED, Library, LoadString(), CLibrary::LookupFile(), CLibraryFileView::m_bEditing, m_pList, CLibrary::m_pSection, CLibraryDetailView::LDVITEM::nIndex, CLibraryDetailView::LDVITEM::nState, theApp, and CLibrary::Update().

void CLibraryDetailView::OnFindItemA NMLVFINDITEM *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 844 of file CtrlLibraryDetailView.cpp.

References GET_LIST, Library, CLibrary::LookupFile(), m_pList, CLibrary::m_pSection, and CLibraryDetailView::LDVITEM::nIndex.

void CLibraryDetailView::OnFindItemW NMLVFINDITEM *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 814 of file CtrlLibraryDetailView.cpp.

References GET_LIST, Library, CLibrary::LookupFile(), m_pList, CLibrary::m_pSection, and CLibraryDetailView::LDVITEM::nIndex.

void CLibraryDetailView::OnGetDispInfoA NMLVDISPINFO *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 522 of file CtrlLibraryDetailView.cpp.

References CacheItem(), LDVI_SELECTED, Library, m_nListCookie, m_pList, CLibrary::m_pSection, CLibraryDetailView::LDVITEM::nCookie, CLibraryDetailView::LDVITEM::nIcon, CLibraryDetailView::LDVITEM::nState, NULL, and CLibraryDetailView::LDVITEM::pText.

void CLibraryDetailView::OnGetDispInfoW NMLVDISPINFO *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 486 of file CtrlLibraryDetailView.cpp.

References CacheItem(), LDVI_SELECTED, Library, m_nListCookie, m_pList, CLibrary::m_pSection, CLibraryDetailView::LDVITEM::nCookie, CLibraryDetailView::LDVITEM::nIcon, CLibraryDetailView::LDVITEM::nState, and CLibraryDetailView::LDVITEM::pText.

void CLibraryDetailView::OnItemChanged NM_LISTVIEW *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 689 of file CtrlLibraryDetailView.cpp.

References LDVI_SELECTED, m_nList, m_pList, CLibraryDetailView::LDVITEM::nIndex, CLibraryDetailView::LDVITEM::nState, CLibraryView::SelAdd(), CLibraryView::SelClear(), and CLibraryView::SelRemove().

void CLibraryDetailView::OnItemRangeChanged NMLVODSTATECHANGE *  pNotify,
LRESULT *  pResult
[protected]
 

Definition at line 718 of file CtrlLibraryDetailView.cpp.

References LDVI_SELECTED, m_pList, CLibraryDetailView::LDVITEM::nState, CLibraryView::SelAdd(), and CLibraryView::SelRemove().

void CLibraryDetailView::OnLibraryColumns  )  [protected]
 

Definition at line 1017 of file CtrlLibraryDetailView.cpp.

References CSettings::sLibrary::FilterURI, CSettings::Library, m_pColumns, CSchemaColumnsDlg::m_pColumns, m_pSchema, CSchemaColumnsDlg::m_pSchema, CSchema::m_sURI, CSettings::sLibrary::SchemaURI, Settings, and SetViewSchema().

Referenced by OnContextMenu().

void CLibraryDetailView::OnLibraryRename  )  [protected]
 

Definition at line 1006 of file CtrlLibraryDetailView.cpp.

void CLibraryDetailView::OnMeasureItem int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct
[protected]
 

Definition at line 967 of file CtrlLibraryDetailView.cpp.

References m_pCoolMenu, and CCoolMenu::OnMeasureItem().

void CLibraryDetailView::OnUpdateBlocker CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 961 of file CtrlLibraryDetailView.cpp.

References m_pCoolMenu.

void CLibraryDetailView::OnUpdateLibraryColumns CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1012 of file CtrlLibraryDetailView.cpp.

References m_nStyle.

void CLibraryDetailView::OnUpdateLibraryRename CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 1001 of file CtrlLibraryDetailView.cpp.

References CLibraryView::GetSelectedCount().

BOOL CLibraryDetailView::Select DWORD  nObject  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 352 of file CtrlLibraryDetailView.cpp.

References GET_LIST, m_nList, m_pList, and CLibraryDetailView::LDVITEM::nIndex.

void CLibraryDetailView::SetViewSchema CSchema pSchema,
CPtrList *  pColumns,
BOOL  bSave,
BOOL  bUpdate
 

Definition at line 220 of file CtrlLibraryDetailView.cpp.

References DETAIL_COLUMNS, GET_LIST, CSettings::LoadList(), CSchemaMember::m_nColumnAlign, CSchemaMember::m_nColumnWidth, m_nStyle, m_pColumns, m_pSchema, CSchema::m_sSingular, CSchemaMember::m_sTitle, CLibraryView::PostUpdate(), CSettings::SaveList(), and Settings.

Referenced by OnContextMenu(), OnCreate(), OnLibraryColumns(), and Update().

void CLibraryDetailView::SortItems int  nColumn = -1  )  [protected]
 

Definition at line 563 of file CtrlLibraryDetailView.cpp.

References GET_LIST, ListCompare(), m_bSortFlip, m_nList, m_nSortColumn, m_nStyle, m_pList, m_pThis, and CLiveList::Sort().

Referenced by OnColumnClick(), and Update().

void CLibraryDetailView::Update  )  [virtual]
 

Reimplemented from CLibraryView.

Definition at line 267 of file CtrlLibraryDetailView.cpp.

References CSchema::Equals(), CSchema::FilterType(), CSettings::sLibrary::FilterURI, CSchemaCache::Get(), GET_LIST, CSchema::GetContainedURI(), CLibraryMaps::GetFileIterator(), CLibraryView::GetFolderCookie(), CLibraryView::GetFolderSelection(), CLibraryMaps::GetNextFile(), CLibraryFile::IsAvailable(), LDVI_SELECTED, Library, CSettings::Library, LibraryMaps, CSchemaColumnsDlg::LoadColumns(), CLibrary::LookupFile(), m_nBuffer, CLibraryFile::m_nIndex, m_nList, m_nListCookie, CLibraryFile::m_nListCookie, CLibraryFile::m_nSelectCookie, m_nStyle, m_pList, CLibraryFile::m_pMetadata, CLibraryFile::m_pSchema, m_pSchema, CAlbumFolder::m_pSchema, CLibraryTreeItem::m_pSelNext, CLibraryTreeItem::m_pVirtual, CLibraryFile::m_sName, CSchema::m_sURI, CLibraryDetailView::LDVITEM::nIndex, CLibraryDetailView::LDVITEM::nState, NULL, CLibraryDetailView::LDVITEM::pText, SchemaCache, CLibraryView::SelRemove(), Settings, SetViewSchema(), CSettings::sLibrary::ShowVirtual, SortItems(), and CSchema::stFile.


Member Data Documentation

BOOL CLibraryDetailView::m_bCreateDragImage [protected]
 

Definition at line 61 of file CtrlLibraryDetailView.h.

Referenced by OnBeginDrag(), OnCreate(), and OnCustomDraw().

BOOL CLibraryDetailView::m_bSortFlip [protected]
 

Definition at line 79 of file CtrlLibraryDetailView.h.

Referenced by ListCompare(), and SortItems().

DWORD CLibraryDetailView::m_nBuffer [protected]
 

Definition at line 76 of file CtrlLibraryDetailView.h.

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

DWORD CLibraryDetailView::m_nList [protected]
 

Definition at line 75 of file CtrlLibraryDetailView.h.

Referenced by OnCreate(), OnCustomDraw(), OnDestroy(), OnItemChanged(), Select(), SortItems(), and Update().

DWORD CLibraryDetailView::m_nListCookie [protected]
 

Definition at line 77 of file CtrlLibraryDetailView.h.

Referenced by CacheItem(), OnGetDispInfoA(), OnGetDispInfoW(), and Update().

int CLibraryDetailView::m_nSortColumn [protected]
 

Definition at line 78 of file CtrlLibraryDetailView.h.

Referenced by ListCompare(), and SortItems().

UINT CLibraryDetailView::m_nStyle [protected]
 

Definition at line 56 of file CtrlLibraryDetailView.h.

Referenced by CacheItem(), Create(), OnContextMenu(), OnCreate(), OnDestroy(), OnUpdateLibraryColumns(), SetViewSchema(), SortItems(), and Update().

CPtrList CLibraryDetailView::m_pColumns [protected]
 

Definition at line 59 of file CtrlLibraryDetailView.h.

Referenced by CacheItem(), ListCompare(), OnContextMenu(), OnLibraryColumns(), and SetViewSchema().

CCoolMenu* CLibraryDetailView::m_pCoolMenu [protected]
 

Definition at line 60 of file CtrlLibraryDetailView.h.

Referenced by OnContextMenu(), OnDrawItem(), OnMeasureItem(), and OnUpdateBlocker().

LDVITEM* CLibraryDetailView::m_pList [protected]
 

Definition at line 74 of file CtrlLibraryDetailView.h.

Referenced by CacheItem(), HitTestIndex(), OnCreate(), OnCustomDraw(), OnDestroy(), OnEndLabelEditA(), OnEndLabelEditW(), OnFindItemA(), OnFindItemW(), OnGetDispInfoA(), OnGetDispInfoW(), OnItemChanged(), OnItemRangeChanged(), Select(), SortItems(), and Update().

CSchema* CLibraryDetailView::m_pSchema [protected]
 

Definition at line 58 of file CtrlLibraryDetailView.h.

Referenced by CacheItem(), OnContextMenu(), OnDestroy(), OnLibraryColumns(), SetViewSchema(), and Update().

CLibraryDetailView * CLibraryDetailView::m_pThis [static, protected]
 

Definition at line 561 of file CtrlLibraryDetailView.cpp.

Referenced by ListCompare(), and SortItems().


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