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

CDownloadMonitorDlg Class Reference

#include <DlgDownloadMonitor.h>

Inheritance diagram for CDownloadMonitorDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_DOWNLOAD_MONITOR }

Public Member Functions

 CDownloadMonitorDlg (CDownload *pDownload)
virtual ~CDownloadMonitorDlg ()

Static Public Member Functions

static void OnSkinChange (BOOL bSet)
static void CloseAll ()

Public Attributes

CDownloadm_pDownload
CString m_sName
CLineGraphm_pGraph
CGraphItemm_pItem
BOOL m_bTray
NOTIFYICONDATA m_pTray
BOOL m_bCompleted
CStatic m_wndVolume
CStatic m_wndVolumeLabel
CButton m_wndCancel
CButton m_wndClose
CButton m_wndStop
CStatic m_wndProgress
CStatic m_wndTime
CStatic m_wndTimeLabel
CStatic m_wndStatus
CStatic m_wndSpeed
CStatic m_wndSpeedLabel
CStatic m_wndSources
CStatic m_wndSourcesLabel
CButton m_wndLibrary
CButton m_wndLaunch
CStatic m_wndIcon
CStatic m_wndGraph
CStatic m_wndFile

Static Public Attributes

static CPtrList m_pWindows

Protected Member Functions

BOOL CreateReal (UINT nID)
void Update (CWnd *pWnd, LPCTSTR pszText)
void Update (CWnd *pWnd, BOOL bEnabled)
void DoPaint (CDC &dc)
void DrawProgressBar (CDC *pDC, CRect *pRect)
virtual void DoDataExchange (CDataExchange *pDX)
virtual void PostNcDestroy ()
virtual BOOL OnInitDialog ()
afx_msg void OnPaint ()
afx_msg void OnDownloadCancel ()
afx_msg void OnDestroy ()
afx_msg void OnTimer (UINT nIDEvent)
afx_msg void OnDownloadLaunch ()
afx_msg void OnDownloadLibrary ()
afx_msg void OnDownloadStop ()
afx_msg void OnClose ()
afx_msg void OnSysCommand (UINT nID, LPARAM lParam)
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnInitMenuPopup (CMenu *pPopupMenu, UINT nIndex, BOOL bSysMenu)
afx_msg LONG OnTray (UINT wParam, LONG lParam)
afx_msg BOOL OnNeedText (UINT nID, NMHDR *pTTT, LRESULT *pResult)
afx_msg void OnSize (UINT nType, int cx, int cy)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 67 of file DlgDownloadMonitor.h.


Constructor & Destructor Documentation

CDownloadMonitorDlg::CDownloadMonitorDlg CDownload pDownload  ) 
 

Definition at line 74 of file DlgDownloadMonitor.cpp.

CDownloadMonitorDlg::~CDownloadMonitorDlg  )  [virtual]
 

Definition at line 89 of file DlgDownloadMonitor.cpp.

References m_pGraph, m_pWindows, and NULL.


Member Function Documentation

void CDownloadMonitorDlg::CloseAll  )  [static]
 

Definition at line 156 of file DlgDownloadMonitor.cpp.

References m_pWindows.

Referenced by CMainWnd::OnClose().

BOOL CDownloadMonitorDlg::CreateReal UINT  nID  )  [protected]
 

Definition at line 119 of file DlgDownloadMonitor.cpp.

References NULL.

void CDownloadMonitorDlg::DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 95 of file DlgDownloadMonitor.cpp.

References CSkinDialog::DoDataExchange(), IDC_DOWNLOAD_CANCEL, IDC_DOWNLOAD_CLOSE, IDC_DOWNLOAD_FILE, IDC_DOWNLOAD_GRAPH, IDC_DOWNLOAD_ICON, IDC_DOWNLOAD_LAUNCH, IDC_DOWNLOAD_LIBRARY, IDC_DOWNLOAD_SOURCES, IDC_DOWNLOAD_SPEED, IDC_DOWNLOAD_STATUS, IDC_DOWNLOAD_STOP, IDC_DOWNLOAD_TIME, IDC_DOWNLOAD_VOLUME, IDC_PROGRESS, m_wndCancel, m_wndClose, m_wndFile, m_wndGraph, m_wndIcon, m_wndLaunch, m_wndLibrary, m_wndProgress, m_wndSources, m_wndSpeed, m_wndStatus, m_wndStop, m_wndTime, and m_wndVolume.

