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

CDownloadTabBar Class Reference

#include <CtrlDownloadTabBar.h>

List of all members.

Public Member Functions

 CDownloadTabBar ()
virtual ~CDownloadTabBar ()
void SetWatermark (HBITMAP hBitmap)
void Update (int nCookie)
BOOL DropShowTarget (CPtrList *pList, const CPoint &ptScreen)
BOOL DropObjects (CPtrList *pList, const CPoint &ptScreen)
virtual BOOL Create (CWnd *pParentWnd, DWORD dwStyle=WS_CHILD|WS_VISIBLE|CBRS_BOTTOM, UINT nID=AFX_IDW_STATUS_BAR)
virtual CSize CalcFixedLayout (BOOL bStretch, BOOL bHorz)
virtual int OnToolHitTest (CPoint point, TOOLINFO *pTI) const
virtual void DoPaint (CDC *pDC)
virtual void OnUpdateCmdUI (CFrameWnd *pTarget, BOOL bDisableIfNoHndler)

Protected Member Functions

void UpdateGroups (int nCookie)
void UpdateStates (int nCookie)
TabItemHitTest (const CPoint &point, CRect *pItemRect=NULL) const
BOOL Select (TabItem *pHit)
int GetSelectedCount (BOOL bDownloads=FALSE)
TabItemGetSelectedItem ()
CDownloadGroupGetSelectedGroup ()
void GetSelectedDownloads (CPtrList *pDownloads)
void NotifySelection ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnTimer (UINT nIDEvent)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnDownloadGroupNew ()
afx_msg void OnUpdateDownloadGroupRemove (CCmdUI *pCmdUI)
afx_msg void OnDownloadGroupRemove ()
afx_msg void OnUpdateDownloadGroupProperties (CCmdUI *pCmdUI)
afx_msg void OnDownloadGroupProperties ()
afx_msg void OnUpdateDownloadGroupResume (CCmdUI *pCmdUI)
afx_msg void OnDownloadGroupResume ()
afx_msg void OnUpdateDownloadGroupPause (CCmdUI *pCmdUI)
afx_msg void OnDownloadGroupPause ()
afx_msg void OnUpdateDownloadGroupClear (CCmdUI *pCmdUI)
afx_msg void OnDownloadGroupClear ()

Protected Attributes

CPtrList m_pItems
TabItemm_pHot
BOOL m_bTimer
BOOL m_bMenuGray
int m_nCookie
int m_nMaximumWidth
UINT m_nMessage
CString m_sMessage
CBitmap m_bmImage

Friends

class TabItem

Classes

class  TabItem


Constructor & Destructor Documentation

CDownloadTabBar::CDownloadTabBar  ) 
 

Definition at line 69 of file CtrlDownloadTabBar.cpp.

References NULL.

CDownloadTabBar::~CDownloadTabBar  )  [virtual]
 

Definition at line 79 of file CtrlDownloadTabBar.cpp.

References m_pItems.


Member Function Documentation

CSize CDownloadTabBar::CalcFixedLayout BOOL  bStretch,
BOOL  bHorz
[virtual]
 

Definition at line 115 of file CtrlDownloadTabBar.cpp.

BOOL CDownloadTabBar::Create CWnd *  pParentWnd,
DWORD  dwStyle = WS_CHILD|WS_VISIBLE|CBRS_BOTTOM,
UINT  nID = AFX_IDW_STATUS_BAR
[virtual]
 

Definition at line 92 of file CtrlDownloadTabBar.cpp.

References CChildWnd::Create(), and NULL.

Referenced by CDownloadsWnd::OnCreate().

void CDownloadTabBar::DoPaint CDC *  pDC  )  [virtual]
 

Definition at line 241 of file CtrlDownloadTabBar.cpp.

References CoolInterface, CCoolInterface::DrawWatermark(), CCoolInterface::GetBuffer(), m_bmImage, CCoolInterface::m_crDisabled, CCoolInterface::m_crMidtone, CCoolInterface::m_fntNormal, m_nMaximumWidth, m_pHot, m_pItems, m_sMessage, NULL, and CDownloadTabBar::TabItem::Paint().

