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

CHomeDownloadsBox Class Reference

#include <CtrlHomePanel.h>

Inheritance diagram for CHomeDownloadsBox:

CRichTaskBox CTaskBox List of all members.

Public Member Functions

 CHomeDownloadsBox ()
virtual ~CHomeDownloadsBox ()
void Setup ()
void Update ()
ItemHitTest (const CPoint &point) const
BOOL ExecuteDownload (CDownload *pDownload)

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)

Protected Attributes

CRichElementm_pdDownloadsNone
CRichElementm_pdDownloadsOne
CRichElementm_pdDownloadsMany
CString m_sDownloadsMany
CPtrArray m_pList
CFont m_pFont
HCURSOR m_hHand
CDownloadTipCtrl m_wndTip
Itemm_pHover

Classes

struct  Item

Constructor & Destructor Documentation

CHomeDownloadsBox::CHomeDownloadsBox  ) 
 

Definition at line 178 of file CtrlHomePanel.cpp.

References CTaskBox::SetPrimary().

CHomeDownloadsBox::~CHomeDownloadsBox  )  [virtual]
 

Definition at line 183 of file CtrlHomePanel.cpp.

References m_pList.


Member Function Documentation

BOOL CHomeDownloadsBox::ExecuteDownload CDownload pDownload  ) 
 

Definition at line 545 of file CtrlHomePanel.cpp.

References _tcsistr(), CDownloads::Check(), Downloads, CFileExecutor::Execute(), ID_VIEW_DOWNLOADS, IDS_LIBRARY_CONFIRM_EXECUTE, IDS_LIBRARY_VERIFY_FAIL, CDownload::IsCompleted(), CDownload::IsMoving(), CDownload::IsStarted(), CSettings::Library, LoadString(), CDownload::m_bVerify, CTransfers::m_pSection, CDownloadBase::m_sLocalName, NULL, CSettings::sLibrary::SafeExecute, Settings, Transfers, and TS_FALSE.

Referenced by OnLButtonUp().

CHomeDownloadsBox::Item * CHomeDownloadsBox::HitTest const CPoint &  point  )  const
 

Definition at line 454 of file CtrlHomePanel.cpp.

References m_pList, and NULL.

Referenced by OnLButtonUp(), and OnSetCursor().

int CHomeDownloadsBox::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CRichTaskBox.

Definition at line 194 of file CtrlHomePanel.cpp.

References CCoolTipCtrl::Create(), IDC_HAND, CSettings::Interface, m_hHand, CShareazaApp::m_nDefaultFontSize, m_pFont, CShareazaApp::m_sDefaultFont, m_wndTip, CRichTaskBox::OnCreate(), Settings, theApp, and CSettings::sInterface::TipDownloads.

void CHomeDownloadsBox::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 510 of file CtrlHomePanel.cpp.

References ExecuteDownload(), HitTest(), m_pHover, and NULL.

void CHomeDownloadsBox::OnPaint  )  [protected]
 

Reimplemented from CTaskBox.

Definition at line 384 of file CtrlHomePanel.cpp.

References CoolInterface, CShellIcons::Draw(), CFragmentBar::DrawFragment(), CHomeDownloadsBox::Item::m_bPaused, CCoolInterface::m_crWindow, CHomeDownloadsBox::Item::m_nComplete, CHomeDownloadsBox::Item::m_nIcon16, CHomeDownloadsBox::Item::m_nSize, m_pFont, m_pHover, m_pList, CHomeDownloadsBox::Item::m_sText, CRichTaskBox::m_wndView, NULL, ShellIcons, and SIZE_UNKNOWN.

BOOL CHomeDownloadsBox::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

Reimplemented from CTaskBox.

Definition at line 477 of file CtrlHomePanel.cpp.

References CCoolTipCtrl::Hide(), HitTest(), m_hHand, CHomeDownloadsBox::Item::m_pDownload, m_pHover, m_wndTip, NULL, CTaskBox::OnSetCursor(), and CCoolTipCtrl::Show().

void CHomeDownloadsBox::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Reimplemented from CRichTaskBox.

Definition at line 370 of file CtrlHomePanel.cpp.

References CRichViewCtrl::FullHeightMove(), CRichTaskBox::m_nWidth, m_pList, CRichTaskBox::m_wndView, and CTaskBox::SetSize().

void CHomeDownloadsBox::OnTimer UINT  nIDEvent  )  [protected]
 

Reimplemented from CTaskBox.

Definition at line 524 of file CtrlHomePanel.cpp.

References m_pHover, NULL, and CTaskBox::OnTimer().

void CHomeDownloadsBox::Setup  ) 
 

Definition at line 209 of file CtrlHomePanel.cpp.

References CXMLElement::GetAttributeValue(), CSkin::GetDocument(), CRichTaskBox::GetView(), CSkin::GetWatermark(), CRichDocument::LoadXML(), m_pdDownloadsMany, m_pdDownloadsNone, m_pdDownloadsOne, CRichTaskBox::m_pDocument, m_sDownloadsMany, NULL, CTaskBox::SetCaption(), CTaskBox::SetCaptionmark(), Skin, and Update().

Referenced by CHomePanel::Setup().

void CHomeDownloadsBox::Update  ) 
 

Reimplemented from CRichTaskBox.

Definition at line 237 of file CtrlHomePanel.cpp.

References CDownloads::CheckActive(), Downloads, CRichViewCtrl::FullHeightMove(), CShellIcons::Get(), CDownloadWithFile::GetDisplayName(), CDownloadWithTransfers::GetFirstTransfer(), CDownloads::GetPrevious(), CDownloads::GetReverseIterator(), CGraphItem::GetValue(), CRichTaskBox::GetView(), CDownloadWithFile::GetVolumeComplete(), GRC_DOWNLOADS_FILES, CDownload::IsCompleted(), CDownload::IsPaused(), CHomeDownloadsBox::Item::m_bPaused, CHomeDownloadsBox::Item::m_nComplete, CHomeDownloadsBox::Item::m_nIcon16, CDownloadBase::m_nSize, CHomeDownloadsBox::Item::m_nSize, CRichTaskBox::m_nWidth, m_pdDownloadsMany, m_pdDownloadsNone, m_pdDownloadsOne, CRichTaskBox::m_pDocument, CHomeDownloadsBox::Item::m_pDownload, m_pHover, m_pList, CTransfers::m_pSection, m_sDownloadsMany, CHomeDownloadsBox::Item::m_sText, CRichTaskBox::m_wndView, NULL, CTaskBox::SetSize(), CRichElement::SetText(), ShellIcons, CRichElement::Show(), CRichDocument::ShowGroup(), and Transfers.

Referenced by Setup(), and CHomePanel::Update().


Member Data Documentation

HCURSOR CHomeDownloadsBox::m_hHand [protected]
 

Definition at line 51 of file CtrlHomePanel.h.

Referenced by OnCreate(), and OnSetCursor().

CRichElement* CHomeDownloadsBox::m_pdDownloadsMany [protected]
 

Definition at line 46 of file CtrlHomePanel.h.

Referenced by Setup(), and Update().

CRichElement* CHomeDownloadsBox::m_pdDownloadsNone [protected]
 

Definition at line 44 of file CtrlHomePanel.h.

Referenced by Setup(), and Update().

CRichElement* CHomeDownloadsBox::m_pdDownloadsOne [protected]
 

Definition at line 45 of file CtrlHomePanel.h.

Referenced by Setup(), and Update().

CFont CHomeDownloadsBox::m_pFont [protected]
 

Definition at line 50 of file CtrlHomePanel.h.

Referenced by OnCreate(), and OnPaint().

Item* CHomeDownloadsBox::m_pHover [protected]
 

Definition at line 64 of file CtrlHomePanel.h.

Referenced by OnLButtonUp(), OnPaint(), OnSetCursor(), OnTimer(), and Update().

CPtrArray CHomeDownloadsBox::m_pList [protected]
 

Definition at line 49 of file CtrlHomePanel.h.

Referenced by HitTest(), OnPaint(), OnSize(), Update(), and ~CHomeDownloadsBox().

CString CHomeDownloadsBox::m_sDownloadsMany [protected]
 

Definition at line 47 of file CtrlHomePanel.h.

Referenced by Setup(), and Update().

CDownloadTipCtrl CHomeDownloadsBox::m_wndTip [protected]
 

Definition at line 52 of file CtrlHomePanel.h.

Referenced by OnCreate(), and OnSetCursor().


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