void CDownloadMonitorDlg::DoPaint CDC &  dc  )  [protected]
 

Definition at line 483 of file DlgDownloadMonitor.cpp.

References CGraphBase::BufferedPaint(), DrawProgressBar(), m_pGraph, m_wndGraph, and m_wndProgress.

Referenced by OnPaint(), and OnTimer().

void CDownloadMonitorDlg::DrawProgressBar CDC *  pDC,
CRect *  pRect
[protected]
 

Definition at line 501 of file DlgDownloadMonitor.cpp.

References CDownloads::Check(), Downloads, CFragmentBar::DrawDownload(), CSkin::m_crDialog, m_pDownload, CTransfers::m_pSection, Skin, and Transfers.

Referenced by DoPaint().

void CDownloadMonitorDlg::OnClose  )  [protected]
 

Definition at line 583 of file DlgDownloadMonitor.cpp.

void CDownloadMonitorDlg::OnContextMenu CWnd *  pWnd,
CPoint  point
[protected]
 

Definition at line 656 of file DlgDownloadMonitor.cpp.

References CCoolMenu::AddMenu(), CoolMenu, CWindowManager::Find(), CSkin::GetMenu(), ID_DOWNLOADS_LAUNCH, m_pDownload, CMainWnd::m_pWindows, CDownloadsWnd::Select(), and Skin.

HBRUSH CDownloadMonitorDlg::OnCtlColor CDC *  pDC,
CWnd *  pWnd,
UINT  nCtlColor
[protected]
 

Reimplemented from CSkinDialog.

Definition at line 644 of file DlgDownloadMonitor.cpp.

References CShareazaApp::m_gdiFontBold, m_wndFile, CSkinDialog::OnCtlColor(), and theApp.

void CDownloadMonitorDlg::OnDestroy  )  [protected]
 

Definition at line 223 of file DlgDownloadMonitor.cpp.

References CDownloads::Check(), Downloads, m_bTray, m_pDownload, CDownloadWithExtras::m_pMonitorWnd, CTransfers::m_pSection, m_pTray, NULL, and Transfers.

void CDownloadMonitorDlg::OnDownloadCancel  )  [protected]
 

Definition at line 578 of file DlgDownloadMonitor.cpp.

void CDownloadMonitorDlg::OnDownloadLaunch  )  [protected]
 

Definition at line 516 of file DlgDownloadMonitor.cpp.

References CDownloads::Check(), Downloads, CFileExecutor::Execute(), CDownload::IsMoving(), CPlugins::LookupCLSID(), m_pDownload, CTransfers::m_pSection, CDownloadBase::m_sLocalName, Plugins, CDownloadWithExtras::Preview(), and Transfers.

void CDownloadMonitorDlg::OnDownloadLibrary  )  [protected]
 

Definition at line 546 of file DlgDownloadMonitor.cpp.

References ID_VIEW_LIBRARY.

void CDownloadMonitorDlg::OnDownloadStop  )  [protected]
 

Definition at line 555 of file DlgDownloadMonitor.cpp.

References CDownloads::Check(), Downloads, IDS_DOWNLOAD_CONFIRM_CLEAR, CDownload::IsStarted(), LoadString(), m_pDownload, CTransfers::m_pSection, CDownloadBase::m_sRemoteName, NULL, and Transfers.

BOOL CDownloadMonitorDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 168 of file DlgDownloadMonitor.cpp.

