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

CDownloadTipCtrl Class Reference

#include <CtrlDownloadTip.h>

Inheritance diagram for CDownloadTipCtrl:

CCoolTipCtrl List of all members.

Public Member Functions

 CDownloadTipCtrl ()
virtual ~CDownloadTipCtrl ()

Protected Member Functions

virtual BOOL OnPrepare ()
virtual void OnCalcSize (CDC *pDC)
virtual void OnShow ()
virtual void OnHide ()
virtual void OnPaint (CDC *pDC)
void OnCalcSize (CDC *pDC, CDownload *pDownload)
void OnCalcSize (CDC *pDC, CDownloadSource *pSource)
void OnPaint (CDC *pDC, CDownload *pDownload)
void OnPaint (CDC *pDC, CDownloadSource *pSource)
void PrepareFileInfo (CDownload *pDownload)
void DrawProgressBar (CDC *pDC, CPoint *pPoint, CDownload *pDownload)
void DrawProgressBar (CDC *pDC, CPoint *pPoint, CDownloadSource *pSource)
afx_msg void OnTimer (UINT nIDEvent)

Protected Attributes

CString m_sName
CString m_sSHA1
CString m_sTiger
CString m_sED2K
CString m_sBTH
CString m_sURL
CString m_sSize
CString m_sType
int m_nIcon
CLineGraphm_pGraph
CGraphItemm_pItem
CStringArray m_pHeaderName
CStringArray m_pHeaderValue
int m_nHeaderWidth
int m_nStatWidth
BOOL m_bDrawGraph
BOOL m_bDrawError

Constructor & Destructor Documentation

CDownloadTipCtrl::CDownloadTipCtrl  ) 
 

Definition at line 59 of file CtrlDownloadTip.cpp.

References NULL.

CDownloadTipCtrl::~CDownloadTipCtrl  )  [virtual]
 

Definition at line 65 of file CtrlDownloadTip.cpp.

References m_pGraph.


Member Function Documentation

void CDownloadTipCtrl::DrawProgressBar CDC *  pDC,
CPoint *  pPoint,
CDownloadSource pSource
[protected]
 

Definition at line 757 of file CtrlDownloadTip.cpp.

References CoolInterface, CFragmentBar::DrawSource(), CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolTipCtrl::m_sz, and TIP_TEXTHEIGHT.

void CDownloadTipCtrl::DrawProgressBar CDC *  pDC,
CPoint *  pPoint,
CDownload pDownload
[protected]
 

Definition at line 743 of file CtrlDownloadTip.cpp.

References CoolInterface, CFragmentBar::DrawDownload(), CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolTipCtrl::m_sz, and TIP_TEXTHEIGHT.

Referenced by OnPaint().

void CDownloadTipCtrl::OnCalcSize CDC *  pDC,
CDownloadSource pSource
[protected]
 

Definition at line 570 of file CtrlDownloadTip.cpp.

References CCoolTipCtrl::AddSize(), CoolInterface, CSettings::General, GUI_BASIC, CSettings::sGeneral::GUIMode, CDownloadSource::m_bPushOnly, CCoolInterface::m_fntNormal, m_nHeaderWidth, CDownloadSource::m_nProtocol, CDownloadSource::m_pAddress, CDownloadSource::m_pDownload, CTransfer::m_pHeaderName, m_pHeaderName, CTransfer::m_pHeaderValue, m_pHeaderValue, CDownloadSource::m_pServerAddress, CDownloadSource::m_pTransfer, m_sName, CDownloadSource::m_sNick, m_sSize, CDownloadSource::m_sURL, m_sURL, CCoolTipCtrl::m_sz, NULL, PROTOCOL_ED2K, Settings, TIP_GAP, TIP_RULE, and TIP_TEXTHEIGHT.

void CDownloadTipCtrl::OnCalcSize CDC *  pDC,
CDownload pDownload
[protected]
 

Definition at line 135 of file CtrlDownloadTip.cpp.

References CCoolTipCtrl::AddSize(), CoolInterface, IDS_DLM_ESTIMATED_TIME, CDownload::IsCompleted(), CDownloadWithTorrent::IsSeeding(), LoadString(), CDownloadBase::m_bBTH, m_bDrawError, m_bDrawGraph, CDownloadWithTorrent::m_bTorrentTrackerError, CCoolInterface::m_fntNormal, m_nStatWidth, m_sBTH, m_sED2K, m_sName, m_sSHA1, m_sSize, m_sTiger, CDownloadWithTorrent::m_sTorrentTrackerError, m_sType, m_sURL, CCoolTipCtrl::m_sz, PrepareFileInfo(), TIP_GAP, TIP_RULE, and TIP_TEXTHEIGHT.

void CDownloadTipCtrl::OnCalcSize CDC *  pDC  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 83 of file CtrlDownloadTip.cpp.

References CDownloads::Check(), Downloads, CCoolTipCtrl::m_pContext, and CCoolTipCtrl::m_sz.

void CDownloadTipCtrl::OnHide  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 106 of file CtrlDownloadTip.cpp.

References m_pGraph, m_pItem, and NULL.

void CDownloadTipCtrl::OnPaint CDC *  pDC,
CDownloadSource pSource
[protected]
 

Definition at line 656 of file CtrlDownloadTip.cpp.

References CGraphBase::BufferedPaint(), CoolInterface, DrawProgressBar(), CCoolTipCtrl::DrawRule(), CCoolTipCtrl::DrawText(), CDownloadTransfer::GetMeasuredSpeed(), CDownloadTransfer::GetStateText(), IDS_GENERAL_OF, IDS_TIP_INACTIVE, IDS_TIP_NA, IDS_TIP_SPEED, IDS_TIP_STATUS, IDS_TIP_URL, IDS_TIP_USERAGENT, LoadString(), CCoolInterface::m_crTipBorder, CCoolInterface::m_fntNormal, CConnection::m_mInput, m_nHeaderWidth, CDownloadSource::m_pDownload, m_pGraph, m_pHeaderName, m_pHeaderValue, CDownloadSource::m_pTransfer, m_sName, CDownloadSource::m_sServer, m_sURL, CCoolTipCtrl::m_sz, NULL, TCPBandwidthMeter::pLimit, Settings, CSettings::SmartVolume(), TIP_GAP, and TIP_TEXTHEIGHT.

void CDownloadTipCtrl::OnPaint CDC *  pDC,
CDownload pDownload
[protected]
 

Definition at line 228 of file CtrlDownloadTip.cpp.

References CGraphBase::BufferedPaint(), CoolInterface, DrawProgressBar(), CCoolTipCtrl::DrawRule(), CCoolTipCtrl::DrawText(), CSettings::General, CDownloadWithTransfers::GetAverageSpeed(), CShellIcons::GetHandle(), CDownloadWithFile::GetProgress(), CDownloadWithTorrent::GetRatio(), CDownloadWithSources::GetSourceCount(), CDownloadWithFile::GetTimeRemaining(), CDownloadWithTransfers::GetTransferCount(), CDownloadWithFile::GetVolumeComplete(), IDS_DLM_COMPLETED_WORD, IDS_DLM_ESTIMATED_TIME, IDS_DLM_NO_SOURCES, IDS_DLM_NUMBER_OF_SOURCES, IDS_DLM_TIME_DAH, IDS_DLM_TIME_HAM, IDS_DLM_TIME_MAS, IDS_DLM_TIME_S, IDS_DLM_TOTAL_SPEED, IDS_DLM_VOLUME_DOWNLOADED, IDS_DLM_VOLUME_UPLOADED, IDS_GENERAL_OF, IDS_TIP_NA, IDS_TIP_SIZE, IDS_TIP_TYPE, CDownload::IsCompleted(), CDownload::IsMoving(), CDownload::IsPaused(), CDownloadWithTorrent::IsSeeding(), CDownload::IsStarted(), LoadString(), CDownloadBase::m_bBTH, CDownloadBase::m_bBTHTrusted, m_bDrawError, m_bDrawGraph, CDownloadBase::m_bED2KTrusted, CShareazaApp::m_bRTL, CDownloadBase::m_bSHA1Trusted, CDownloadBase::m_bTigerTrusted, CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolInterface::m_fntItalic, CCoolInterface::m_fntNormal, m_nIcon, CDownloadBase::m_nSize, m_nStatWidth, CDownloadWithTorrent::m_nTorrentDownloaded, CDownloadWithTorrent::m_nTorrentUploaded, m_pGraph, m_sBTH, m_sED2K, m_sName, m_sSHA1, m_sSize, m_sTiger, CDownloadWithTorrent::m_sTorrentTrackerError, m_sType, m_sURL, CCoolTipCtrl::m_sz, Settings, ShellIcons, CSettings::SmartVolume(), theApp, TIP_GAP, TIP_TEXTHEIGHT, and CSettings::sGeneral::VerboseMode.

