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

CMetaList Class Reference

#include <MetaList.h>

Inheritance diagram for CMetaList:

CMetaPanel List of all members.

Public Member Functions

 CMetaList ()
virtual ~CMetaList ()
void Clear ()
CMetaItemAdd (LPCTSTR pszKey, LPCTSTR pszValue)
CMetaItemFind (LPCTSTR pszKey) const
void Remove (LPCTSTR pszKey)
void Shuffle ()
void Setup (CSchema *pSchema, BOOL bClear=TRUE)
void Combine (CXMLElement *pXML)
void Vote ()
void CreateLinks ()
void Clean (int nMaxLength=128)
void ComputeWidth (CDC *pDC, int &nKeyWidth, int &nValueWidth)
CMetaItemHitTest (const CPoint &point, BOOL bLinksOnly=FALSE)
BOOL OnSetCursor (CWnd *pWnd)
POSITION GetIterator () const
CMetaItemGetNext (POSITION &pos) const
int GetCount () const
CMetaItemGetFirst () const

Protected Attributes

CPtrList m_pItems

Constructor & Destructor Documentation

CMetaList::CMetaList  ) 
 

Definition at line 41 of file MetaList.cpp.

References IDS_MULTIPLE, LoadString(), and strMultiple.

CMetaList::~CMetaList  )  [virtual]
 

Definition at line 46 of file MetaList.cpp.

References Clear().


Member Function Documentation

CMetaItem * CMetaList::Add LPCTSTR  pszKey,
LPCTSTR  pszValue
 

Definition at line 67 of file MetaList.cpp.

References m_pItems, CMetaItem::m_sKey, CMetaItem::m_sValue, and NULL.

Referenced by CLibraryTipCtrl::OnPrepare(), and CMediaFrame::OpenFile().

void CMetaList::Clean int  nMaxLength = 128  ) 
 

Definition at line 193 of file MetaList.cpp.

References GetIterator(), GetNext(), CMetaItem::Limit(), and m_pItems.

Referenced by CMatchTipCtrl::LoadFromFile(), CMatchTipCtrl::LoadFromHit(), CAlbumTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CMediaFrame::OpenFile(), CSearchDetailPanel::Update(), CLibraryMetaPanel::Update(), and CLibraryHeaderPanel::Update().

void CMetaList::Clear  ) 
 

Definition at line 54 of file MetaList.cpp.

References GetIterator(), GetNext(), and m_pItems.

Referenced by CMediaFrame::Cleanup(), CAlbumTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CMediaFrame::OpenFile(), Setup(), and ~CMetaList().

void CMetaList::Combine CXMLElement pXML  ) 
 

Definition at line 138 of file MetaList.cpp.

References GetIterator(), GetNext(), and NULL.

Referenced by CMatchTipCtrl::LoadFromFile(), CMatchTipCtrl::LoadFromHit(), CAlbumTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CMediaFrame::OpenFile(), CSearchDetailPanel::Update(), CLibraryMetaPanel::Update(), and CLibraryHeaderPanel::Update().

void CMetaList::ComputeWidth CDC *  pDC,
int &  nKeyWidth,
int &  nValueWidth
 

Definition at line 211 of file MetaList.cpp.

References GetIterator(), GetNext(), CMetaItem::m_sKey, and CMetaItem::m_sValue.

Referenced by CMatchTipCtrl::ComputeSize(), CAlbumTipCtrl::OnCalcSize(), CLibraryTipCtrl::OnCalcSize(), and CLibraryHeaderPanel::Update().

void CMetaList::CreateLinks  ) 
 

Definition at line 162 of file MetaList.cpp.

References CMetaItem::CreateLink(), Find(), GetIterator(), GetNext(), CMetaItem::m_sKey, and CMetaItem::m_sValue.

Referenced by CSearchDetailPanel::Update(), CLibraryMetaPanel::Update(), and CLibraryHeaderPanel::Update().

CMetaItem * CMetaList::Find LPCTSTR  pszKey  )  const
 

Definition at line 79 of file MetaList.cpp.

References GetIterator(), GetNext(), CMetaItem::m_sKey, and NULL.

Referenced by CreateLinks(), and CMediaFrame::OpenFile().

