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

CDownloadsCtrl Class Reference

#include <CtrlDownloads.h>

List of all members.

Public Member Functions

 CDownloadsCtrl ()
virtual ~CDownloadsCtrl ()
BOOL Create (CWnd *pParentWnd, UINT nID)
BOOL Update ()
BOOL Update (int nGroupCookie)
BOOL DropShowTarget (CPtrList *pSel, const CPoint &ptScreen)
BOOL DropObjects (CPtrList *pSel, const CPoint &ptScreen)
int GetExpandableColumnX () const
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnDestroy ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
afx_msg void OnChangeHeader (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnSortPanelItems (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnEnterKey ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnSetFocus (CWnd *pOldWnd)
afx_msg void OnKillFocus (CWnd *pNewWnd)

Static Public Member Functions

static BOOL IsFiltered (CDownload *pDownload)
static BOOL IsExpandable (CDownload *pDownload)

Protected Member Functions

void InsertColumn (int nColumn, LPCTSTR pszCaption, int nFormat, int nWidth)
void SaveColumnState ()
BOOL LoadColumnState ()
void SelectTo (int nIndex)
void BubbleSortDownloads (int nColumn)
void DeselectAll (CDownload *pExcept1=NULL, CDownloadSource *pExcept2=NULL)
void SelectAll (CDownload *pExcept1=NULL, CDownloadSource *pExcept2=NULL)
int GetSelectedCount ()
BOOL HitTest (const CPoint &point, CDownload **ppDownload, CDownloadSource **ppSource, int *pnIndex, RECT *prcItem)
BOOL GetAt (int nSelect, CDownload **ppDownload, CDownloadSource **ppSource)
BOOL GetRect (CDownload *pSelect, RECT *prcItem)
void MoveSelected (int nDelta)
CString GetDownloadStatus (CDownload *pDownload)
int GetClientStatus (CDownload *pDownload)
void PaintDownload (CDC &dc, const CRect &rcRow, CDownload *pDownload, BOOL bFocus, BOOL bDrop)
void PaintSource (CDC &dc, const CRect &rcRow, CDownload *pDownload, CDownloadSource *pSource, BOOL bFocus)
void OnBeginDrag (CPoint ptAction)
CImageList * CreateDragImage (CPtrList *pSel, const CPoint &ptMouse)

Protected Attributes

CHeaderCtrl m_wndHeader
CDownloadTipCtrl m_wndTip
CImageList m_pProtocols
int m_nGroupCookie
int m_nFocus
BOOL m_bCreateDragImage
CDownloadm_pDragDrop
BOOL m_bDrag
CPoint m_ptDrag
CDownloadm_pDeselect1
CDownloadSourcem_pDeselect2
BOOL * m_pbSortAscending
int m_nScrollWheelLines

Friends

class CDownloadsWnd


Constructor & Destructor Documentation

CDownloadsCtrl::CDownloadsCtrl  ) 
 

Definition at line 83 of file CtrlDownloads.cpp.

CDownloadsCtrl::~CDownloadsCtrl  )  [virtual]
 

Definition at line 92 of file CtrlDownloads.cpp.


Member Function Documentation

void CDownloadsCtrl::BubbleSortDownloads int  nColumn  )  [protected]
 

Definition at line 1481 of file CtrlDownloads.cpp.

References DOWNLOAD_COLUMN_CLIENT, DOWNLOAD_COLUMN_DOWNLOADED, DOWNLOAD_COLUMN_PERCENTAGE, DOWNLOAD_COLUMN_PROGRESS, DOWNLOAD_COLUMN_SIZE, DOWNLOAD_COLUMN_SPEED, DOWNLOAD_COLUMN_STATUS, DOWNLOAD_COLUMN_TITLE, Downloads, GetClientStatus(), CDownloads::GetCount(), CDownloadWithFile::GetDisplayName(), GetDownloadStatus(), CDownloads::GetIterator(), CDownloadWithTransfers::GetMeasuredSpeed(), CDownloads::GetNext(), CDownloads::GetPrevious(), CDownloadWithFile::GetProgress(), CDownloadWithFile::GetVolumeComplete(), CDownloadBase::m_nSize, m_pbSortAscending, NULL, pass, and CDownloads::Swap().