BOOL CDownloadTabBar::DropObjects CPtrList *  pList,
const CPoint &  ptScreen
 

Definition at line 816 of file CtrlDownloadTabBar.cpp.

References CDownloadGroup::Add(), CDownloads::Check(), CDownloadGroups::Check(), DownloadGroups, Downloads, HitTest(), CDownloadTabBar::TabItem::m_pGroup, m_pHot, CDownloadGroups::m_pSection, CTransfers::m_pSection, NULL, Transfers, and CDownloadGroups::Unlink().

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

BOOL CDownloadTabBar::DropShowTarget CPtrList *  pList,
const CPoint &  ptScreen
 

Definition at line 798 of file CtrlDownloadTabBar.cpp.

References HitTest(), m_pHot, and NULL.

Referenced by CDownloadsWnd::OnMouseMove().

int CDownloadTabBar::GetSelectedCount BOOL  bDownloads = FALSE  )  [protected]
 

Definition at line 447 of file CtrlDownloadTabBar.cpp.

References CDownloadTabBar::TabItem::m_bSelected, CDownloadTabBar::TabItem::m_nCount, and m_pItems.

Referenced by OnUpdateDownloadGroupClear(), OnUpdateDownloadGroupPause(), OnUpdateDownloadGroupProperties(), OnUpdateDownloadGroupRemove(), and OnUpdateDownloadGroupResume().

void CDownloadTabBar::GetSelectedDownloads CPtrList *  pDownloads  )  [protected]
 

Definition at line 490 of file CtrlDownloadTabBar.cpp.

References CDownloadGroups::Check(), CDownloadGroup::CopyList(), DownloadGroups, CDownloadTabBar::TabItem::m_bSelected, CDownloadTabBar::TabItem::m_pGroup, m_pItems, and CDownloadGroups::m_pSection.

Referenced by OnDownloadGroupClear(), OnDownloadGroupPause(), and OnDownloadGroupResume().

CDownloadGroup * CDownloadTabBar::GetSelectedGroup  )  [protected]
 

Definition at line 484 of file CtrlDownloadTabBar.cpp.

References GetSelectedItem(), CDownloadTabBar::TabItem::m_pGroup, and NULL.

Referenced by OnDownloadGroupProperties(), OnDownloadGroupRemove(), and OnUpdateDownloadGroupRemove().

CDownloadTabBar::TabItem * CDownloadTabBar::GetSelectedItem  )  [protected]
 

Definition at line 464 of file CtrlDownloadTabBar.cpp.

References CDownloadTabBar::TabItem::m_bSelected, m_pItems, and NULL.

Referenced by GetSelectedGroup().

CDownloadTabBar::TabItem * CDownloadTabBar::HitTest const CPoint &  point,
CRect *  pItemRect = NULL
const [protected]
 

Definition at line 191 of file CtrlDownloadTabBar.cpp.

References m_nMaximumWidth, m_pItems, and NULL.

Referenced by DropObjects(), DropShowTarget(), OnLButtonDblClk(), OnLButtonDown(), OnMouseMove(), OnRButtonUp(), and OnToolHitTest().

void CDownloadTabBar::NotifySelection  )  [protected]
 

Definition at line 505 of file CtrlDownloadTabBar.cpp.

Referenced by OnDownloadGroupNew(), OnDownloadGroupProperties(), OnDownloadGroupRemove(), OnLButtonDown(), and OnRButtonUp().

int CDownloadTabBar::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Definition at line 108 of file CtrlDownloadTabBar.cpp.

void CDownloadTabBar::OnDownloadGroupClear  )  [protected]
 

Definition at line 777 of file CtrlDownloadTabBar.cpp.

References CDownloads::Check(), Downloads, GetSelectedDownloads(), IDS_DOWNLOAD_CLEAR_GROUP, LoadString(), CTransfers::m_pSection, and Transfers.

void CDownloadTabBar::OnDownloadGroupNew  )  [protected]
 

