#include <SpiderWnd.h>
Public Member Functions | |
| CSpiderWnd () | |
| void | UpdateTasksIcons () |
| afx_msg void | OnSpiderDl () |
| void | SetupDefSettings () |
| void | SaveAll (BOOL bMsgIfErr=FALSE) |
| void | SavePages (BOOL bMsgIfErr=TRUE) |
| fsWebPageDownloadsMgr * | GetMgr () |
| fsWebPageDownloader * | AddWebPage (LPCSTR pszStartUrl=NULL, BOOL bReqTopMost=FALSE) |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CSpiderWnd () |
Static Public Member Functions | |
| static HMENU | Plugin_GetViewMenu () |
| static HMENU | Plugin_GetMainMenu () |
| static void | Plugin_SetLanguage (wgLanguage, HMENU hMenuMain, HMENU) |
| static void | Plugin_GetPluginNames (LPCSTR *ppszLong, LPCSTR *ppszShort) |
| static void | Plugin_GetMenuViewItems (wgMenuViewItem **ppItems, int *cItems) |
| static void | Plugin_GetMenuImages (fsSetImage **ppImages, int *pcImages) |
| static void | Plugin_GetToolBarInfo (wgTButtonInfo **ppButtons, int *pcButtons) |
| static HWND | Plugin_CreateMainWindow (HWND hParent) |
Public Attributes | |
| fsWebPageDownloadsMgr | m_mgr |
Protected Member Functions | |
| afx_msg LRESULT | OnInsert (WPARAM, LPARAM) |
| afx_msg void | OnPagesListShowCol (UINT uCmd) |
| void | UpdatePagesListColMenu (CMenu *menu) |
| afx_msg LRESULT | OnUpdateMenuView (WPARAM, LPARAM lp) |
| void | ApplyLanguageToMenuView (CMenu *menu) |
| void | ApplyLanguage () |
| afx_msg LRESULT | OnUpdateToolBar (WPARAM, LPARAM) |
| afx_msg LRESULT | OnUpdateMenu (WPARAM, LPARAM) |
| afx_msg LRESULT | OnAppQueryExit (WPARAM, LPARAM) |
| afx_msg LRESULT | OnAppExit (WPARAM, LPARAM) |
| void | LoadPages () |
| afx_msg void | OnShowTree () |
| void | ShowTree (BOOL bShow) |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
| afx_msg void | OnTimer (UINT nIDEvent) |
| afx_msg void | OnSpiderDelete () |
| afx_msg void | OnSpiderOpenfolder () |
| afx_msg void | OnSpiderOpenpage () |
| afx_msg void | OnSpiderSchedule () |
| afx_msg void | OnSpiderSettings () |
| afx_msg void | OnSpiderStartautomatically () |
| afx_msg void | OnSpiderStartdl () |
| afx_msg void | OnSpiderStopdl () |
| afx_msg void | OnSetFocus (CWnd *pOldWnd) |
Static Protected Member Functions | |
| static void | _DownloaderEvents (fsWebPageDownloader *dldr, fsWPDEvent ev, int info, LPVOID lp) |
Protected Attributes | |
| BOOL | m_bShowTree |
| CWndSplitter | m_wndSplitter |
| CSpiderTaskTree | m_wndTaskTree |
| CSpiderTasks | m_wndTasks |
Friends | |
| class | CSpiderTasks |
Definition at line 20 of file SpiderWnd.h.
| CSpiderWnd::CSpiderWnd | ( | ) |
Definition at line 22 of file SpiderWnd.cpp.
References _DownloaderEvents(), m_mgr, and fsWebPageDownloadsMgr::SetEventsFunc().
| CSpiderWnd::~CSpiderWnd | ( | ) | [virtual] |
Definition at line 27 of file SpiderWnd.cpp.
| HMENU CSpiderWnd::Plugin_GetViewMenu | ( | ) | [static] |
Definition at line 485 of file SpiderWnd.cpp.
References IDM_SPIDER_VIEW.
Referenced by fsPluginMgr::LoadBuiltIn().
| HMENU CSpiderWnd::Plugin_GetMainMenu | ( | ) | [static] |
Definition at line 480 of file SpiderWnd.cpp.
References IDM_SPIDER.
Referenced by fsPluginMgr::LoadBuiltIn().
| void CSpiderWnd::Plugin_SetLanguage | ( | wgLanguage | , | |
| HMENU | hMenuMain, | |||
| HMENU | hMenuView | |||
| ) | [static] |
Definition at line 428 of file SpiderWnd.cpp.
References ApplyLanguage(), CSpiderTasks::ApplyLanguageToMenu(), ApplyLanguageToMenuView(), and m_wndTasks.
Referenced by fsPluginMgr::LoadBuiltIn().
Definition at line 128 of file SpiderWnd.cpp.
References L_HTMLSPIDER, and LS.
Referenced by fsPluginMgr::LoadBuiltIn().
| void CSpiderWnd::Plugin_GetMenuViewItems | ( | wgMenuViewItem ** | ppItems, | |
| int * | cItems | |||
| ) | [static] |
Definition at line 116 of file SpiderWnd.cpp.
References L_WEBPAGETREE, LS, m_bShowTree, and wgMenuViewItem::pszName.
Referenced by fsPluginMgr::LoadBuiltIn().
| void CSpiderWnd::Plugin_GetMenuImages | ( | fsSetImage ** | ppImages, | |
| int * | pcImages | |||
| ) | [static] |
Definition at line 100 of file SpiderWnd.cpp.
References ID_SPIDER_DELETE, ID_SPIDER_DL, ID_SPIDER_SCHEDULE, ID_SPIDER_SETTINGS, ID_SPIDER_STARTDL, and ID_SPIDER_STOPDL.
Referenced by fsPluginMgr::LoadBuiltIn(), and CSpiderTasks::OnRClick().
| void CSpiderWnd::Plugin_GetToolBarInfo | ( | wgTButtonInfo ** | ppButtons, | |
| int * | pcButtons | |||
| ) | [static] |
Definition at line 81 of file SpiderWnd.cpp.
References ID_SPIDER_DL, ID_SPIDER_SCHEDULE, ID_SPIDER_STARTDL, ID_SPIDER_STOPDL, L_DLWEBPAGE, L_SCHEDULEDL, L_STARTDL, L_STOPDL, LS, and wgTButtonInfo::pszToolTip.
Referenced by fsPluginMgr::LoadBuiltIn().
| HWND CSpiderWnd::Plugin_CreateMainWindow | ( | HWND | hParent | ) | [static] |
Definition at line 61 of file SpiderWnd.cpp.
References Create(), and fsnew1.
Referenced by fsPluginMgr::LoadBuiltIn().
| void CSpiderWnd::UpdateTasksIcons | ( | ) |
Definition at line 422 of file SpiderWnd.cpp.
References m_wndTasks, m_wndTaskTree, CSpiderTaskTree::UpdateAll(), and CSpiderTasks::UpdateIcons().
Referenced by fsScheduleMgr::AddTask(), CSheduler_Tasks::OnTasksDeletetask(), and fsScheduleMgr::OnTaskUpdated().
| void CSpiderWnd::OnSpiderDl | ( | ) |
Definition at line 217 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderDl().
Referenced by CMainFrame::OnSpiderDLWebPage().
| void CSpiderWnd::SetupDefSettings | ( | ) |
Definition at line 345 of file SpiderWnd.cpp.
References _App, _DlgMgr, fsWPDSettings::bDownloadFiles, fsWPDSettings::bDownloadImages, fsWPDSettings::bDownloadStyles, fsWPDSettings::bNotAllFiles, fsWPDSettings::bNotAllImages, fsWPDSettings::bNotAllPages, fsWPDSettings::bSavePagesUnderHTM, fsWPDSettings::enExtsType, fsWPDSettings::enImgsExtsType, FALSE, fsWPDSettings::iDepth, CWPDS_Sheet::Init(), L_SPIDERDEFSETTINGS, LS, NULL, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), fsWebPageDownloader::ReadDefaultWPDS(), fsAppSettings::Spider_Depth(), fsAppSettings::Spider_DownloadFiles(), fsAppSettings::Spider_DownloadImages(), fsAppSettings::Spider_DownloadStyles(), fsAppSettings::Spider_Exts(), fsAppSettings::Spider_ExtsType(), fsAppSettings::Spider_HTMLExts(), fsAppSettings::Spider_ImgExts(), fsAppSettings::Spider_ImgExtsType(), fsAppSettings::Spider_NotAllFiles(), fsAppSettings::Spider_NotAllImages(), fsAppSettings::Spider_NotAllPages(), fsAppSettings::Spider_SavePagesUnderHTM(), fsWPDSettings::strExts, fsWPDSettings::strHTMLExts, and fsWPDSettings::strImgsExts.
Referenced by CMainFrame::OnSpiderDefSettings().
| void CSpiderWnd::SaveAll | ( | BOOL | bMsgIfErr = FALSE |
) |
Definition at line 210 of file SpiderWnd.cpp.
References _App, CWndSplitter::GetRatio(), m_wndSplitter, m_wndTasks, SavePages(), CListCtrlEx::SaveState(), and fsAppSettings::View_SplitterRatio().
Referenced by OnAppExit(), and CMainFrame::OnSaveall().
| void CSpiderWnd::SavePages | ( | BOOL | bMsgIfErr = TRUE |
) |
Definition at line 330 of file SpiderWnd.cpp.
References FALSE, m_mgr, fsWebPageDownloadsMgr::Save(), and TRUE.
Referenced by SaveAll().
| fsWebPageDownloadsMgr * CSpiderWnd::GetMgr | ( | ) |
Definition at line 307 of file SpiderWnd.cpp.
References m_mgr.
Referenced by CDownloadsWnd::_Events(), CMainFrame::Balloon_ShowDLInfo(), CSpiderTasks::OnForceUpdate(), CSpiderTasks::OnSpiderDelete(), and CMainFrame::OnStopall().
| fsWebPageDownloader * CSpiderWnd::AddWebPage | ( | LPCSTR | pszStartUrl = NULL, |
|
| BOOL | bReqTopMost = FALSE | |||
| ) |
Definition at line 222 of file SpiderWnd.cpp.
References _DlgMgr, fsWebPageDownloadsMgr::Add(), CSpiderTasks::AddWebPage(), fsWebPageDownloader::Create(), fsWebPageDownloadsMgr::Delete(), fsDialogsMgr::DoModal(), FALSE, fsnew1, CSpiderAddPageDlg::m_bAutoStart, CSpiderAddPageDlg::m_bReqTopMost, CSpiderAddPageDlg::m_bScheduled, m_mgr, CSpiderAddPageDlg::m_strStartUrl, CSpiderAddPageDlg::m_strUrl, CSpiderAddPageDlg::m_task, m_wndTasks, CSpiderAddPageDlg::m_wpd, and NULL.
Referenced by CWGUrlReceiver::_threadAddPage(), and CSpiderTasks::OnSpiderDl().
| BOOL CSpiderWnd::Create | ( | CWnd * | pParent | ) |
Definition at line 70 of file SpiderWnd.cpp.
References FALSE, NULL, and TRUE.
Referenced by Plugin_CreateMainWindow().
| LRESULT CSpiderWnd::OnInsert | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 474 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderDl().
| void CSpiderWnd::OnPagesListShowCol | ( | UINT | uCmd | ) | [protected] |
Definition at line 468 of file SpiderWnd.cpp.
References CListCtrlEx::ChangeColumnVisibility(), ID_LOW_1, and m_wndTasks.
| void CSpiderWnd::UpdatePagesListColMenu | ( | CMenu * | menu | ) | [protected] |
Definition at line 454 of file SpiderWnd.cpp.
References BOOL, FALSE, ID_LOW_1, CListCtrlEx::IsColumnShown(), and m_wndTasks.
Referenced by OnUpdateMenuView().
| LRESULT CSpiderWnd::OnUpdateMenuView | ( | WPARAM | , | |
| LPARAM | lp | |||
| ) | [protected] |
| void CSpiderWnd::ApplyLanguageToMenuView | ( | CMenu * | menu | ) | [protected] |
Definition at line 436 of file SpiderWnd.cpp.
References ID_LOW_1, ID_LOW_2, ID_LOW_3, L_FILES, L_LISTOFPAGES, L_PROGRESS, L_WEBPAGEURL, and LS.
Referenced by Plugin_SetLanguage().
| void CSpiderWnd::ApplyLanguage | ( | ) | [protected] |
Definition at line 371 of file SpiderWnd.cpp.
References CSpiderTasks::ApplyLanguage(), and m_wndTasks.
Referenced by Plugin_SetLanguage().
| LRESULT CSpiderWnd::OnUpdateToolBar | ( | WPARAM | wp, | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 200 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::UpdateToolBar().
| LRESULT CSpiderWnd::OnUpdateMenu | ( | WPARAM | , | |
| LPARAM | lp | |||
| ) | [protected] |
Definition at line 194 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::UpdateMenu().
| LRESULT CSpiderWnd::OnAppQueryExit | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 189 of file SpiderWnd.cpp.
| LRESULT CSpiderWnd::OnAppExit | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
| void CSpiderWnd::LoadPages | ( | ) | [protected] |
Definition at line 312 of file SpiderWnd.cpp.
References CSpiderTasks::AddWebPage(), FALSE, fsWebPageDownloadsMgr::GetWPD(), fsWebPageDownloadsMgr::GetWPDCount(), fsWebPageDownloadsMgr::Load(), m_mgr, m_wndTasks, and TRUE.
Referenced by OnCreate().
| void CSpiderWnd::_DownloaderEvents | ( | fsWebPageDownloader * | dldr, | |
| fsWPDEvent | ev, | |||
| int | info, | |||
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 252 of file SpiderWnd.cpp.
References fsWebPageDownloader::GetDownloadingSiteName(), L_DONE, LS, m_wndTasks, m_wndTaskTree, CSpiderTaskTree::OnDldWillBeDeleted(), CSpiderTaskTree::OnFileAdded(), CSpiderTaskTree::OnWebPageWillBeDeleted(), PRG_NAME, CMainFrame::ShowTimeoutBalloon(), CSpiderTaskTree::UpdateDownload(), CSpiderTasks::UpdateWebPage(), WPDE_DLDEVENTRECEIVED, WPDE_DLDRESTORED, WPDE_DLDWILLBEDELETED, WPDE_DONE, WPDE_FILEADDED, and WPDE_WEBPAGEWILLBEDELETED.
Referenced by CSpiderWnd().
| void CSpiderWnd::OnShowTree | ( | ) | [protected] |
| void CSpiderWnd::ShowTree | ( | BOOL | bShow | ) | [protected] |
Definition at line 169 of file SpiderWnd.cpp.
References _App, m_bShowTree, CWndSplitter::m_wndSplitter, m_wndSplitter, m_wndTaskTree, OnSize(), and fsAppSettings::View_SpiderTree().
Referenced by OnCreate(), and OnShowTree().
| int CSpiderWnd::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 133 of file SpiderWnd.cpp.
References _App, CWndSplitter::Create(), CSpiderTaskTree::Create(), CSpiderTasks::Create(), FALSE, LoadPages(), m_bShowTree, m_wndSplitter, m_wndTasks, m_wndTaskTree, NULL, CWndSplitter::SetRatio(), CWndSplitter::SetWnd1(), CWndSplitter::SetWnd2(), ShowTree(), fsAppSettings::View_SpiderTree(), fsAppSettings::View_SplitterRatio(), and WST_HORIZONTAL.
| void CSpiderWnd::OnSize | ( | UINT | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 161 of file SpiderWnd.cpp.
References CWndSplitter::ApplyRatio(), m_bShowTree, m_wndSplitter, and m_wndTasks.
Referenced by ShowTree().
| void CSpiderWnd::OnTimer | ( | UINT | nIDEvent | ) | [protected] |
Definition at line 291 of file SpiderWnd.cpp.
References fsWebPageDownloadsMgr::GetWPD(), fsWebPageDownloadsMgr::GetWPDCount(), fsWebPageDownloader::IsDownloading(), m_mgr, m_wndTasks, and CSpiderTasks::UpdateWebPage().
| void CSpiderWnd::OnSpiderDelete | ( | ) | [protected] |
Definition at line 376 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderDelete().
| void CSpiderWnd::OnSpiderOpenfolder | ( | ) | [protected] |
Definition at line 381 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderOpenfolder().
| void CSpiderWnd::OnSpiderOpenpage | ( | ) | [protected] |
Definition at line 386 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderOpenpage().
| void CSpiderWnd::OnSpiderSchedule | ( | ) | [protected] |
Definition at line 391 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderSchedule().
| void CSpiderWnd::OnSpiderSettings | ( | ) | [protected] |
Definition at line 396 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderSettings().
| void CSpiderWnd::OnSpiderStartautomatically | ( | ) | [protected] |
Definition at line 401 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderStartautomatically().
| void CSpiderWnd::OnSpiderStartdl | ( | ) | [protected] |
Definition at line 406 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderStartdl().
| void CSpiderWnd::OnSpiderStopdl | ( | ) | [protected] |
Definition at line 411 of file SpiderWnd.cpp.
References m_wndTasks, and CSpiderTasks::OnSpiderStopdl().
| void CSpiderWnd::OnSetFocus | ( | CWnd * | pOldWnd | ) | [protected] |
friend class CSpiderTasks [friend] |
Definition at line 22 of file SpiderWnd.h.
Definition at line 55 of file SpiderWnd.h.
Referenced by AddWebPage(), CSpiderWnd(), GetMgr(), LoadPages(), OnTimer(), and SavePages().
BOOL CSpiderWnd::m_bShowTree [protected] |
Definition at line 81 of file SpiderWnd.h.
Referenced by OnCreate(), OnShowTree(), OnSize(), Plugin_GetMenuViewItems(), and ShowTree().
CWndSplitter CSpiderWnd::m_wndSplitter [protected] |
Definition at line 83 of file SpiderWnd.h.
Referenced by OnCreate(), OnSize(), SaveAll(), and ShowTree().
CSpiderTaskTree CSpiderWnd::m_wndTaskTree [protected] |
Definition at line 84 of file SpiderWnd.h.
Referenced by _DownloaderEvents(), OnCreate(), CSpiderTasks::OnDeleteAllItems(), CSpiderTasks::OnDeleteItem(), ShowTree(), CSpiderTasks::UpdateActiveWPD(), and UpdateTasksIcons().
CSpiderTasks CSpiderWnd::m_wndTasks [protected] |
Definition at line 85 of file SpiderWnd.h.
Referenced by _DownloaderEvents(), AddWebPage(), ApplyLanguage(), LoadPages(), OnCreate(), OnInsert(), OnPagesListShowCol(), OnSetFocus(), OnSize(), OnSpiderDelete(), OnSpiderDl(), OnSpiderOpenfolder(), OnSpiderOpenpage(), OnSpiderSchedule(), OnSpiderSettings(), OnSpiderStartautomatically(), OnSpiderStartdl(), OnSpiderStopdl(), OnTimer(), OnUpdateMenu(), OnUpdateToolBar(), Plugin_SetLanguage(), SaveAll(), UpdatePagesListColMenu(), and UpdateTasksIcons().
1.5.6