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

DlgDownloadMonitor.h

Go to the documentation of this file.
00001 //
00002 // DlgDownloadMonitor.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_)
00023 #define AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "DlgSkinDialog.h"
00028 
00029 class CDownload;
00030 class CLineGraph;
00031 class CGraphItem;
00032 
00033 
00034 class CDownloadMonitorDlg : public CSkinDialog
00035 {
00036 // Construction
00037 public:
00038         CDownloadMonitorDlg(CDownload* pDownload);
00039         virtual ~CDownloadMonitorDlg();
00040 
00041 // Attributes
00042 public:
00043         CDownload*              m_pDownload;
00044         CString                 m_sName;
00045         CLineGraph*             m_pGraph;
00046         CGraphItem*             m_pItem;
00047         BOOL                    m_bTray;
00048         NOTIFYICONDATA  m_pTray;
00049         BOOL                    m_bCompleted;
00050 public:
00051         static CPtrList m_pWindows;
00052 
00053 // Operatons
00054 protected:
00055         BOOL    CreateReal(UINT nID);
00056         void    Update(CWnd* pWnd, LPCTSTR pszText);
00057         void    Update(CWnd* pWnd, BOOL bEnabled);
00058         void    DoPaint(CDC& dc);
00059         void    DrawProgressBar(CDC* pDC, CRect* pRect);
00060 public:
00061         static void OnSkinChange(BOOL bSet);
00062         static void CloseAll();
00063 
00064 // Dialog Data
00065 public:
00066         //{{AFX_DATA(CDownloadMonitorDlg)
00067         enum { IDD = IDD_DOWNLOAD_MONITOR };
00068         CStatic m_wndVolume;
00069         CStatic m_wndVolumeLabel;
00070         CButton m_wndCancel;
00071         CButton m_wndClose;
00072         CButton m_wndStop;
00073         CStatic m_wndProgress;
00074         CStatic m_wndTime;
00075         CStatic m_wndTimeLabel;
00076         CStatic m_wndStatus;
00077         CStatic m_wndSpeed;
00078         CStatic m_wndSpeedLabel;
00079         CStatic m_wndSources;
00080         CStatic m_wndSourcesLabel;
00081         CButton m_wndLibrary;
00082         CButton m_wndLaunch;
00083         CStatic m_wndIcon;
00084         CStatic m_wndGraph;
00085         CStatic m_wndFile;
00086         //}}AFX_DATA
00087 
00088 // Overrides
00089 public:
00090         //{{AFX_VIRTUAL(CDownloadMonitorDlg)
00091         protected:
00092         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00093         virtual void PostNcDestroy();
00094         //}}AFX_VIRTUAL
00095 
00096 // Implementation
00097 protected:
00098         //{{AFX_MSG(CDownloadMonitorDlg)
00099         virtual BOOL OnInitDialog();
00100         afx_msg void OnPaint();
00101         afx_msg void OnDownloadCancel();
00102         afx_msg void OnDestroy();
00103         afx_msg void OnTimer(UINT nIDEvent);
00104         afx_msg void OnDownloadLaunch();
00105         afx_msg void OnDownloadLibrary();
00106         afx_msg void OnDownloadStop();
00107         afx_msg void OnClose();
00108         afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00109         afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00110         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00111         afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
00112         afx_msg LONG OnTray(UINT wParam, LONG lParam);
00113         afx_msg BOOL OnNeedText(UINT nID, NMHDR* pTTT, LRESULT* pResult);
00114         afx_msg void OnSize(UINT nType, int cx, int cy);
00115         //}}AFX_MSG
00116 
00117         DECLARE_MESSAGE_MAP()
00118 };
00119 
00120 //{{AFX_INSERT_LOCATION}}
00121 
00122 #endif // !defined(AFX_DLGDOWNLOADMONITOR_H__46BFBDED_8DCF_4E08_B224_8718FA19E7BF__INCLUDED_)

Generated on Thu Dec 15 10:39:39 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2