Referenced by OnSortPanelItems().

BOOL CDownloadsCtrl::Create CWnd *  pParentWnd,
UINT  nID
 

Definition at line 99 of file CtrlDownloads.cpp.

References NULL.

Referenced by CDownloadsWnd::OnCreate().

CImageList * CDownloadsCtrl::CreateDragImage CPtrList *  pSel,
const CPoint &  ptMouse
[protected]
 

Definition at line 1958 of file CtrlDownloads.cpp.

References CoolInterface, GetRect(), CCoolInterface::m_fntNormal, MAX_DRAG_SIZE, MAX_DRAG_SIZE_2, NULL, and PaintDownload().

Referenced by OnBeginDrag().

void CDownloadsCtrl::DeselectAll CDownload pExcept1 = NULL,
CDownloadSource pExcept2 = NULL
[protected]
 

Definition at line 448 of file CtrlDownloads.cpp.

References Downloads, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownload::m_bSelected, CTransfers::m_pSection, NULL, and Transfers.

Referenced by OnLButtonDown(), OnLButtonUp(), OnRButtonUp(), and SelectTo().

BOOL CDownloadsCtrl::DropObjects CPtrList *  pSel,
const CPoint &  ptScreen
 

Definition at line 704 of file CtrlDownloads.cpp.

References CDownloads::Check(), Downloads, HitTest(), m_pDragDrop, CTransfers::m_pSection, NULL, CDownloads::Reorder(), and Transfers.

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

BOOL CDownloadsCtrl::DropShowTarget CPtrList *  pSel,
const CPoint &  ptScreen
 

Definition at line 680 of file CtrlDownloads.cpp.

References HitTest(), m_pDragDrop, and NULL.

Referenced by CDownloadsWnd::OnMouseMove().

BOOL CDownloadsCtrl::GetAt int  nSelect,
CDownload **  ppDownload,
CDownloadSource **  ppSource
[protected]
 

Definition at line 568 of file CtrlDownloads.cpp.

References CSettings::Downloads, Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), IsFiltered(), CDownload::m_bExpanded, CDownload::m_nGroupCookie, m_nGroupCookie, NULL, Settings, and CSettings::sDownloads::ShowSources.

Referenced by OnEnterKey(), OnKeyDown(), and SelectTo().

int CDownloadsCtrl::GetClientStatus CDownload pDownload  )  [protected]
 

Definition at line 1467 of file CtrlDownloads.cpp.

References CDownloadWithSources::GetSourceCount(), and CDownload::IsCompleted().

Referenced by BubbleSortDownloads().

CString CDownloadsCtrl::GetDownloadStatus CDownload pDownload  )  [protected]
 

Definition at line 1405 of file CtrlDownloads.cpp.

References CDownloadWithFile::GetProgress(), CDownloadWithSources::GetSourceCount(), CDownloadWithFile::GetTimeRemaining(), IDS_STATUS_ACTIVE, IDS_STATUS_CANTMOVE, IDS_STATUS_COMPLETED, IDS_STATUS_CREATING, IDS_STATUS_FILEERROR, IDS_STATUS_MOVING, IDS_STATUS_PAUSED, IDS_STATUS_PENDING, IDS_STATUS_QUEUED, IDS_STATUS_SEARCHING, IDS_STATUS_SEEDING, IDS_STATUS_TORRENT, IDS_STATUS_TRACKERDOWN, IDS_STATUS_VERIFYING, CDownload::IsCompleted(), CDownload::IsDownloading(), CDownload::IsMoving(), CDownload::IsPaused(), CDownloadWithTorrent::IsSeeding(), CDownload::IsStarted(), CDownloadBase::IsTasking(), CDownload::IsTrying(), LoadString(), CDownloadBase::m_bBTH, CDownloadWithFile::m_bDiskFull, and CDownloadWithTorrent::m_bTorrentTrackerError.

Referenced by BubbleSortDownloads(), and PaintDownload().

int CDownloadsCtrl::GetExpandableColumnX  )  const
 

Definition at line 2044 of file CtrlDownloads.cpp.

References DOWNLOAD_COLUMN_TITLE, and m_wndHeader.

Referenced by OnLButtonDblClk(), and OnLButtonDown().

BOOL CDownloadsCtrl::GetRect CDownload pSelect,
RECT *  prcItem
[protected]
 

Definition at line 607 of file CtrlDownloads.cpp.

References CSettings::Downloads, Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownloadWithSources::GetSourceCount(), HEADER_HEIGHT, IsFiltered(), ITEM_HEIGHT, CDownload::m_bExpanded, CDownload::m_nGroupCookie, m_nGroupCookie, NULL, Settings, and CSettings::sDownloads::ShowSources.

Referenced by CreateDragImage().

int CDownloadsCtrl::GetSelectedCount  )  [protected]
 

Definition at line 467 of file CtrlDownloads.cpp.

References Downloads, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownload::m_bSelected, CTransfers::m_pSection, and Transfers.

Referenced by OnLButtonDown().

BOOL CDownloadsCtrl::HitTest const CPoint &  point,
CDownload **  ppDownload,
CDownloadSource **  ppSource,
int *  pnIndex,
RECT *  prcItem
[protected]
 

Definition at line 485 of file CtrlDownloads.cpp.

References CSettings::Downloads, Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownloadWithSources::GetSourceCount(), HEADER_HEIGHT, IsFiltered(), ITEM_HEIGHT, CDownload::m_bExpanded, CDownload::m_nGroupCookie, m_nGroupCookie, NULL, Settings, and CSettings::sDownloads::ShowSources.

Referenced by DropObjects(), DropShowTarget(), CDownloadsWnd::OnContextMenu(), OnLButtonDblClk(), OnLButtonDown(), and OnMouseMove().

void CDownloadsCtrl::InsertColumn int  nColumn,
LPCTSTR  pszCaption,
int  nFormat,
int  nWidth
[protected]
 

Definition at line 179 of file CtrlDownloads.cpp.

References m_wndHeader.

Referenced by OnCreate().

BOOL CDownloadsCtrl::IsExpandable CDownload pDownload  )  [static]
 

Definition at line 290 of file CtrlDownloads.cpp.

References CSettings::Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloadWithSources::GetSourceCount(), NULL, Settings, and CSettings::sDownloads::ShowSources.

Referenced by OnLButtonDblClk(), OnLButtonDown(), CRemote::PageDownloads(), and PaintDownload().

BOOL CDownloadsCtrl::IsFiltered CDownload pDownload  )  [static]
 

Definition at line 250 of file CtrlDownloads.cpp.

References DLF_ACTIVE, DLF_PAUSED, DLF_QUEUED, DLF_SOURCES, CSettings::Downloads, CSettings::sDownloads::FilterMask, CSettings::General, GUI_BASIC, CSettings::sGeneral::GUIMode, Settings, and SIZE_UNKNOWN.

Referenced by GetAt(), GetRect(), HitTest(), OnPaint(), OnSize(), and CRemote::PageDownloads().

BOOL CDownloadsCtrl::LoadColumnState  )  [protected]
 

Definition at line 215 of file CtrlDownloads.cpp.

References m_wndHeader, and theApp.

Referenced by OnCreate().

void CDownloadsCtrl::MoveSelected int  nDelta  )  [protected]
 

Definition at line 657 of file CtrlDownloads.cpp.

References Downloads, CDownloads::GetIterator(), CDownloads::GetNext(), CDownload::m_bSelected, CTransfers::m_pSection, CDownloads::Move(), Transfers, and Update().

Referenced by CDownloadsWnd::OnDownloadsMoveDown(), CDownloadsWnd::OnDownloadsMoveUp(), and OnKeyDown().

void CDownloadsCtrl::OnBeginDrag CPoint  ptAction  )  [protected]
 

Definition at line 1915 of file CtrlDownloads.cpp.

References CreateDragImage(), Downloads, CDownloadsWnd::DragDownloads(), CDownloads::GetIterator(), CDownloads::GetNext(), CCoolTipCtrl::Hide(), m_bCreateDragImage, CDownload::m_bSelected, m_pDeselect1, m_pDeselect2, m_pDragDrop, m_wndTip, and NULL.

Referenced by OnMouseMove().

void CDownloadsCtrl::OnChangeHeader NMHDR *  pNotifyStruct,
LRESULT *  pResult
 

Definition at line 1400 of file CtrlDownloads.cpp.

References Update().

int CDownloadsCtrl::OnCreate LPCREATESTRUCT  lpCreateStruct  ) 
 

Definition at line 121 of file CtrlDownloads.cpp.

References COLUMNS_TO_SORT, CCoolTipCtrl::Create(), CreateMirroredBitmap(), DOWNLOAD_COLUMN_CLIENT, DOWNLOAD_COLUMN_DOWNLOADED, DOWNLOAD_COLUMN_PERCENTAGE, DOWNLOAD_COLUMN_PROGRESS, DOWNLOAD_COLUMN_SIZE, DOWNLOAD_COLUMN_SPEED, DOWNLOAD_COLUMN_STATUS, DOWNLOAD_COLUMN_TITLE, CSettings::Downloads, IDB_PROTOCOLS, InsertColumn(), CSettings::Interface, LoadColumnState(), m_bCreateDragImage, m_bDrag, CShareazaApp::m_bRTL, CShareazaApp::m_gdiFont, m_nFocus, m_nGroupCookie, m_pbSortAscending, m_pDeselect1, m_pDeselect2, m_pDragDrop, m_pProtocols, m_wndHeader, m_wndTip, NULL, Settings, CSettings::sDownloads::SortColumns, theApp, and CSettings::sInterface::TipDownloads.

void CDownloadsCtrl::OnDestroy  ) 
 

Definition at line 169 of file CtrlDownloads.cpp.

References m_pbSortAscending, and SaveColumnState().

void CDownloadsCtrl::OnEnterKey  ) 
 

Definition at line 1693 of file CtrlDownloads.cpp.

References GetAt(), ID_DOWNLOADS_LAUNCH, ID_TRANSFERS_CONNECT, m_nFocus, and NULL.

Referenced by OnKeyDown().

void CDownloadsCtrl::OnHScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
 

Definition at line 1344 of file CtrlDownloads.cpp.

References HEADER_HEIGHT, m_wndHeader, and NULL.

void CDownloadsCtrl::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
 

Definition at line 1609 of file CtrlDownloads.cpp.

References GetAt(), CCoolTipCtrl::Hide(), ID_DOWNLOADS_CLEAR, ID_DOWNLOADS_ENQUEUE, ID_DOWNLOADS_VIEW_REVIEWS, CDownload::m_bExpanded, m_nFocus, CDownloadSource::m_pDownload, CTransfers::m_pSection, m_wndTip, MoveSelected(), NULL, OnEnterKey(), SelectAll(), SelectTo(), Transfers, and Update().

void CDownloadsCtrl::OnKillFocus CWnd *  pNewWnd  ) 
 

Definition at line 1909 of file CtrlDownloads.cpp.

void CDownloadsCtrl::OnLButtonDblClk UINT  nFlags,
CPoint  point
 

Definition at line 1787 of file CtrlDownloads.cpp.

References GetExpandableColumnX(), CDownloadWithSources::GetFirstSource(), HitTest(), ID_DOWNLOADS_LAUNCH, ID_TRANSFERS_CONNECT, IsExpandable(), CDownload::m_bExpanded, CDownloadSource::m_bSelected, CDownloadSource::m_pNext, CTransfers::m_pSection, NULL, Transfers, and Update().

void CDownloadsCtrl::OnLButtonDown UINT  nFlags,
CPoint  point
 

Definition at line 1714 of file CtrlDownloads.cpp.

References DeselectAll(), GetExpandableColumnX(), CDownloadWithSources::GetFirstSource(), GetSelectedCount(), CCoolTipCtrl::Hide(), HitTest(), IsExpandable(), m_bDrag, CDownload::m_bExpanded, CDownload::m_bSelected, CDownloadSource::m_bSelected, m_pDeselect1, m_pDeselect2, CDownloadSource::m_pNext, CTransfers::m_pSection, m_ptDrag, m_wndTip, NULL, SelectTo(), Transfers, and Update().

