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

CUploadTipCtrl Class Reference

#include <CtrlUploadTip.h>

Inheritance diagram for CUploadTipCtrl:

CCoolTipCtrl List of all members.

Public Member Functions

 CUploadTipCtrl ()
virtual ~CUploadTipCtrl ()

Protected Member Functions

virtual BOOL OnPrepare ()
virtual void OnCalcSize (CDC *pDC)
virtual void OnShow ()
virtual void OnHide ()
virtual void OnPaint (CDC *pDC)
void DrawProgressBar (CDC *pDC, CPoint *pPoint, CUploadFile *pFile)
afx_msg void OnTimer (UINT nIDEvent)

Protected Attributes

CString m_sAddress
CLineGraphm_pGraph
CGraphItemm_pItem
CStringArray m_pHeaderName
CStringArray m_pHeaderValue
int m_nHeaderWidth

Constructor & Destructor Documentation

CUploadTipCtrl::CUploadTipCtrl  ) 
 

Definition at line 56 of file CtrlUploadTip.cpp.

References NULL.

CUploadTipCtrl::~CUploadTipCtrl  )  [virtual]
 

Definition at line 61 of file CtrlUploadTip.cpp.

References m_pGraph.


Member Function Documentation

void CUploadTipCtrl::DrawProgressBar CDC *  pDC,
CPoint *  pPoint,
CUploadFile pFile
[protected]
 

Definition at line 270 of file CtrlUploadTip.cpp.

References CoolInterface, CFragmentBar::DrawUpload(), CUploadFile::GetActive(), CCoolInterface::m_crTipBack, CCoolInterface::m_crTipBorder, CCoolTipCtrl::m_sz, and TIP_TEXTHEIGHT.

Referenced by OnPaint().

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

Reimplemented from CCoolTipCtrl.

Definition at line 96 of file CtrlUploadTip.cpp.

References CCoolTipCtrl::AddSize(), CUploadFiles::Check(), CoolInterface, CSettings::General, CUploadFile::GetActive(), GUI_BASIC, CSettings::sGeneral::GUIMode, CCoolInterface::m_fntNormal, m_nHeaderWidth, CCoolTipCtrl::m_pContext, CTransfer::m_pHeaderName, m_pHeaderName, CTransfer::m_pHeaderValue, m_pHeaderValue, CConnection::m_pHost, m_sAddress, CUploadFile::m_sName, CUploadTransfer::m_sNick, CCoolTipCtrl::m_sz, Settings, TIP_GAP, TIP_RULE, TIP_TEXTHEIGHT, and UploadFiles.

void CUploadTipCtrl::OnHide  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 89 of file CtrlUploadTip.cpp.

References m_pGraph, m_pItem, and NULL.

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

Reimplemented from CCoolTipCtrl.

Definition at line 159 of file CtrlUploadTip.cpp.

References CGraphBase::BufferedPaint(), CUploadFiles::Check(), CoolInterface, DrawProgressBar(), CCoolTipCtrl::DrawRule(), CCoolTipCtrl::DrawText(), CUploadFile::GetActive(), CUploadTransfer::GetMeasuredSpeed(), CUploadQueues::GetPosition(), CUploadQueue::GetQueuedCount(), CCoolTipCtrl::Hide(), IDS_TIP_ACTIVE, IDS_TIP_INACTIVE, IDS_TIP_NEXT, IDS_TIP_SPEED, IDS_TIP_STATUS, IDS_TIP_USERAGENT, LoadString(), CCoolInterface::m_crTipBorder, CCoolInterface::m_fntNormal, CUploadTransfer::m_nBandwidth, m_nHeaderWidth, CUploadTransfer::m_nProtocol, CUploadTransfer::m_nState, CUploadTransfer::m_pBaseFile, CCoolTipCtrl::m_pContext, m_pGraph, m_pHeaderName, m_pHeaderValue, CUploadTransfer::m_pQueue, CTransfers::m_pSection, m_sAddress, CUploadQueue::m_sName, CUploadFile::m_sName, CConnection::m_sUserAgent, CCoolTipCtrl::m_sz, PROTOCOL_BT, Settings, CSettings::SmartVolume(), TIP_GAP, TIP_TEXTHEIGHT, Transfers, UploadFiles, UploadQueues, upsNull, and upsQueued.

BOOL CUploadTipCtrl::OnPrepare  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 69 of file CtrlUploadTip.cpp.

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

void CUploadTipCtrl::OnShow  )  [protected, virtual]
 

Reimplemented from CCoolTipCtrl.

Definition at line 79 of file CtrlUploadTip.cpp.

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

void CUploadTipCtrl::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented from CCoolTipCtrl.

Definition at line 289 of file CtrlUploadTip.cpp.

References CGraphItem::Add(), CUploadFiles::Check(), CUploadFile::GetActive(), CCoolTipCtrl::Hide(), CLineGraph::m_nMaximum, CLineGraph::m_nUpdates, CCoolTipCtrl::m_pContext, m_pGraph, m_pItem, CTransfers::m_pSection, NULL, CCoolTipCtrl::OnTimer(), Transfers, and UploadFiles.


Member Data Documentation

int CUploadTipCtrl::m_nHeaderWidth [protected]
 

Definition at line 52 of file CtrlUploadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CLineGraph* CUploadTipCtrl::m_pGraph [protected]
 

Definition at line 47 of file CtrlUploadTip.h.

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

CStringArray CUploadTipCtrl::m_pHeaderName [protected]
 

Definition at line 50 of file CtrlUploadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CStringArray CUploadTipCtrl::m_pHeaderValue [protected]
 

Definition at line 51 of file CtrlUploadTip.h.

Referenced by OnCalcSize(), and OnPaint().

CGraphItem* CUploadTipCtrl::m_pItem [protected]
 

Definition at line 48 of file CtrlUploadTip.h.

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

CString CUploadTipCtrl::m_sAddress [protected]
 

Definition at line 46 of file CtrlUploadTip.h.

Referenced by OnCalcSize(), and OnPaint().


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