int CMetaList::GetCount  )  const [inline]
 

Definition at line 73 of file MetaList.h.

References m_pItems.

Referenced by CMatchTipCtrl::ComputeSize(), CLibraryHeaderPanel::DoPaint(), CAlbumTipCtrl::OnCalcSize(), CLibraryTipCtrl::OnCalcSize(), CMatchTipCtrl::OnPaint(), and CLibraryHeaderPanel::Update().

CMetaItem* CMetaList::GetFirst  )  const [inline]
 

Definition at line 78 of file MetaList.h.

References m_pItems, and NULL.

Referenced by CMediaFrame::PaintStatus(), and CMediaFrame::PaintStatusMicro().

POSITION CMetaList::GetIterator  )  const [inline]
 

Definition at line 63 of file MetaList.h.

References m_pItems.

Referenced by Clean(), Clear(), Combine(), ComputeWidth(), CreateLinks(), CLibraryHeaderPanel::DoPaint(), Find(), HitTest(), CMetaPanel::Layout(), CAlbumTipCtrl::OnPaint(), CMatchTipCtrl::OnPaint(), CLibraryTipCtrl::OnPaint(), CMetaPanel::Paint(), Remove(), and Vote().

CMetaItem* CMetaList::GetNext POSITION &  pos  )  const [inline]
 

Definition at line 68 of file MetaList.h.

References m_pItems, and NULL.

Referenced by Clean(), Clear(), Combine(), ComputeWidth(), CreateLinks(), CLibraryHeaderPanel::DoPaint(), Find(), HitTest(), CMetaPanel::Layout(), CAlbumTipCtrl::OnPaint(), CMatchTipCtrl::OnPaint(), CLibraryTipCtrl::OnPaint(), CMetaPanel::Paint(), Remove(), and Vote().

CMetaItem * CMetaList::HitTest const CPoint &  point,
BOOL  bLinksOnly = FALSE
 

Definition at line 228 of file MetaList.cpp.

References GetIterator(), GetNext(), CMetaItem::m_bLink, CMetaItem::m_rect, and NULL.

Referenced by CMetaPanel::OnClick(), CLibraryMetaPanel::OnLButtonUp(), CLibraryHeaderPanel::OnLButtonUp(), OnSetCursor(), CSearchDetailPanel::OnSetCursor(), and CLibraryMetaPanel::OnSetCursor().

BOOL CMetaList::OnSetCursor CWnd *  pWnd  ) 
 

Definition at line 246 of file MetaList.cpp.

References HitTest(), IDC_HAND, and NULL.

Referenced by CLibraryHeaderPanel::OnSetCursor().

void CMetaList::Remove LPCTSTR  pszKey  ) 
 

Definition at line 93 of file MetaList.cpp.

References GetIterator(), GetNext(), m_pItems, and CMetaItem::m_sKey.

Referenced by CMediaFrame::OpenFile(), and CLibraryHeaderPanel::Update().

void CMetaList::Setup CSchema pSchema,
BOOL  bClear = TRUE
 

Definition at line 123 of file MetaList.cpp.

References Clear(), and m_pItems.

Referenced by CMatchTipCtrl::LoadFromFile(), CMatchTipCtrl::LoadFromHit(), CAlbumTipCtrl::OnPrepare(), CLibraryTipCtrl::OnPrepare(), CMediaFrame::OpenFile(), CSearchDetailPanel::Update(), CLibraryMetaPanel::Update(), and CLibraryHeaderPanel::Update().

void CMetaList::Shuffle  ) 
 

Definition at line 112 of file MetaList.cpp.

References m_pItems.

Referenced by CMediaFrame::OnTimer().

void CMetaList::Vote  ) 
 

Definition at line 151 of file MetaList.cpp.

References GetIterator(), and GetNext().

Referenced by CMatchTipCtrl::LoadFromFile(), and CSearchDetailPanel::Update().


Member Data Documentation

CPtrList CMetaList::m_pItems [protected]
 

Definition at line 43 of file MetaList.h.

Referenced by Add(), Clean(), Clear(), GetCount(), GetFirst(), GetIterator(), GetNext(), CMetaPanel::Layout(), CMetaPanel::Paint(), Remove(), Setup(), and Shuffle().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:10 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2