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

CDownloadEditDlg Class Reference

#include <DlgDownloadEdit.h>

Inheritance diagram for CDownloadEditDlg:

CSkinDialog List of all members.

Public Types

enum  { IDD = IDD_DOWNLOAD_EDIT }

Public Member Functions

 CDownloadEditDlg (CDownload *pDownload, CWnd *pParent=NULL)
virtual ~CDownloadEditDlg ()
BOOL Commit ()

Public Attributes

CDownloadm_pDownload
CString m_sName
CString m_sSHA1
CString m_sTiger
CString m_sED2K
CStatic m_wndForgetVerify
CStatic m_wndForgetSources
CString m_sEraseFrom
CString m_sEraseTo
CButton m_wndTorrent
CStatic m_wndCompleteVerify

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnTorrentInfo ()
afx_msg void OnErase ()
virtual void OnOK ()

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 38 of file DlgDownloadEdit.h.


Constructor & Destructor Documentation

CDownloadEditDlg::CDownloadEditDlg CDownload pDownload,
CWnd *  pParent = NULL
 

Definition at line 48 of file DlgDownloadEdit.cpp.

CDownloadEditDlg::~CDownloadEditDlg  )  [virtual]
 

Definition at line 53 of file DlgDownloadEdit.cpp.


Member Function Documentation

BOOL CDownloadEditDlg::Commit  ) 
 

Definition at line 275 of file DlgDownloadEdit.cpp.

References CDownloads::Check(), CDownloadWithTiger::ClearVerification(), CDownloadWithTransfers::CloseTransfers(), Downloads, CED2K::HashFromString(), CTigerNode::HashFromString(), CSHA::HashFromString(), IDS_DOWNLOAD_EDIT_BAD_ED2K, IDS_DOWNLOAD_EDIT_BAD_SHA1, IDS_DOWNLOAD_EDIT_BAD_TIGER, IDS_DOWNLOAD_EDIT_CHANGE_ED2K, IDS_DOWNLOAD_EDIT_CHANGE_SHA1, IDS_DOWNLOAD_EDIT_CHANGE_TIGER, IDS_DOWNLOAD_EDIT_RENAME, CDownload::IsMoving(), LoadString(), CDownloadBase::m_bED2K, CDownloadBase::m_bSHA1, CDownloadBase::m_bTiger, m_pDownload, CDownloadBase::m_pED2K, CTransfers::m_pSection, CDownloadBase::m_pSHA1, CDownloadBase::m_pTiger, m_sED2K, m_sName, CDownloadBase::m_sRemoteName, m_sSHA1, m_sTiger, pTiger, CDownload::Rename(), and Transfers.

Referenced by OnErase(), OnLButtonUp(), and OnOK().

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

Reimplemented from CSkinDialog.

Definition at line 57 of file DlgDownloadEdit.cpp.

References CSkinDialog::DoDataExchange(), IDC_COMPLETE_AND_VERIFY, IDC_ERASE_FROM, IDC_ERASE_TO, IDC_FORGET_SOURCES, IDC_FORGET_VERIFY, IDC_NAME, IDC_TORRENT_INFO, IDC_URN_ED2K, IDC_URN_SHA1, IDC_URN_TIGER, m_sED2K, m_sEraseFrom, m_sEraseTo, m_sName, m_sSHA1, m_sTiger, m_wndCompleteVerify, m_wndForgetSources, m_wndForgetVerify, and m_wndTorrent.

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

Reimplemented from CSkinDialog.

Definition at line 105 of file DlgDownloadEdit.cpp.

References CShareazaApp::m_gdiFontLine, m_wndCompleteVerify, m_wndForgetSources, m_wndForgetVerify, CSkinDialog::OnCtlColor(), and theApp.

void CDownloadEditDlg::OnErase  )  [protected]
 

Definition at line 228 of file DlgDownloadEdit.cpp.

References CDownloads::Check(), CDownloadWithTiger::ClearVerification(), CDownloadWithTransfers::CloseTransfers(), Commit(), Downloads, CDownloadWithFile::EraseRange(), IDS_DOWNLOAD_EDIT_BAD_RANGE, IDS_DOWNLOAD_EDIT_CANT_ERASE, IDS_DOWNLOAD_EDIT_ERASED, CDownload::IsMoving(), LoadString(), m_pDownload, CTransfers::m_pSection, m_sEraseFrom, m_sEraseTo, and Transfers.

