Fixed issue #1701: Changing commit order in rebase dialog doesn't auto scroll
[TortoiseGit.git] / src / TortoiseProc / SendMailDlg.h
blob6b13a4ff36e5545f4eabc995cfc69fe27a12d2af
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 virtual BOOL PreTranslateMessage(MSG* pMsg);
46 DECLARE_MESSAGE_MAP()
48 void UpdateSubject();
50 CHyperLink m_SmtpSetup;
52 CACEdit m_ctrlCC;
53 CACEdit m_ctrlTO;
54 CRegHistory m_AddressReg;
55 CToolTipCtrl m_ToolTip;
57 public:
58 CString m_To;
59 CString m_CC;
60 CString m_Subject;
61 BOOL m_bCustomSubject;
62 BOOL m_bAttachment;
63 BOOL m_bCombine;
64 BOOL m_bUseMAPI;
65 CTGitPathList m_PathList;
67 private:
68 CPatchListCtrl m_ctrlList;
70 CRegDWORD m_regAttach;
71 CRegDWORD m_regCombine;
72 CRegDWORD m_regUseMAPI;
74 std::map<int,CPatch> m_MapPatch;
76 afx_msg void OnBnClickedSendmailCombine();
77 afx_msg void OnBnClickedOk();
78 afx_msg void OnLvnItemchangedSendmailPatchs(NMHDR *pNMHDR, LRESULT *pResult);
79 afx_msg void OnNMDblclkSendmailPatchs(NMHDR *pNMHDR, LRESULT *pResult);
80 afx_msg void OnEnChangeSendmailSubject();
81 afx_msg void OnBnClickedSendmailMapi();