00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_CREATEDOWNLOADSDLG_H__E22D64EE_8C08_40A3_8958_2A867A894D35__INCLUDED_) 00007 #define AFX_CREATEDOWNLOADSDLG_H__E22D64EE_8C08_40A3_8958_2A867A894D35__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "fsTree.h" 00014 #include "TreeCtrlEx.h" 00015 #include "fsScheduleMgr.h" 00016 #include "DownloadsGroupsComboBox.h" 00017 00018 class CCreateDownloadsDlg : public CDialog 00019 { 00020 00021 public: 00022 00023 ~CCreateDownloadsDlg(); 00024 CString m_strRootUrl; 00025 fsSchedule m_task; 00026 BOOL m_bSort; 00027 fs::tree <fsFileInfo*>* m_pFileList; 00028 CCreateDownloadsDlg(CWnd* pParent = NULL); 00029 00030 CTreeCtrlEx m_wndFiles; 00031 00032 //{{AFX_DATA(CCreateDownloadsDlg) 00033 enum { IDD = IDD_CREATEDOWNLOADS }; 00034 CButton m_btnOutFolderSetDefault; 00035 CDownloadsGroupsComboBox m_wndGroups; 00036 CButton m_btnSetTime; 00037 CButton m_btnChooseFolder; 00038 CButton m_btnCreateGroup; 00039 //}}AFX_DATA 00040 00041 00042 //{{AFX_VIRTUAL(CCreateDownloadsDlg) 00043 protected: 00044 virtual void DoDataExchange(CDataExchange* pDX); 00045 //}}AFX_VIRTUAL 00046 00047 protected: 00048 void PrepareCHMgr(CPoint point); 00049 int m_iAutostart; 00050 void ReadAutostart(); 00051 void ApplyLanguage(); 00052 vmsDownloadsGroupSmartPtr m_pGroup; 00053 BOOL m_bAutoStart; 00054 00055 void CreateDownloads (HTREEITEM hTree, LPCSTR pszRootDir, BOOL bCreate); 00056 void UpdateEnabled(); 00057 00058 void BuildDownloads (fs::tree <fsFileInfo*>* pTree, LPCSTR pszRootUrl); 00059 DLDS_LIST m_vpDlds; 00060 DLDS_LIST m_vpDldsToStart; 00061 CImageList m_checks; 00062 00063 void AddToList (fs::tree <fsFileInfo*>* pTree, HTREEITEM hWhere); 00064 00065 //{{AFX_MSG(CCreateDownloadsDlg) 00066 virtual BOOL OnInitDialog(); 00067 afx_msg void OnSelchangeGroups(); 00068 afx_msg void OnCreategroup(); 00069 afx_msg void OnChoosefolder(); 00070 afx_msg void OnSettime(); 00071 afx_msg void OnAdvanced(); 00072 afx_msg void OnStartnow(); 00073 afx_msg void OnStartmanual(); 00074 afx_msg void OnStartschedule(); 00075 virtual void OnOK(); 00076 afx_msg void OnSelchangedFiles(NMHDR* pNMHDR, LRESULT* pResult); 00077 afx_msg void OnSelectfolder(); 00078 afx_msg void OnUnselectfolder(); 00079 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 00080 afx_msg void OnWhatisthis(); 00081 afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo); 00082 afx_msg void OnOutfolderSetdefault(); 00083 //}}AFX_MSG 00084 DECLARE_MESSAGE_MAP() 00085 }; 00086 00087 //{{AFX_INSERT_LOCATION}//}} 00088 00089 #endif
1.5.6