Definition at line 689 of file CtrlDownloadTabBar.cpp.

References CDownloadGroups::Add(), CDownloadGroups::Check(), DownloadGroups, CDownloadGroup::LinkAll(), CTransfers::m_pSection, NotifySelection(), CDownloadGroups::Remove(), and Transfers.

void CDownloadTabBar::OnDownloadGroupPause  )  [protected]
 

Definition at line 758 of file CtrlDownloadTabBar.cpp.

References CDownloads::Check(), Downloads, GetSelectedDownloads(), CTransfers::m_pSection, and Transfers.

void CDownloadTabBar::OnDownloadGroupProperties  )  [protected]
 

Definition at line 728 of file CtrlDownloadTabBar.cpp.

References GetSelectedGroup(), and NotifySelection().

void CDownloadTabBar::OnDownloadGroupRemove  )  [protected]
 

Definition at line 717 of file CtrlDownloadTabBar.cpp.

References DownloadGroups, GetSelectedGroup(), NotifySelection(), and CDownloadGroups::Remove().

void CDownloadTabBar::OnDownloadGroupResume  )  [protected]
 

Definition at line 739 of file CtrlDownloadTabBar.cpp.

References CDownloads::Check(), Downloads, GetSelectedDownloads(), CTransfers::m_pSection, and Transfers.

void CDownloadTabBar::OnDrawItem int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct
[protected]
 

Definition at line 429 of file CtrlDownloadTabBar.cpp.

References CoolMenu, and CCoolMenu::OnDrawItem().

void CDownloadTabBar::OnLButtonDblClk UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 386 of file CtrlDownloadTabBar.cpp.

References HitTest(), ID_DOWNLOAD_GROUP_PROPERTIES, and OnLButtonDown().

void CDownloadTabBar::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 357 of file CtrlDownloadTabBar.cpp.

References HitTest(), NotifySelection(), and Select().

Referenced by OnLButtonDblClk().

void CDownloadTabBar::OnMeasureItem int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct
[protected]
 

Definition at line 424 of file CtrlDownloadTabBar.cpp.

References CoolMenu, and CCoolMenu::OnMeasureItem().

void CDownloadTabBar::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 310 of file CtrlDownloadTabBar.cpp.

References HitTest(), m_bTimer, m_pHot, NULL, and CDownloadsWnd::OnMouseMove().

void CDownloadTabBar::OnRButtonUp UINT  nFlags,
CPoint  point
[protected]
 

Definition at line 397 of file CtrlDownloadTabBar.cpp.

References CoolMenu, HitTest(), ID_DOWNLOAD_GROUP_PROPERTIES, m_bMenuGray, CShareazaApp::m_bRTL, NotifySelection(), CCoolMenu::RegisterEdge(), Select(), Skin, theApp, and CSkin::TrackPopupMenu().

void CDownloadTabBar::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 334 of file CtrlDownloadTabBar.cpp.

References m_bTimer, m_pHot, NULL, and CDownloadsWnd::OnTimer().

int CDownloadTabBar::OnToolHitTest CPoint  point,
TOOLINFO *  pTI
const [virtual]
 

Definition at line 224 of file CtrlDownloadTabBar.cpp.

References HitTest(), CDownloadTabBar::TabItem::m_pGroup, CDownloadTabBar::TabItem::m_sCaption, and NULL.

virtual void CDownloadTabBar::OnUpdateCmdUI CFrameWnd *  pTarget,
BOOL  bDisableIfNoHndler
[inline, virtual]
 

Definition at line 95 of file CtrlDownloadTabBar.h.

void CDownloadTabBar::OnUpdateDownloadGroupClear CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 772 of file CtrlDownloadTabBar.cpp.

References GetSelectedCount().

void CDownloadTabBar::OnUpdateDownloadGroupPause CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 753 of file CtrlDownloadTabBar.cpp.

References GetSelectedCount().

void CDownloadTabBar::OnUpdateDownloadGroupProperties CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 723 of file CtrlDownloadTabBar.cpp.

References GetSelectedCount().

