-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectoryFingerprintDlg.h
93 lines (80 loc) · 2.21 KB
/
DirectoryFingerprintDlg.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
#pragma once
#include "afxwin.h"
#include "ApplicationProfile.h"
#include "ResizableDialog.h"
// CDirectoryFingerprintDlg dialog
class CDirectoryFingerprintDlg : public CResizableDialog
{
typedef CResizableDialog BaseClass;
public:
CDirectoryFingerprintDlg(
LPCTSTR sIgnoreFilesFilter,
BOOL bIncludeSubdirectories,
CWnd* pParent = NULL); // standard constructor
virtual ~CDirectoryFingerprintDlg();
// Dialog Data
enum { IDD = IDD_DIALOG_DIR_FINGERPRINT };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
LPCTSTR GetFilenameFilter() const noexcept
{
return m_sFilenameFilter;
}
LPCTSTR GetDirectory() const noexcept
{
return m_sDirectory;
}
LPCTSTR GetFingerprintName() const noexcept
{
return m_sSaveFilename;
}
LPCTSTR GetIgnoreFiles() const noexcept
{
return m_sIgnoreFiles;
}
LPCTSTR GetIgnoreFolders() const noexcept
{
return m_sIgnoreFolders;
}
bool DoIncludeSubdirectories() const noexcept
{
return m_bIncludeSubdirectories != 0;
}
bool DoIncludeDirectoryStructure() const noexcept
{
return m_bIncludeDirectoryStructure != 0;
}
protected:
BOOL m_bIncludeDirectoryStructure;
BOOL m_bIncludeSubdirectories;
CComboBox m_DirCombo;
CString m_sDirectory;
CApplicationProfile m_Profile;
CComboBox m_FilenameFilterCombo;
CString m_sFilenameFilter;
CComboBox m_cbIgnoreFiles;
CString m_sIgnoreFiles;
CStringHistory m_IgnoreFilterHistory;
CComboBox m_cbIgnoreFolders;
CString m_sIgnoreFolders;
CStringHistory m_IgnoreFolderHistory;
CComboBox m_SaveFilename;
CString m_sSaveFilename;
BOOL m_bOkToOverwriteFile;
CStringHistory m_FingerprintFilenameHistory;
virtual BOOL OnInitDialog();
virtual void OnMetricsChange();
afx_msg void OnBnClickedButtonBrowseDir();
afx_msg void OnBnClickedIncludeSubdirs();
afx_msg void OnBnClickedButtonBrowseSaveFilename();
afx_msg void OnCbnEditchangeComboFirstDir();
afx_msg void OnCbnSelchangeComboFirstDir();
afx_msg void OnCbnEditchangeComboSaveFilename();
afx_msg void OnCbnSelchangeComboSaveFilename();
void OnUpdateOk(CCmdUI * pCmdUI);
void OnUpdateIgnoreDirs(CCmdUI * pCmdUI);
void OnUpdateIncludeDirectoryStructure(CCmdUI * pCmdUI);
virtual void OnOK();
};