Referenced by OnRButtonDown().

void CDownloadsCtrl::OnLButtonUp UINT  nFlags,
CPoint  point
 

Definition at line 1867 of file CtrlDownloads.cpp.

References DeselectAll(), m_bDrag, m_pDeselect1, m_pDeselect2, and NULL.

void CDownloadsCtrl::OnMouseMove UINT  nFlags,
CPoint  point
 

Definition at line 1829 of file CtrlDownloads.cpp.

References CCoolTipCtrl::Hide(), HitTest(), m_bDrag, m_ptDrag, m_wndTip, NULL, OnBeginDrag(), and CCoolTipCtrl::Show().

BOOL CDownloadsCtrl::OnMouseWheel UINT  nFlags,
short  zDelta,
CPoint  pt
 

Definition at line 1394 of file CtrlDownloads.cpp.

References m_nScrollWheelLines, NULL, and OnVScroll().

void CDownloadsCtrl::OnPaint  ) 
 

Definition at line 818 of file CtrlDownloads.cpp.

References CoolInterface, CSettings::Downloads, Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownloadWithSources::GetSourceCount(), HEADER_HEIGHT, IsFiltered(), ITEM_HEIGHT, CDownload::m_bExpanded, CShareazaApp::m_bRTL, CCoolInterface::m_crWindow, CShareazaApp::m_gdiFont, m_nFocus, CDownload::m_nGroupCookie, m_nGroupCookie, m_pDragDrop, CTransfers::m_pSection, NULL, PaintDownload(), PaintSource(), Settings, CSettings::sDownloads::ShowSources, theApp, and Transfers.

void CDownloadsCtrl::OnRButtonDown UINT  nFlags,
CPoint  point
 

Definition at line 1780 of file CtrlDownloads.cpp.

References CCoolTipCtrl::Hide(), m_wndTip, and OnLButtonDown().

void CDownloadsCtrl::OnRButtonUp UINT  nFlags,
CPoint  point
 

Definition at line 1885 of file CtrlDownloads.cpp.

References DeselectAll(), m_bDrag, m_pDeselect1, m_pDeselect2, and NULL.

void CDownloadsCtrl::OnSetFocus CWnd *  pOldWnd  ) 
 

Definition at line 1903 of file CtrlDownloads.cpp.

void CDownloadsCtrl::OnSize UINT  nType,
int  cx,
int  cy
 

Definition at line 737 of file CtrlDownloads.cpp.

References CSettings::Downloads, Downloads, dtsConnecting, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownloadWithSources::GetSourceCount(), HEADER_HEIGHT, IsFiltered(), ITEM_HEIGHT, CDownload::m_bExpanded, CDownload::m_bSelected, m_nFocus, CDownload::m_nGroupCookie, m_nGroupCookie, CTransfers::m_pSection, m_wndHeader, NULL, Settings, CSettings::sDownloads::ShowSources, and Transfers.

Referenced by Update().

void CDownloadsCtrl::OnSortPanelItems NMHDR *  pNotifyStruct,
LRESULT *  pResult
 

Definition at line 1600 of file CtrlDownloads.cpp.

References BubbleSortDownloads(), CTransfers::m_pSection, and Transfers.

void CDownloadsCtrl::OnVScroll UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar
 

Definition at line 1301 of file CtrlDownloads.cpp.

Referenced by OnMouseWheel().

void CDownloadsCtrl::PaintDownload CDC &  dc,
const CRect &  rcRow,
CDownload pDownload,
BOOL  bFocus,
BOOL  bDrop
[protected]
 

Definition at line 897 of file CtrlDownloads.cpp.

