-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateDownloadsDlg.h
98 lines (71 loc) · 2.29 KB
/
CreateDownloadsDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
Free Download Manager Copyright (c) 2003-2014 FreeDownloadManager.ORG
*/
#if !defined(AFX_CREATEDOWNLOADSDLG_H__E22D64EE_8C08_40A3_8958_2A867A894D35__INCLUDED_)
#define AFX_CREATEDOWNLOADSDLG_H__E22D64EE_8C08_40A3_8958_2A867A894D35__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "fsTree.h"
#include "TreeCtrlEx.h"
#include "fsScheduleMgr.h"
#include "DownloadsGroupsComboBox.h"
class CCreateDownloadsDlg : public CDialog
{
public:
~CCreateDownloadsDlg();
CString m_strRootUrl;
fsScheduleEx m_schScheduleParam;
BOOL m_bSort;
fs::tree <fsFileInfo*>* m_pFileList;
CCreateDownloadsDlg(CWnd* pParent = NULL);
CTreeCtrlEx m_wndFiles;
//{{AFX_DATA(CCreateDownloadsDlg)
enum { IDD = IDD_CREATEDOWNLOADS };
CButton m_btnOutFolderSetDefault;
CDownloadsGroupsComboBox m_wndGroups;
CButton m_btnSetTime;
CButton m_btnChooseFolder;
CButton m_btnCreateGroup;
//}}AFX_DATA
//{{AFX_VIRTUAL(CCreateDownloadsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
void PrepareCHMgr(CPoint point);
int m_iAutostart;
void ReadAutostart();
void ApplyLanguage();
vmsDownloadsGroupSmartPtr m_pGroup;
BOOL m_bAutoStart;
void CreateDownloads (HTREEITEM hTree, LPCSTR pszRootDir, BOOL bCreate);
void UpdateEnabled();
void BuildDownloads (fs::tree <fsFileInfo*>* pTree, LPCSTR pszRootUrl);
DLDS_LIST m_vpDlds;
DLDS_LIST m_vpDldsToStart;
CImageList m_checks;
void AddToList (fs::tree <fsFileInfo*>* pTree, HTREEITEM hWhere);
//{{AFX_MSG(CCreateDownloadsDlg)
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();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif