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.
21 #include "StandAloneDlg.h"
22 #include "HyperLink.h"
23 // CSendMailDlg dialog
25 #include "RegHistory.h"
29 #include "PatchListCtrl.h"
31 class CSendMailDlg
: public CResizableStandAloneDialog
33 DECLARE_DYNAMIC(CSendMailDlg
)
36 CSendMailDlg(CWnd
* pParent
= NULL
); // standard constructor
37 virtual ~CSendMailDlg();
40 enum { IDD
= IDD_SENDMAIL
};
43 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
44 virtual BOOL
OnInitDialog();
49 CHyperLink m_SmtpSetup
;
53 CRegHistory m_AddressReg
;
59 BOOL m_bCustomSubject
;
62 CTGitPathList m_PathList
;
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();