void CDownloadTipCtrl::OnPaint CDC *  pDC  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 113 of file CtrlDownloadTip.cpp.

References CDownloads::Check(), Downloads, CCoolTipCtrl::Hide(), CCoolTipCtrl::m_pContext, CTransfers::m_pSection, CCoolTipCtrl::OnPaint(), and Transfers.

BOOL CDownloadTipCtrl::OnPrepare  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 73 of file CtrlDownloadTip.cpp.

References CCoolTipCtrl::CalcSizeHelper(), CTransfers::m_pSection, CCoolTipCtrl::m_sz, and Transfers.

void CDownloadTipCtrl::OnShow  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 97 of file CtrlDownloadTip.cpp.

References CLineGraph::AddItem(), CCoolTipCtrl::CreateLineGraph(), m_pGraph, and m_pItem.

void CDownloadTipCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented from CCoolTipCtrl.

Definition at line 774 of file CtrlDownloadTip.cpp.

References CGraphItem::Add(), CDownloads::Check(), Downloads, CDownloadTransfer::GetMeasuredSpeed(), CDownloadWithTransfers::GetMeasuredSpeed(), CLineGraph::m_nMaximum, CLineGraph::m_nUpdates, CCoolTipCtrl::m_pContext, m_pGraph, m_pItem, CTransfers::m_pSection, CDownloadSource::m_pTransfer, NULL, CCoolTipCtrl::OnTimer(), and Transfers.

void CDownloadTipCtrl::PrepareFileInfo CDownload pDownload  )  [protected]
 

Definition at line 495 of file CtrlDownloadTip.cpp.

References CSettings::General, CShellIcons::Get(), GUI_BASIC, CSettings::sGeneral::GUIMode, CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), IDS_TIP_NOHASHSET, LoadString(), CShellIcons::Lookup(), m_nIcon, m_sBTH, m_sED2K, m_sName, m_sSHA1, m_sSize, m_sTiger, m_sType, m_sURL, NULL, Settings, ShellIcons, SIZE_UNKNOWN, CSettings::SmartVolume(), and CSettings::sGeneral::VerboseMode.

Referenced by OnCalcSize().


Member Data Documentation

BOOL CDownloadTipCtrl::m_bDrawError [protected]
 

Definition at line 64 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

BOOL CDownloadTipCtrl::m_bDrawGraph [protected]
 

Definition at line 63 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

int CDownloadTipCtrl::m_nHeaderWidth [protected]
 

Definition at line 61 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

int CDownloadTipCtrl::m_nIcon [protected]
 

Definition at line 54 of file CtrlDownloadTip.h.

Referenced by OnPaint(), and PrepareFileInfo().

int CDownloadTipCtrl::m_nStatWidth [protected]
 

Definition at line 62 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CLineGraph* CDownloadTipCtrl::m_pGraph [protected]
 

Definition at line 56 of file CtrlDownloadTip.h.

Referenced by OnHide(), OnPaint(), OnShow(), OnTimer(), and ~CDownloadTipCtrl().

CStringArray CDownloadTipCtrl::m_pHeaderName [protected]
 

Definition at line 59 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CStringArray CDownloadTipCtrl::m_pHeaderValue [protected]
 

Definition at line 60 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CGraphItem* CDownloadTipCtrl::m_pItem [protected]
 

Definition at line 57 of file CtrlDownloadTip.h.

Referenced by OnHide(), OnShow(), and OnTimer().

CString CDownloadTipCtrl::m_sBTH [protected]
 

Definition at line 50 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sED2K [protected]
 

Definition at line 49 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sName [protected]
 

Definition at line 46 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sSHA1 [protected]
 

Definition at line 47 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sSize [protected]
 

Definition at line 52 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sTiger [protected]
 

Definition at line 48 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sType [protected]
 

Definition at line 53 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().

CString CDownloadTipCtrl::m_sURL [protected]
 

Definition at line 51 of file CtrlDownloadTip.h.

Referenced by OnCalcSize(), OnPaint(), and PrepareFileInfo().


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