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

CLiveList Class Reference

#include <LiveList.h>

List of all members.

Public Member Functions

 CLiveList (int nColumns)
virtual ~CLiveList ()
CLiveItemAdd (DWORD nParam)
CLiveItemAdd (LPVOID pParam)
void Apply (CListCtrl *pCtrl, BOOL bSort=FALSE)

Static Public Member Functions

static void Sort (CListCtrl *pCtrl, int nColumn=-1, BOOL bGraphic=TRUE)
static int CALLBACK SortCallback (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
static int SortProc (LPCTSTR sA, LPCTSTR sB, BOOL bNumeric=FALSE)
static BOOL IsNumber (LPCTSTR pszString)
static CImageList * CreateDragImage (CListCtrl *pList, const CPoint &ptMouse)

Static Public Attributes

static COLORREF crDrag = RGB( 250, 255, 250 )

Protected Member Functions

void Clear ()

Protected Attributes

int m_nColumns
CMap< DWORD, DWORD, CLiveItem *,
CLiveItem *& > 
m_pItems

Static Protected Attributes

static CBitmap m_bmSortAsc
static CBitmap m_bmSortDesc


Constructor & Destructor Documentation

CLiveList::CLiveList int  nColumns  ) 
 

Definition at line 37 of file LiveList.cpp.

References m_nColumns.

CLiveList::~CLiveList  )  [virtual]
 

Definition at line 42 of file LiveList.cpp.

References Clear().


Member Function Documentation

CLiveItem * CLiveList::Add LPVOID  pParam  ) 
 

Definition at line 73 of file LiveList.cpp.

References Add().

CLiveItem * CLiveList::Add DWORD  nParam  ) 
 

Definition at line 66 of file LiveList.cpp.

References m_nColumns, and m_pItems.

Referenced by Add(), CDownloadReviewDlg::OnInitDialog(), CSecurityWnd::Update(), CNeighboursWnd::Update(), CHostCacheWnd::Update(), CDiscoveryWnd::Update(), and CUploadsSettingsPage::UpdateQueues().

void CLiveList::Apply CListCtrl *  pCtrl,
BOOL  bSort = FALSE
 

Definition at line 81 of file LiveList.cpp.

References CLiveItem::Add(), m_nColumns, m_pItems, NULL, Sort(), and CLiveItem::Update().

Referenced by CDownloadReviewDlg::OnInitDialog(), CSecurityWnd::Update(), CNeighboursWnd::Update(), CHostCacheWnd::Update(), CDiscoveryWnd::Update(), and CUploadsSettingsPage::UpdateQueues().

void CLiveList::Clear  )  [protected]
 

Definition at line 50 of file LiveList.cpp.

References m_pItems.

Referenced by ~CLiveList().

CImageList * CLiveList::CreateDragImage CListCtrl *  pList,
const CPoint &  ptMouse
[static]
 

Definition at line 425 of file LiveList.cpp.

References crDrag, MAX_DRAG_SIZE, MAX_DRAG_SIZE_2, and NULL.

Referenced by CMediaListCtrl::OnBeginDrag(), CLibraryDetailView::OnBeginDrag(), and CDragListCtrl::OnBeginDrag().

BOOL CLiveList::IsNumber LPCTSTR  pszString  )  [inline, static]
 

Definition at line 377 of file LiveList.cpp.

References NULL.

Referenced by SortProc().

void CLiveList::Sort CListCtrl *  pCtrl,
int  nColumn = -1,
BOOL  bGraphic = TRUE
[static]
 

Definition at line 241 of file LiveList.cpp.

References IDB_SORT_ASC, IDB_SORT_DESC, m_bmSortAsc, m_bmSortDesc, NULL, SortCallback(), and theApp.

Referenced by Apply(), CAdvancedSettingsPage::OnColumnClickProperties(), CUploadsSettingsPage::OnInitDialog(), CAdvancedSettingsPage::OnInitDialog(), CDownloadReviewDlg::OnInitDialog(), CSecurityWnd::OnSortList(), CNeighboursWnd::OnSortList(), CHostCacheWnd::OnSortList(), CDiscoveryWnd::OnSortList(), and CLibraryDetailView::SortItems().

int CALLBACK CLiveList::SortCallback LPARAM  lParam1,
LPARAM  lParam2,
LPARAM  lParamSort
[static]
 

Definition at line 314 of file LiveList.cpp.

References SortProc().

Referenced by Sort().

int CLiveList::SortProc LPCTSTR  sA,
LPCTSTR  sB,
BOOL  bNumeric = FALSE
[static]
 

Definition at line 338 of file LiveList.cpp.

References IsNumber().

Referenced by CMatchFile::Compare(), CLibraryDetailView::ListCompare(), and SortCallback().


Member Data Documentation

COLORREF CLiveList::crDrag = RGB( 250, 255, 250 ) [static]
 

Definition at line 423 of file LiveList.cpp.

Referenced by CreateDragImage().

CBitmap CLiveList::m_bmSortAsc [static, protected]
 

Definition at line 238 of file LiveList.cpp.

Referenced by Sort().

CBitmap CLiveList::m_bmSortDesc [static, protected]
 

Definition at line 239 of file LiveList.cpp.

Referenced by Sort().

int CLiveList::m_nColumns [protected]
 

Definition at line 39 of file LiveList.h.

Referenced by Add(), Apply(), and CLiveList().

CMap<DWORD, DWORD, CLiveItem*, CLiveItem*&> CLiveList::m_pItems [protected]
 

Definition at line 40 of file LiveList.h.

Referenced by Add(), Apply(), and Clear().


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