BOOL CDownloadEditDlg::OnInitDialog  )  [protected, virtual]
 

Reimplemented from CSkinDialog.

Definition at line 75 of file DlgDownloadEdit.cpp.

References CDownloads::Check(), Downloads, CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), ID_TOOLS_DOWNLOAD, CBTInfo::IsAvailable(), CDownload::IsMoving(), CDownloadBase::m_bED2K, CDownloadBase::m_bSHA1, CDownloadBase::m_bTiger, m_pDownload, CDownloadBase::m_pED2K, CTransfers::m_pSection, CDownloadBase::m_pSHA1, CDownloadBase::m_pTiger, CDownloadWithTorrent::m_pTorrent, m_sED2K, m_sName, CDownloadBase::m_sRemoteName, m_sSHA1, m_sTiger, m_wndTorrent, NULL, CSkinDialog::OnInitDialog(), CSkinDialog::SkinMe(), and Transfers.

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

Definition at line 137 of file DlgDownloadEdit.cpp.

References CDownloads::Check(), CDownloadWithSources::ClearSources(), CDownloadWithTiger::ClearVerification(), CDownloadWithTransfers::CloseTransfers(), Commit(), Downloads, IDS_DOWNLOAD_EDIT_COMPLETE_NOHASH, IDS_DOWNLOAD_EDIT_COMPLETE_VERIFY, IDS_DOWNLOAD_EDIT_FORGET_SOURCES, IDS_DOWNLOAD_EDIT_FORGET_VERIFY, CDownload::IsMoving(), LoadString(), CDownloadBase::m_bBTH, m_pDownload, CTransfers::m_pSection, m_wndCompleteVerify, m_wndForgetSources, m_wndForgetVerify, CDownloadWithFile::MakeComplete(), CDownloadWithTiger::NeedHashset(), CDownloadWithTiger::NeedTigerTree(), CDownloadWithTiger::ResetVerification(), CDownloadBase::SetModified(), and Transfers.

void CDownloadEditDlg::OnOK  )  [protected, virtual]
 

Definition at line 269 of file DlgDownloadEdit.cpp.

References Commit().

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

Definition at line 118 of file DlgDownloadEdit.cpp.

References IDC_HAND, m_wndCompleteVerify, m_wndForgetSources, and m_wndForgetVerify.

void CDownloadEditDlg::OnTorrentInfo  )  [protected]
 

Definition at line 209 of file DlgDownloadEdit.cpp.

References CDownloads::Check(), Downloads, CBTInfo::IsAvailable(), CDownloadWithTorrent::m_nStartTorrentDownloads, m_pDownload, CTransfers::m_pSection, CDownloadWithTorrent::m_pTorrent, and Transfers.


Member Data Documentation

CDownload* CDownloadEditDlg::m_pDownload
 

Definition at line 42 of file DlgDownloadEdit.h.

Referenced by Commit(), OnErase(), OnInitDialog(), OnLButtonUp(), and OnTorrentInfo().

CString CDownloadEditDlg::m_sED2K
 

Definition at line 46 of file DlgDownloadEdit.h.

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

CString CDownloadEditDlg::m_sEraseFrom
 

Definition at line 49 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), and OnErase().

CString CDownloadEditDlg::m_sEraseTo
 

Definition at line 50 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), and OnErase().

CString CDownloadEditDlg::m_sName
 

Definition at line 43 of file DlgDownloadEdit.h.

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

CString CDownloadEditDlg::m_sSHA1
 

Definition at line 44 of file DlgDownloadEdit.h.

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

CString CDownloadEditDlg::m_sTiger
 

Definition at line 45 of file DlgDownloadEdit.h.

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

CStatic CDownloadEditDlg::m_wndCompleteVerify
 

Definition at line 52 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), OnCtlColor(), OnLButtonUp(), and OnSetCursor().

CStatic CDownloadEditDlg::m_wndForgetSources
 

Definition at line 48 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), OnCtlColor(), OnLButtonUp(), and OnSetCursor().

CStatic CDownloadEditDlg::m_wndForgetVerify
 

Definition at line 47 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), OnCtlColor(), OnLButtonUp(), and OnSetCursor().

CButton CDownloadEditDlg::m_wndTorrent
 

Definition at line 51 of file DlgDownloadEdit.h.

Referenced by DoDataExchange(), and OnInitDialog().


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