References CLineGraph::AddItem(), CDownloads::Check(), CreateMirroredIcon(), Downloads, ID_SEPARATOR, IDI_DOWNLOAD_MONITOR, CShellIcons::Lookup(), CShareazaApp::m_bRTL, CLineGraph::m_bShowAxis, CLineGraph::m_bShowLegend, CLineGraph::m_crBack, CLineGraph::m_crGrid, CLineGraph::m_nMinGridVert, m_pDownload, m_pGraph, m_pItem, CTransfers::m_pSection, m_sName, CDownloadBase::m_sRemoteName, m_wndFile, m_wndIcon, NULL, CSkinDialog::OnInitDialog(), OnTimer(), ShellIcons, CSkinDialog::SkinMe(), theApp, and Transfers.

void CDownloadMonitorDlg::OnInitMenuPopup CMenu *  pPopupMenu,
UINT  nIndex,
BOOL  bSysMenu
[protected]
 

Definition at line 698 of file DlgDownloadMonitor.cpp.

BOOL CDownloadMonitorDlg::OnNeedText UINT  nID,
NMHDR *  pTTT,
LRESULT *  pResult
[protected]
 

Definition at line 687 of file DlgDownloadMonitor.cpp.

References IDC_DOWNLOAD_FILE, and m_sName.

void CDownloadMonitorDlg::OnPaint  )  [protected]
 

Definition at line 477 of file DlgDownloadMonitor.cpp.

References DoPaint().

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

Reimplemented from CSkinDialog.

void CDownloadMonitorDlg::OnSkinChange BOOL  bSet  )  [static]
 

Definition at line 138 of file DlgDownloadMonitor.cpp.

References IDI_DOWNLOAD_MONITOR, CSkinDialog::m_pSkin, m_pWindows, NULL, and CSkinDialog::SkinMe().

Referenced by CMainWnd::OnSkinChanged().

void CDownloadMonitorDlg::OnSysCommand UINT  nID,
LPARAM  lParam
[protected]
 

Definition at line 588 of file DlgDownloadMonitor.cpp.

References IDI_DOWNLOAD_MONITOR, m_bTray, m_pTray, OnTray(), theApp, and WM_TRAY.

void CDownloadMonitorDlg::OnTimer UINT  nIDEvent  )  [protected]
 

Definition at line 254 of file DlgDownloadMonitor.cpp.

References CGraphItem::Add(), CDownloads::Check(), DoPaint(), Downloads, CDownloadWithTransfers::GetAverageSpeed(), CDownloadWithTransfers::GetMeasuredSpeed(), CDownloadWithFile::GetProgress(), CDownloadWithSources::GetSourceCount(), CDownloadWithFile::GetTimeRemaining(), CDownloadWithTransfers::GetTransferCount(), CDownloadWithFile::GetVolumeComplete(), IDS_DLM_COMPLETED, IDS_DLM_COMPLETED_WORD, IDS_DLM_DOWNLOADING, IDS_DLM_MOVING, IDS_DLM_NO_SOURCES, IDS_DLM_OPEN_OPEN, IDS_DLM_OPEN_PREVIEW, IDS_DLM_PAUSED, IDS_DLM_SOURCING, IDS_DLM_TIME_DAH, IDS_DLM_TIME_HAM, IDS_DLM_TIME_MAS, IDS_DLM_TIME_S, IDS_DLM_VERIFY, IDS_GENERAL_OF, IDS_TIP_NA, CDownload::IsCompleted(), CDownload::IsMoving(), CDownload::IsPaused(), CDownload::IsStarted(), LoadString(), m_bCompleted, CShareazaApp::m_bRTL, m_bTray, CLineGraph::m_nMaximum, CDownloadBase::m_nSize, CLineGraph::m_nUpdates, m_pDownload, m_pGraph, m_pItem, CTransfers::m_pSection, m_pTray, CDownloadBase::m_sRemoteName, m_wndClose, m_wndLaunch, m_wndSources, m_wndSpeed, m_wndStatus, m_wndStop, m_wndTime, m_wndVolume, Settings, CSettings::SmartVolume(), theApp, Transfers, and Update().

Referenced by OnInitDialog().

LONG CDownloadMonitorDlg::OnTray UINT  wParam,
LONG  lParam
[protected]
 

Definition at line 631 of file DlgDownloadMonitor.cpp.

References m_bTray, and m_pTray.

Referenced by OnSysCommand().

void CDownloadMonitorDlg::PostNcDestroy  )  [protected, virtual]
 

