#include <SpiderTaskTree.h>
Public Member Functions | |
| CSpiderTaskTree () | |
| void | OnWebPageWillBeDeleted (fsDLWebPage *wp) |
| void | OnDldWillBeDeleted (vmsDownloadSmartPtr dld) |
| void | OnFileAdded (t_wptree root) |
| void | UpdateDownload (vmsDownloadSmartPtr dld) |
| void | UpdateAll () |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CSpiderTaskTree () |
Public Attributes | |
| fsWebPageDownloader * | m_wpd |
Protected Member Functions | |
| void | ShowContextMenu () |
| void | CalcCoordsForCurSel () |
| int | FindTree (HTREEITEM hItem) |
| int | FindTree (t_wptree tree) |
| int | FindDownload (vmsDownloadSmartPtr dld) |
| int | GetDownloadImage (fsDLWebPage *wp) |
| void | AddTree (t_wptree tree, HTREEITEM hParent) |
| afx_msg void | OnRclick (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnRButtonDown (UINT nFlags, CPoint point) |
| afx_msg void | OnDontdownloadanddel () |
| afx_msg void | OnKeydown (NMHDR *pNMHDR, LRESULT *pResult) |
Protected Attributes | |
| fs::list< _Conformity > | m_vConfs |
| CImageList | m_images |
| POINT | m_rbPt |
Classes | |
| struct | _Conformity |
Definition at line 14 of file SpiderTaskTree.h.
| CSpiderTaskTree::CSpiderTaskTree | ( | ) |
| CSpiderTaskTree::~CSpiderTaskTree | ( | ) | [virtual] |
Definition at line 25 of file SpiderTaskTree.cpp.
| void CSpiderTaskTree::OnWebPageWillBeDeleted | ( | fsDLWebPage * | wp | ) |
Definition at line 208 of file SpiderTaskTree.cpp.
References fsDLWebPage::dld, FindTree(), fsWebPageDownloader::FindWebPageTree(), m_vConfs, m_wpd, and NULL.
Referenced by CSpiderWnd::_DownloaderEvents().
| void CSpiderTaskTree::OnDldWillBeDeleted | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 141 of file SpiderTaskTree.cpp.
References FindDownload(), and m_vConfs.
Referenced by CSpiderWnd::_DownloaderEvents().
| void CSpiderTaskTree::OnFileAdded | ( | t_wptree | root | ) |
Definition at line 120 of file SpiderTaskTree.cpp.
References AddTree(), FindTree(), and m_vConfs.
Referenced by CSpiderWnd::_DownloaderEvents().
| void CSpiderTaskTree::UpdateDownload | ( | vmsDownloadSmartPtr | dld | ) |
Definition at line 99 of file SpiderTaskTree.cpp.
References FindDownload(), GetDownloadImage(), and m_vConfs.
Referenced by CSpiderWnd::_DownloaderEvents().
| void CSpiderTaskTree::UpdateAll | ( | ) |
Definition at line 56 of file SpiderTaskTree.cpp.
References AddTree(), fsWebPageDownloader::GetRootPage(), m_vConfs, m_wpd, and NULL.
Referenced by CSpiderTasks::OnDeleteAllItems(), CSpiderTasks::OnDeleteItem(), CSpiderTasks::UpdateActiveWPD(), and CSpiderWnd::UpdateTasksIcons().
| BOOL CSpiderTaskTree::Create | ( | CWnd * | pParent | ) |
Definition at line 38 of file SpiderTaskTree.cpp.
References FALSE, IDB_DOWNLOADSTASKS, m_images, SBMP, and TRUE.
Referenced by CSpiderWnd::OnCreate().
| void CSpiderTaskTree::ShowContextMenu | ( | ) | [protected] |
Definition at line 260 of file SpiderTaskTree.cpp.
References fsDLWebPage::dld, FindTree(), ID_DONTDOWNLOADANDDEL, IDM_SPIDER_TREE, L_DONTDOWNLOADANDDEL, LS, m_rbPt, m_vConfs, and NULL.
Referenced by OnKeydown(), and OnRclick().
| void CSpiderTaskTree::CalcCoordsForCurSel | ( | ) | [protected] |
Definition at line 246 of file SpiderTaskTree.cpp.
References m_rbPt, NULL, and TRUE.
Referenced by OnKeydown().
| int CSpiderTaskTree::FindTree | ( | HTREEITEM | hItem | ) | [protected] |
Definition at line 173 of file SpiderTaskTree.cpp.
References m_vConfs.
Referenced by OnDontdownloadanddel(), OnFileAdded(), OnWebPageWillBeDeleted(), and ShowContextMenu().
| int CSpiderTaskTree::FindTree | ( | t_wptree | tree | ) | [protected] |
| int CSpiderTaskTree::FindDownload | ( | vmsDownloadSmartPtr | dld | ) | [protected] |
Definition at line 109 of file SpiderTaskTree.cpp.
References m_vConfs.
Referenced by OnDldWillBeDeleted(), and UpdateDownload().
| int CSpiderTaskTree::GetDownloadImage | ( | fsDLWebPage * | wp | ) | [protected] |
Definition at line 89 of file SpiderTaskTree.cpp.
References fsDLWebPage::bState, fsDLWebPage::dld, CDownloads_Tasks::GetDownloadImage(), and WPSTATE_DLDWASDELETED.
Referenced by AddTree(), and UpdateDownload().
| void CSpiderTaskTree::AddTree | ( | t_wptree | tree, | |
| HTREEITEM | hParent | |||
| ) | [protected] |
Definition at line 69 of file SpiderTaskTree.cpp.
References GetDownloadImage(), CSpiderTaskTree::_Conformity::hItem, m_vConfs, fsDLWebPage::strURL, and CSpiderTaskTree::_Conformity::wptree.
Referenced by OnFileAdded(), and UpdateAll().
| void CSpiderTaskTree::OnRclick | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CSpiderTaskTree::OnRButtonDown | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CSpiderTaskTree::OnDontdownloadanddel | ( | ) | [protected] |
Definition at line 184 of file SpiderTaskTree.cpp.
References _App, fsAppSettings::Deleted_ConfirmDeletion(), CDownloadsWnd::DeleteDownload(), FindTree(), L_AREYOUSURE, L_CONFIRMATION, LS, m_vConfs, NULL, and TRUE.
Referenced by OnKeydown().
| void CSpiderTaskTree::OnKeydown | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
Definition at line 226 of file SpiderTaskTree.cpp.
References CalcCoordsForCurSel(), OnDontdownloadanddel(), and ShowContextMenu().
Definition at line 37 of file SpiderTaskTree.h.
Referenced by CSpiderTaskTree(), CSpiderTasks::OnDeleteAllItems(), CSpiderTasks::OnDeleteItem(), OnWebPageWillBeDeleted(), CSpiderTasks::UpdateActiveWPD(), and UpdateAll().
fs::list<_Conformity> CSpiderTaskTree::m_vConfs [protected] |
Definition at line 52 of file SpiderTaskTree.h.
Referenced by AddTree(), FindDownload(), FindTree(), OnDldWillBeDeleted(), OnDontdownloadanddel(), OnFileAdded(), OnWebPageWillBeDeleted(), ShowContextMenu(), UpdateAll(), and UpdateDownload().
CImageList CSpiderTaskTree::m_images [protected] |
POINT CSpiderTaskTree::m_rbPt [protected] |
Definition at line 65 of file SpiderTaskTree.h.
Referenced by CalcCoordsForCurSel(), OnRButtonDown(), OnRclick(), and ShowContextMenu().
1.5.6