References CoolInterface, DOWNLOAD_COLUMN_CLIENT, DOWNLOAD_COLUMN_DOWNLOADED, DOWNLOAD_COLUMN_PERCENTAGE, DOWNLOAD_COLUMN_PROGRESS, DOWNLOAD_COLUMN_SIZE, DOWNLOAD_COLUMN_SPEED, DOWNLOAD_COLUMN_STATUS, DOWNLOAD_COLUMN_TITLE, CSettings::Downloads, CFragmentBar::DrawDownload(), CFragmentBar::DrawDownloadSimple(), CShellIcons::Get(), GetDownloadStatus(), CShellIcons::GetHandle(), CDownloadWithExtras::GetReviewAverage(), CDownloadWithExtras::GetReviewCount(), CDownloadWithSources::GetSourceCount(), CDownloadWithTransfers::GetTransferCount(), IDS_STATUS_NOSOURCES, IDS_STATUS_UNKNOWN, IDS_STATUS_UNVERIFIED, IDS_STATUS_VERIFIED, IsExpandable(), LoadSourcesString(), LoadString(), CDownloadBase::m_bBTH, m_bCreateDragImage, CDownload::m_bSelected, CDownload::m_bVerify, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CCoolInterface::m_crText, CCoolInterface::m_crWindow, CDownloadWithTorrent::m_nTorrentDownloaded, CDownloadWithTorrent::m_nTorrentUploaded, m_wndHeader, NULL, Settings, ShellIcons, SHI_MINUS, SHI_O_RATING_AVERAGE, SHI_O_RATING_FAKE, SHI_O_RATING_GOOD, SHI_PLUS, CSettings::sDownloads::SimpleBar, SIZE_UNKNOWN, CSettings::SmartVolume(), TS_FALSE, and TS_TRUE.

Referenced by CreateDragImage(), and OnPaint().

void CDownloadsCtrl::PaintSource CDC &  dc,
const CRect &  rcRow,
CDownload pDownload,
CDownloadSource pSource,
BOOL  bFocus
[protected]
 

Definition at line 1121 of file CtrlDownloads.cpp.

References CoolInterface, DOWNLOAD_COLUMN_CLIENT, DOWNLOAD_COLUMN_DOWNLOADED, DOWNLOAD_COLUMN_PERCENTAGE, DOWNLOAD_COLUMN_PROGRESS, DOWNLOAD_COLUMN_SIZE, DOWNLOAD_COLUMN_SPEED, DOWNLOAD_COLUMN_STATUS, DOWNLOAD_COLUMN_TITLE, CFragmentBar::DrawSource(), CDownloadTransfer::GetMeasuredSpeed(), CDownloadTransfer::GetStateText(), m_bCreateDragImage, CDownloadSource::m_bPushOnly, CDownloadSource::m_bSelected, CCoolInterface::m_crBackSel, CCoolInterface::m_crBorder, CCoolInterface::m_crText, CCoolInterface::m_crWindow, CDownloadTransfer::m_nDownloaded, CDownloadSource::m_nProtocol, CDownloadBase::m_nSize, CDownloadSource::m_pAddress, CDownloadSource::m_pDownload, m_pProtocols, CDownloadSource::m_pServerAddress, CDownloadSource::m_pTransfer, CConnection::m_sAddress, CDownloadSource::m_sNick, CDownloadSource::m_sServer, CDownloadSource::m_tAttempt, m_wndHeader, NULL, PROTOCOL_ED2K, CSettings::Search, Settings, CSettings::sSearch::ShowNames, SIZE_UNKNOWN, and CSettings::SmartVolume().

Referenced by OnPaint().

void CDownloadsCtrl::SaveColumnState  )  [protected]
 

Definition at line 194 of file CtrlDownloads.cpp.

References m_wndHeader, and theApp.

Referenced by OnDestroy().

void CDownloadsCtrl::SelectAll CDownload pExcept1 = NULL,
CDownloadSource pExcept2 = NULL
[protected]
 

Definition at line 395 of file CtrlDownloads.cpp.

References Downloads, CDownloadWithSources::GetFirstSource(), CDownloads::GetIterator(), CDownloads::GetNext(), CDownloadSource::m_bSelected, CDownload::m_bSelected, CDownloadSource::m_pNext, CTransfers::m_pSection, NULL, and Transfers.

Referenced by OnKeyDown().

void CDownloadsCtrl::SelectTo int  nIndex  )  [protected]
 

Definition at line 310 of file CtrlDownloads.cpp.