Definition at line 248 of file DlgDownloadMonitor.cpp.

void CDownloadMonitorDlg::Update CWnd *  pWnd,
BOOL  bEnabled
[protected]
 

Definition at line 471 of file DlgDownloadMonitor.cpp.

void CDownloadMonitorDlg::Update CWnd *  pWnd,
LPCTSTR  pszText
[protected]
 

Definition at line 464 of file DlgDownloadMonitor.cpp.

Referenced by OnTimer().


Member Data Documentation

BOOL CDownloadMonitorDlg::m_bCompleted
 

Definition at line 49 of file DlgDownloadMonitor.h.

Referenced by OnTimer().

BOOL CDownloadMonitorDlg::m_bTray
 

Definition at line 47 of file DlgDownloadMonitor.h.

Referenced by OnDestroy(), OnSysCommand(), OnTimer(), and OnTray().

CDownload* CDownloadMonitorDlg::m_pDownload
 

Definition at line 43 of file DlgDownloadMonitor.h.

Referenced by DrawProgressBar(), OnContextMenu(), OnDestroy(), OnDownloadLaunch(), OnDownloadStop(), OnInitDialog(), and OnTimer().

CLineGraph* CDownloadMonitorDlg::m_pGraph
 

Definition at line 45 of file DlgDownloadMonitor.h.

Referenced by DoPaint(), OnInitDialog(), OnTimer(), and ~CDownloadMonitorDlg().

CGraphItem* CDownloadMonitorDlg::m_pItem
 

Definition at line 46 of file DlgDownloadMonitor.h.

Referenced by OnInitDialog(), and OnTimer().

NOTIFYICONDATA CDownloadMonitorDlg::m_pTray
 

Definition at line 48 of file DlgDownloadMonitor.h.

Referenced by OnDestroy(), OnSysCommand(), OnTimer(), and OnTray().

CPtrList CDownloadMonitorDlg::m_pWindows [static]
 

Definition at line 68 of file DlgDownloadMonitor.cpp.

Referenced by CloseAll(), OnSkinChange(), and ~CDownloadMonitorDlg().

CString CDownloadMonitorDlg::m_sName
 

Definition at line 44 of file DlgDownloadMonitor.h.

Referenced by OnInitDialog(), and OnNeedText().

CButton CDownloadMonitorDlg::m_wndCancel
 

Definition at line 70 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange().

CButton CDownloadMonitorDlg::m_wndClose
 

Definition at line 71 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndFile
 

Definition at line 85 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), OnCtlColor(), and OnInitDialog().

CStatic CDownloadMonitorDlg::m_wndGraph
 

Definition at line 84 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and DoPaint().

CStatic CDownloadMonitorDlg::m_wndIcon
 

Definition at line 83 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnInitDialog().

CButton CDownloadMonitorDlg::m_wndLaunch
 

Definition at line 82 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CButton CDownloadMonitorDlg::m_wndLibrary
 

Definition at line 81 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange().

CStatic CDownloadMonitorDlg::m_wndProgress
 

Definition at line 73 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and DoPaint().

CStatic CDownloadMonitorDlg::m_wndSources
 

Definition at line 79 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndSourcesLabel
 

Definition at line 80 of file DlgDownloadMonitor.h.

CStatic CDownloadMonitorDlg::m_wndSpeed
 

Definition at line 77 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndSpeedLabel
 

Definition at line 78 of file DlgDownloadMonitor.h.

CStatic CDownloadMonitorDlg::m_wndStatus
 

Definition at line 76 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CButton CDownloadMonitorDlg::m_wndStop
 

Definition at line 72 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndTime
 

Definition at line 74 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndTimeLabel
 

Definition at line 75 of file DlgDownloadMonitor.h.

CStatic CDownloadMonitorDlg::m_wndVolume
 

Definition at line 68 of file DlgDownloadMonitor.h.

Referenced by DoDataExchange(), and OnTimer().

CStatic CDownloadMonitorDlg::m_wndVolumeLabel
 

Definition at line 69 of file DlgDownloadMonitor.h.


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