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

CFragmentBar Class Reference

#include <FragmentBar.h>

List of all members.

Static Public Member Functions

static void DrawFragment (CDC *pDC, CRect *prcCell, QWORD nTotal, QWORD nOffset, QWORD nLength, COLORREF crFill, BOOL b3D)
static void DrawStateBar (CDC *pDC, CRect *prcBar, QWORD nTotal, QWORD nOffset, QWORD nLength, COLORREF crFill, BOOL bTop=FALSE)
static void DrawDownload (CDC *pDC, CRect *prcBar, CDownload *pDownload, COLORREF crNatural)
static void DrawDownloadSimple (CDC *pDC, CRect *prcBar, CDownload *pDownload, COLORREF crNatural)
static void DrawSource (CDC *pDC, CRect *prcBar, CDownloadSource *pSource, COLORREF crNatural)
static void DrawUpload (CDC *pDC, CRect *prcBar, CUploadFile *pFile, COLORREF crNatural)

Static Protected Member Functions

static void DrawSourceImpl (CDC *pDC, CRect *prcBar, CDownloadSource *pSource)


Member Function Documentation

void CFragmentBar::DrawDownload CDC *  pDC,
CRect *  prcBar,
CDownload pDownload,
COLORREF  crNatural
[static]
 

Definition at line 147 of file FragmentBar.cpp.

References CSettings::Downloads, DrawFragment(), DrawSourceImpl(), DrawStateBar(), CDownloadWithFile::GetEmptyFragmentList(), CDownloadWithSources::GetFirstSource(), CDownloadWithTiger::GetNextVerifyRange(), CDownloadWithFile::GetVolumeComplete(), CDownload::IsStarted(), CDownloadBase::m_nSize, Settings, and CSettings::sDownloads::ShowPercent.

Referenced by CDownloadMonitorDlg::DrawProgressBar(), CDownloadTipCtrl::DrawProgressBar(), and CDownloadsCtrl::PaintDownload().

void CFragmentBar::DrawDownloadSimple CDC *  pDC,
CRect *  prcBar,
CDownload pDownload,
COLORREF  crNatural
[static]
 

Definition at line 181 of file FragmentBar.cpp.

References DrawFragment(), CDownloadWithFile::GetVolumeComplete(), CDownload::IsStarted(), and CDownloadBase::m_nSize.

Referenced by CDownloadsCtrl::PaintDownload().

void CFragmentBar::DrawFragment CDC *  pDC,
CRect *  prcCell,
QWORD  nTotal,
QWORD  nOffset,
QWORD  nLength,
COLORREF  crFill,
BOOL  b3D
[static]
 

Definition at line 50 of file FragmentBar.cpp.

References CCoolInterface::CalculateColour(), CShareazaApp::m_bRTL, and theApp.

Referenced by CSplashDlg::DoPaint(), DrawDownload(), DrawDownloadSimple(), DrawSource(), DrawSourceImpl(), DrawUpload(), and CHomeDownloadsBox::OnPaint().

void CFragmentBar::DrawSource CDC *  pDC,
CRect *  prcBar,
CDownloadSource pSource,
COLORREF  crNatural
[static]
 

Definition at line 196 of file FragmentBar.cpp.

References detail::List< FragmentT, ContainerT >::begin(), DrawFragment(), DrawSourceImpl(), DrawStateBar(), detail::List< FragmentT, ContainerT >::empty(), detail::List< FragmentT, ContainerT >::end(), CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nProtocol, CDownloadBase::m_nSize, CDownloadSource::m_oAvailable, CDownloadSource::m_pDownload, CDownloadSource::m_pTransfer, NULL, PROTOCOL_BT, PROTOCOL_ED2K, and SIZE_UNKNOWN.

Referenced by CDownloadTipCtrl::DrawProgressBar(), and CDownloadsCtrl::PaintSource().

void CFragmentBar::DrawSourceImpl CDC *  pDC,
CRect *  prcBar,
CDownloadSource pSource
[static, protected]
 

Definition at line 253 of file FragmentBar.cpp.

References detail::List< FragmentT, ContainerT >::begin(), CCoolInterface::CalculateColour(), CoolInterface, DrawFragment(), dtsDownloading, detail::List< FragmentT, ContainerT >::end(), CDownloadSource::GetColour(), CDownloadSource::m_bReadContent, CDownloadTransfer::m_bRecvBackwards, CCoolInterface::m_crHighlight, CDownloadTransfer::m_nLength, CDownloadTransfer::m_nOffset, CDownloadTransfer::m_nPosition, CDownloadBase::m_nSize, CDownloadTransfer::m_nState, CDownloadSource::m_oPastFragments, CDownloadSource::m_pDownload, CDownloadSource::m_pTransfer, NULL, and SIZE_UNKNOWN.

Referenced by DrawDownload(), and DrawSource().

void CFragmentBar::DrawStateBar CDC *  pDC,
CRect *  prcBar,
QWORD  nTotal,
QWORD  nOffset,
QWORD  nLength,
COLORREF  crFill,
BOOL  bTop = FALSE
[static]
 

Definition at line 88 of file FragmentBar.cpp.

References CCoolInterface::CalculateColour(), CShareazaApp::m_bRTL, and theApp.

Referenced by DrawDownload(), and DrawSource().

void CFragmentBar::DrawUpload CDC *  pDC,
CRect *  prcBar,
CUploadFile pFile,
COLORREF  crNatural
[static]
 

Definition at line 306 of file FragmentBar.cpp.

References detail::List< FragmentT, ContainerT >::begin(), DrawFragment(), detail::List< FragmentT, ContainerT >::end(), CUploadFile::GetActive(), CUploadTransfer::m_nLength, CUploadTransfer::m_nOffset, CUploadTransfer::m_nPosition, CUploadTransfer::m_nProtocol, CUploadFile::m_nSize, CUploadFile::m_oFragments, CUploadTransfer::m_pBaseFile, NULL, and PROTOCOL_HTTP.

Referenced by CUploadTipCtrl::DrawProgressBar(), and CUploadsCtrl::PaintFile().


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