Make filter structure the same across the projects
[TortoiseGit.git] / src / TortoiseProc / SendMailDlg.h
blob5944ea20ace00ce11fd6ed45f266e653d8e3d9ab
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2013 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #pragma once
20 #include "afxcmn.h"
21 #include "StandAloneDlg.h"
22 #include "HyperLink.h"
23 // CSendMailDlg dialog
24 #include "ACEdit.h"
25 #include "RegHistory.h"
26 #include "TGitPath.h"
27 #include "patch.h"
28 #include "registry.h"
29 #include "PatchListCtrl.h"
31 class CSendMailDlg : public CResizableStandAloneDialog
33 DECLARE_DYNAMIC(CSendMailDlg)
35 public:
36 CSendMailDlg(CWnd* pParent = NULL); // standard constructor
37 virtual ~CSendMailDlg();
39 // Dialog Data
40 enum { IDD = IDD_SENDMAIL };
42 protected:
43 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
44 virtual BOOL OnInitDialog();
45 DECLARE_MESSAGE_MAP()
47 void UpdateSubject();
49 CHyperLink m_SmtpSetup;
51 CACEdit m_ctrlCC;
52 CACEdit m_ctrlTO;
53 CRegHistory m_AddressReg;
55 public:
56 CString m_To;
57 CString m_CC;
58 CString m_Subject;
59 BOOL m_bCustomSubject;
60 BOOL m_bAttachment;
61 BOOL m_bCombine;
62 CTGitPathList m_PathList;
64 private:
65 CPatchListCtrl m_ctrlList;
67 CRegDWORD m_regAttach;
68 CRegDWORD m_regCombine;
70 std::map<int,CPatch> m_MapPatch;
72 afx_msg void OnBnClickedSendmailCombine();
73 afx_msg void OnBnClickedOk();
74 afx_msg void OnLvnItemchangedSendmailPatchs(NMHDR *pNMHDR, LRESULT *pResult);
75 afx_msg void OnNMDblclkSendmailPatchs(NMHDR *pNMHDR, LRESULT *pResult);
76 afx_msg void OnEnChangeSendmailSubject();
77 afx_msg void OnStnClickedSendmailSetup();