References DeselectAll(), GetAt(), HEADER_HEIGHT, ITEM_HEIGHT, CDownloadSource::m_bSelected, CDownload::m_bSelected, m_nFocus, m_pDeselect1, m_pDeselect2, CTransfers::m_pSection, NULL, Transfers, and Update().

Referenced by OnKeyDown(), and OnLButtonDown().

BOOL CDownloadsCtrl::Update int  nGroupCookie  ) 
 

Definition at line 111 of file CtrlDownloads.cpp.

References m_nGroupCookie, and OnSize().

BOOL CDownloadsCtrl::Update  ) 
 

Definition at line 105 of file CtrlDownloads.cpp.

References OnSize().

Referenced by MoveSelected(), OnChangeHeader(), OnKeyDown(), OnLButtonDblClk(), OnLButtonDown(), SelectTo(), and CDownloadsWnd::Update().


Friends And Related Function Documentation

friend class CDownloadsWnd [friend]
 

Definition at line 70 of file CtrlDownloads.h.


Member Data Documentation

BOOL CDownloadsCtrl::m_bCreateDragImage [protected]
 

Definition at line 79 of file CtrlDownloads.h.

Referenced by OnBeginDrag(), OnCreate(), PaintDownload(), and PaintSource().

BOOL CDownloadsCtrl::m_bDrag [protected]
 

Definition at line 81 of file CtrlDownloads.h.

Referenced by OnCreate(), OnLButtonDown(), OnLButtonUp(), OnMouseMove(), and OnRButtonUp().

int CDownloadsCtrl::m_nFocus [protected]
 

Definition at line 78 of file CtrlDownloads.h.

Referenced by OnCreate(), OnEnterKey(), OnKeyDown(), OnPaint(), OnSize(), and SelectTo().

int CDownloadsCtrl::m_nGroupCookie [protected]
 

Definition at line 77 of file CtrlDownloads.h.

Referenced by GetAt(), GetRect(), HitTest(), OnCreate(), OnPaint(), OnSize(), and Update().

int CDownloadsCtrl::m_nScrollWheelLines [protected]
 

Definition at line 86 of file CtrlDownloads.h.

Referenced by OnMouseWheel().

BOOL* CDownloadsCtrl::m_pbSortAscending [protected]
 

Definition at line 85 of file CtrlDownloads.h.

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

CDownload* CDownloadsCtrl::m_pDeselect1 [protected]
 

Definition at line 83 of file CtrlDownloads.h.

Referenced by OnBeginDrag(), OnCreate(), OnLButtonDown(), OnLButtonUp(), OnRButtonUp(), and SelectTo().

CDownloadSource* CDownloadsCtrl::m_pDeselect2 [protected]
 

Definition at line 84 of file CtrlDownloads.h.

Referenced by OnBeginDrag(), OnCreate(), OnLButtonDown(), OnLButtonUp(), OnRButtonUp(), and SelectTo().

CDownload* CDownloadsCtrl::m_pDragDrop [protected]
 

Definition at line 80 of file CtrlDownloads.h.

Referenced by DropObjects(), DropShowTarget(), OnBeginDrag(), OnCreate(), and OnPaint().

CImageList CDownloadsCtrl::m_pProtocols [protected]
 

Definition at line 76 of file CtrlDownloads.h.

Referenced by OnCreate(), and PaintSource().

CPoint CDownloadsCtrl::m_ptDrag [protected]
 

Definition at line 82 of file CtrlDownloads.h.

Referenced by OnLButtonDown(), and OnMouseMove().

CHeaderCtrl CDownloadsCtrl::m_wndHeader [protected]
 

Definition at line 74 of file CtrlDownloads.h.

Referenced by GetExpandableColumnX(), InsertColumn(), LoadColumnState(), OnCreate(), OnHScroll(), OnSize(), CDownloadsWnd::OnSkinChange(), PaintDownload(), PaintSource(), and SaveColumnState().

CDownloadTipCtrl CDownloadsCtrl::m_wndTip [protected]
 

Definition at line 75 of file CtrlDownloads.h.

Referenced by OnBeginDrag(), OnCreate(), OnKeyDown(), OnLButtonDown(), OnMouseMove(), and OnRButtonDown().


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