#include <CreateDownloadsDlg.h>
Public Types | |
| enum | { IDD = IDD_CREATEDOWNLOADS } |
Public Member Functions | |
| ~CCreateDownloadsDlg () | |
| CCreateDownloadsDlg (CWnd *pParent=NULL) | |
Public Attributes | |
| CString | m_strRootUrl |
| fsSchedule | m_task |
| BOOL | m_bSort |
| fs::tree< fsFileInfo * > * | m_pFileList |
| CTreeCtrlEx | m_wndFiles |
| CButton | m_btnOutFolderSetDefault |
| CDownloadsGroupsComboBox | m_wndGroups |
| CButton | m_btnSetTime |
| CButton | m_btnChooseFolder |
| CButton | m_btnCreateGroup |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| void | PrepareCHMgr (CPoint point) |
| void | ReadAutostart () |
| void | ApplyLanguage () |
| void | CreateDownloads (HTREEITEM hTree, LPCSTR pszRootDir, BOOL bCreate) |
| void | UpdateEnabled () |
| void | BuildDownloads (fs::tree< fsFileInfo * > *pTree, LPCSTR pszRootUrl) |
| void | AddToList (fs::tree< fsFileInfo * > *pTree, HTREEITEM hWhere) |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnSelchangeGroups () |
| afx_msg void | OnCreategroup () |
| afx_msg void | OnChoosefolder () |
| afx_msg void | OnSettime () |
| afx_msg void | OnAdvanced () |
| afx_msg void | OnStartnow () |
| afx_msg void | OnStartmanual () |
| afx_msg void | OnStartschedule () |
| virtual void | OnOK () |
| afx_msg void | OnSelchangedFiles (NMHDR *pNMHDR, LRESULT *pResult) |
| afx_msg void | OnSelectfolder () |
| afx_msg void | OnUnselectfolder () |
| afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
| afx_msg void | OnWhatisthis () |
| afx_msg BOOL | OnHelpInfo (HELPINFO *pHelpInfo) |
| afx_msg void | OnOutfolderSetdefault () |
Protected Attributes | |
| int | m_iAutostart |
| vmsDownloadsGroupSmartPtr | m_pGroup |
| BOOL | m_bAutoStart |
| DLDS_LIST | m_vpDlds |
| DLDS_LIST | m_vpDldsToStart |
| CImageList | m_checks |
Definition at line 18 of file CreateDownloadsDlg.h.
| anonymous enum |
| CCreateDownloadsDlg::~CCreateDownloadsDlg | ( | ) |
Definition at line 235 of file CreateDownloadsDlg.cpp.
| CCreateDownloadsDlg::CCreateDownloadsDlg | ( | CWnd * | pParent = NULL |
) |
| void CCreateDownloadsDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 35 of file CreateDownloadsDlg.cpp.
References IDC_CHOOSEFOLDER, IDC_CREATEGROUP, IDC_FILES, IDC_GROUPS, IDC_OUTFOLDER_SETDEFAULT, IDC_SETTIME, m_btnChooseFolder, m_btnCreateGroup, m_btnOutFolderSetDefault, m_btnSetTime, m_wndFiles, and m_wndGroups.
| void CCreateDownloadsDlg::PrepareCHMgr | ( | CPoint | point | ) | [protected] |
Definition at line 463 of file CreateDownloadsDlg.cpp.
References _CHMgr, IDC__GROUP, IDC__LIST, IDC__SAVETO, IDC_ADVANCED, IDC_CHOOSEFOLDER, IDC_CREATEGROUP, IDC_FILES, IDC_GROUPS, IDC_SELECTFOLDER, IDC_SETTIME, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_UNSELECTFOLDER, L_ACCEPTCHANGES, L_ADVANCEDHERE, L_BROWSEFOR, L_CREATEGRP, L_DLDFOLDERHERE, L_DONTACCEPTCHANGES, L_GROUPHERE, L_LISTOFDLDSHERE, L_MANUALLYSTARTHERE, L_SCHEDULESTARTHERE, L_SELFOLDERHERE, L_SETTIMEHERE, L_STARTNOWHERE, L_UNSELFOLDERHERE, LS, and fsContextHelpMgr::PrepareContextMenu().
Referenced by OnContextMenu(), and OnHelpInfo().
| void CCreateDownloadsDlg::ReadAutostart | ( | ) | [protected] |
Definition at line 426 of file CreateDownloadsDlg.cpp.
References _App, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, fsAppSettings::Last_Autostart(), and m_iAutostart.
Referenced by OnInitDialog().
| void CCreateDownloadsDlg::ApplyLanguage | ( | ) | [protected] |
Definition at line 407 of file CreateDownloadsDlg.cpp.
References _LngMgr, fsMFCLangMgr::ApplyLanguage(), IDC__GROUP, IDC__LIST, IDC__SAVETO, IDC__START, IDC_ADVANCED, IDC_SELECTFOLDER, IDC_STARTMANUAL, IDC_STARTNOW, IDC_STARTSCHEDULE, IDC_UNSELECTFOLDER, L_ADVANCED, L_AUTOMATICALLY, L_CANCEL, L_CREATEDLDS, L_GROUP, L_LISTOFDLDS, L_MANUALLY, L_SAVETO, L_SCHEDULE, L_SELECTCONTENT, L_START, and L_UNSELECTCONTENT.
Referenced by OnInitDialog().
| void CCreateDownloadsDlg::CreateDownloads | ( | HTREEITEM | hTree, | |
| LPCSTR | pszRootDir, | |||
| BOOL | bCreate | |||
| ) | [protected] |
Definition at line 318 of file CreateDownloadsDlg.cpp.
References b, fsFileInfo::bFolder, BOOL, FALSE, fsnew, CTreeCtrlEx::IsChecked(), m_bAutoStart, m_pGroup, m_vpDlds, m_vpDldsToStart, m_wndFiles, NULL, fsDownload_Properties::pszFileName, and fsFileInfo::strName.
Referenced by OnOK().
| void CCreateDownloadsDlg::UpdateEnabled | ( | ) | [protected] |
Definition at line 240 of file CreateDownloadsDlg.cpp.
References b, BOOL, IDC_SELECTFOLDER, IDC_UNSELECTFOLDER, and m_wndFiles.
Referenced by OnInitDialog(), OnSelchangedFiles(), OnStartmanual(), OnStartnow(), and OnStartschedule().
| void CCreateDownloadsDlg::BuildDownloads | ( | fs::tree< fsFileInfo * > * | pTree, | |
| LPCSTR | pszRootUrl | |||
| ) | [protected] |
Definition at line 198 of file CreateDownloadsDlg.cpp.
References fsFileInfo::bFolder, Download_CreateInstance(), FALSE, fsUrlToFullUrl(), m_vpDlds, and fsFileInfo::strName.
Referenced by OnInitDialog().
| void CCreateDownloadsDlg::AddToList | ( | fs::tree< fsFileInfo * > * | pTree, | |
| HTREEITEM | hWhere | |||
| ) | [protected] |
Definition at line 127 of file CreateDownloadsDlg.cpp.
References m_wndFiles, CTreeCtrlEx::SetCheck(), and fsFileInfo::strName.
Referenced by OnInitDialog().
| BOOL CCreateDownloadsDlg::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 69 of file CreateDownloadsDlg.cpp.
References _App, _LastFolders, CHFE_FileList::_SortFunc(), AddToList(), ApplyLanguage(), BuildDownloads(), fsSchedule::dwFlags, _FILETIME::dwHighDateTime, _FILETIME::dwLowDateTime, fsWhenToStart::enType, CDownloadsGroupsComboBox::Fill(), fsCmdHistoryMgr::GetRecord(), fsCmdHistoryMgr::GetRecordCount(), fsSchedule::hts, HTS_ONCE, IDB_CHECKS, IDC_OUTFOLDER, IDI_CHOOSEFOLDER, IDI_CREATEGROUP, IDI_SETFOLDERDEFAULT, IDI_SETTIME, fsWhenToStart::last, m_bSort, m_btnChooseFolder, m_btnCreateGroup, m_btnOutFolderSetDefault, m_btnSetTime, m_checks, m_pFileList, m_strRootUrl, m_task, m_wndFiles, m_wndGroups, fsAppSettings::NewDL_GroupId(), fsWhenToStart::next, OnSelchangeGroups(), ReadAutostart(), SBMP, SCHEDULE_ENABLED, CDownloadsGroupsComboBox::SelectGroupById(), SICO, TRUE, UpdateEnabled(), and fsSchedule::uWaitForConfirmation.
| void CCreateDownloadsDlg::OnSelchangeGroups | ( | ) | [protected] |
Definition at line 145 of file CreateDownloadsDlg.cpp.
References CDownloadsGroupsComboBox::GetSelectedGroup(), IDC_OUTFOLDER, and m_wndGroups.
Referenced by OnCreategroup(), and OnInitDialog().
| void CCreateDownloadsDlg::OnCreategroup | ( | ) | [protected] |
Definition at line 150 of file CreateDownloadsDlg.cpp.
References CDownloadsGroupsComboBox::CreateNewGroup(), CDownloadsGroupsComboBox::GetSelectedGroup(), m_wndGroups, and OnSelchangeGroups().
| void CCreateDownloadsDlg::OnChoosefolder | ( | ) | [protected] |
Definition at line 156 of file CreateDownloadsDlg.cpp.
References CFolderBrowser::Create(), CFolderBrowser::GetPath(), IDC_OUTFOLDER, L_CHOOSEOUTFOLDER, LS, and NULL.
| void CCreateDownloadsDlg::OnSettime | ( | ) | [protected] |
Definition at line 172 of file CreateDownloadsDlg.cpp.
References _DlgMgr, FALSE, IDC_STARTNOW, IDC_STARTSCHEDULE, CScheduleSheet::Init(), L_SCHEDULEDLDS, LS, m_task, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
| void CCreateDownloadsDlg::OnAdvanced | ( | ) | [protected] |
Definition at line 189 of file CreateDownloadsDlg.cpp.
References _DlgMgr, DPS_SHP_NOGENERALNOMIRR, CDownloadPropertiesSheet::Init(), L_ADVANCED, LS, m_vpDlds, fsDialogsMgr::OnDoModal(), and fsDialogsMgr::OnEndDialog().
| void CCreateDownloadsDlg::OnStartnow | ( | ) | [protected] |
Definition at line 248 of file CreateDownloadsDlg.cpp.
References m_iAutostart, and UpdateEnabled().
| void CCreateDownloadsDlg::OnStartmanual | ( | ) | [protected] |
Definition at line 254 of file CreateDownloadsDlg.cpp.
References m_iAutostart, and UpdateEnabled().
| void CCreateDownloadsDlg::OnStartschedule | ( | ) | [protected] |
Definition at line 260 of file CreateDownloadsDlg.cpp.
References m_iAutostart, and UpdateEnabled().
| void CCreateDownloadsDlg::OnOK | ( | ) | [protected, virtual] |
Definition at line 266 of file CreateDownloadsDlg.cpp.
References _App, CCreateDownloadDlg::_CheckFolderName(), _LastFolders, fsCmdHistoryMgr::AddRecord(), BOOL, CDownloadsWnd::CreateDownloads(), CreateDownloads(), DPF_USEZIPPREVIEW, FALSE, fsPathToGoodPath(), CDownloadsGroupsComboBox::GetSelectedGroup(), IDC_OUTFOLDER, IDC_STARTNOW, IDC_STARTSCHEDULE, L_ENTERFLRNAME, L_INPERR, fsAppSettings::Last_Autostart(), LPSTR, LS, m_bAutoStart, m_iAutostart, m_pGroup, m_task, m_vpDldsToStart, m_wndGroups, fsAppSettings::NewDL_UseZIPPreview(), NULL, CDownloadsGroupsComboBox::RememberSelectedGroup(), TRUE, and fsAppSettings::UseZipPreview().
| void CCreateDownloadsDlg::OnSelchangedFiles | ( | NMHDR * | pNMHDR, | |
| LRESULT * | pResult | |||
| ) | [protected] |
| void CCreateDownloadsDlg::OnSelectfolder | ( | ) | [protected] |
Definition at line 374 of file CreateDownloadsDlg.cpp.
References m_wndFiles, CTreeCtrlEx::SetCheck(), and TRUE.
| void CCreateDownloadsDlg::OnUnselectfolder | ( | ) | [protected] |
Definition at line 385 of file CreateDownloadsDlg.cpp.
References FALSE, m_wndFiles, and CTreeCtrlEx::SetCheck().
| void CCreateDownloadsDlg::OnContextMenu | ( | CWnd * | pWnd, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 396 of file CreateDownloadsDlg.cpp.
References _CHMgr, PrepareCHMgr(), and fsContextHelpMgr::ShowMenu().
| void CCreateDownloadsDlg::OnWhatisthis | ( | ) | [protected] |
Definition at line 402 of file CreateDownloadsDlg.cpp.
References _CHMgr, and fsContextHelpMgr::OnWT().
| BOOL CCreateDownloadsDlg::OnHelpInfo | ( | HELPINFO * | pHelpInfo | ) | [protected] |
Definition at line 446 of file CreateDownloadsDlg.cpp.
References _CHMgr, FALSE, NULL, fsContextHelpMgr::OnWT(), PrepareCHMgr(), and TRUE.
| void CCreateDownloadsDlg::OnOutfolderSetdefault | ( | ) | [protected] |
Definition at line 490 of file CreateDownloadsDlg.cpp.
References CCreateDownloadDlg::_SetDownloadOutputFolderAsDefault(), CDownloadsGroupsComboBox::GetSelectedGroup(), IDC_OUTFOLDER, and m_wndGroups.
Definition at line 24 of file CreateDownloadsDlg.h.
Referenced by CHFE_FileList::DownloadSelected(), and OnInitDialog().
Definition at line 25 of file CreateDownloadsDlg.h.
Referenced by OnInitDialog(), OnOK(), and OnSettime().
Definition at line 26 of file CreateDownloadsDlg.h.
Referenced by CCreateDownloadsDlg(), and OnInitDialog().
| fs::tree<fsFileInfo*>* CCreateDownloadsDlg::m_pFileList |
Definition at line 27 of file CreateDownloadsDlg.h.
Referenced by CHFE_FileList::DownloadSelected(), and OnInitDialog().
Definition at line 30 of file CreateDownloadsDlg.h.
Referenced by AddToList(), CreateDownloads(), DoDataExchange(), OnInitDialog(), OnSelectfolder(), OnUnselectfolder(), and UpdateEnabled().
Definition at line 34 of file CreateDownloadsDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 35 of file CreateDownloadsDlg.h.
Referenced by DoDataExchange(), OnCreategroup(), OnInitDialog(), OnOK(), OnOutfolderSetdefault(), and OnSelchangeGroups().
Definition at line 36 of file CreateDownloadsDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 37 of file CreateDownloadsDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
Definition at line 38 of file CreateDownloadsDlg.h.
Referenced by DoDataExchange(), and OnInitDialog().
int CCreateDownloadsDlg::m_iAutostart [protected] |
Definition at line 49 of file CreateDownloadsDlg.h.
Referenced by OnOK(), OnStartmanual(), OnStartnow(), OnStartschedule(), and ReadAutostart().
Definition at line 52 of file CreateDownloadsDlg.h.
Referenced by CCreateDownloadsDlg(), CreateDownloads(), and OnOK().
BOOL CCreateDownloadsDlg::m_bAutoStart [protected] |
DLDS_LIST CCreateDownloadsDlg::m_vpDlds [protected] |
Definition at line 59 of file CreateDownloadsDlg.h.
Referenced by BuildDownloads(), CreateDownloads(), and OnAdvanced().
DLDS_LIST CCreateDownloadsDlg::m_vpDldsToStart [protected] |
CImageList CCreateDownloadsDlg::m_checks [protected] |
1.5.6