void CDownloadTabBar::OnUpdateDownloadGroupRemove CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 712 of file CtrlDownloadTabBar.cpp.

References DownloadGroups, GetSelectedCount(), GetSelectedGroup(), and CDownloadGroups::GetSuperGroup().

void CDownloadTabBar::OnUpdateDownloadGroupResume CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 734 of file CtrlDownloadTabBar.cpp.

References GetSelectedCount().

BOOL CDownloadTabBar::Select TabItem pHit  )  [protected]
 

Definition at line 434 of file CtrlDownloadTabBar.cpp.

References m_pItems, and CDownloadTabBar::TabItem::Select().

Referenced by OnLButtonDown(), and OnRButtonUp().

void CDownloadTabBar::SetWatermark HBITMAP  hBitmap  ) 
 

Definition at line 99 of file CtrlDownloadTabBar.cpp.

References m_bmImage, and NULL.

void CDownloadTabBar::Update int  nCookie  ) 
 

Definition at line 129 of file CtrlDownloadTabBar.cpp.

References DownloadGroups, CDownloadGroups::GetGroupCookie(), m_nCookie, CDownloadGroups::m_pSection, UpdateGroups(), and UpdateStates().

Referenced by CDownloadsWnd::Update().

void CDownloadTabBar::UpdateGroups int  nCookie  )  [protected]
 

Definition at line 143 of file CtrlDownloadTabBar.cpp.

References DownloadGroups, CDownloadGroups::GetGroupCookie(), CDownloadGroups::GetIterator(), CDownloadGroups::GetNext(), m_nCookie, CDownloadTabBar::TabItem::m_pGroup, m_pHot, m_pItems, NULL, and TabItem.

Referenced by Update().

void CDownloadTabBar::UpdateStates int  nCookie  )  [protected]
 

Definition at line 168 of file CtrlDownloadTabBar.cpp.

References CDownloadGroups::Check(), DownloadGroups, CDownloadTabBar::TabItem::m_pGroup, m_pItems, and CDownloadTabBar::TabItem::Update().

Referenced by Update().


Friends And Related Function Documentation

friend class TabItem [friend]
 

Definition at line 120 of file CtrlDownloadTabBar.h.

Referenced by UpdateGroups().


Member Data Documentation

BOOL CDownloadTabBar::m_bMenuGray [protected]
 

Definition at line 64 of file CtrlDownloadTabBar.h.

Referenced by OnRButtonUp().

CBitmap CDownloadTabBar::m_bmImage [protected]
 

Definition at line 70 of file CtrlDownloadTabBar.h.

Referenced by DoPaint(), and SetWatermark().

BOOL CDownloadTabBar::m_bTimer [protected]
 

Definition at line 63 of file CtrlDownloadTabBar.h.

Referenced by OnMouseMove(), and OnTimer().

int CDownloadTabBar::m_nCookie [protected]
 

Definition at line 65 of file CtrlDownloadTabBar.h.

Referenced by Update(), and UpdateGroups().

int CDownloadTabBar::m_nMaximumWidth [protected]
 

Definition at line 67 of file CtrlDownloadTabBar.h.

Referenced by DoPaint(), and HitTest().

UINT CDownloadTabBar::m_nMessage [protected]
 

Definition at line 68 of file CtrlDownloadTabBar.h.

TabItem* CDownloadTabBar::m_pHot [protected]
 

Definition at line 62 of file CtrlDownloadTabBar.h.

Referenced by DoPaint(), DropObjects(), DropShowTarget(), OnMouseMove(), OnTimer(), and UpdateGroups().

CPtrList CDownloadTabBar::m_pItems [protected]
 

Definition at line 61 of file CtrlDownloadTabBar.h.

Referenced by DoPaint(), GetSelectedCount(), GetSelectedDownloads(), GetSelectedItem(), HitTest(), Select(), UpdateGroups(), UpdateStates(), and ~CDownloadTabBar().

CString CDownloadTabBar::m_sMessage [protected]
 

Definition at line 69 of file CtrlDownloadTabBar.h.

Referenced by DoPaint().


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