Make sounds for indicating a warning or error work
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingGitConfig.h
blobb53e99eb95b022cc804cd5e5ac5f3cfac4cafab0
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2012 - 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
21 #include "SettingsPropPage.h"
22 #include "Tooltip.h"
23 #include "registry.h"
24 #include "afxwin.h"
25 #include "Git.h"
27 // CSettingGitConfig dialog
29 class CSettingGitConfig : public ISettingsPropPage
31 DECLARE_DYNAMIC(CSettingGitConfig)
33 public:
34 CSettingGitConfig();
35 virtual ~CSettingGitConfig();
36 UINT GetIconID() {return IDI_GITCONFIG;}
37 // Dialog Data
38 enum { IDD = IDD_SETTINGIT_CONFIG };
40 protected:
41 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
42 BOOL OnInitDialog();
43 BOOL OnApply();
45 bool Save(CString key, CString value, CONFIG_TYPE type);
47 int m_ChangeMask;
48 enum
50 GIT_NAME=0x1,
51 GIT_EMAIL=0x2,
52 GIT_CRLF=0x4,
53 GIT_SAFECRLF=0x8,
54 GIT_SIGNINGKEY=0x10,
55 GIT_WARNNOSIGNEDOFFBY=0x20,
57 DECLARE_MESSAGE_MAP()
59 afx_msg void OnBnClickedCheckGlobal();
60 afx_msg void OnEnChangeGitUsername();
61 afx_msg void OnEnChangeGitUseremail();
62 afx_msg void OnEnChangeGitUserSigningKey();
63 afx_msg void OnBnClickedCheckAutocrlf();
64 afx_msg void OnCbnSelchangeSafeCrLf();
65 afx_msg void OnBnClickedCheckWarnNoSignedOffBy();
66 afx_msg void OnBnClickedEditsystemgitconfig();
67 afx_msg void OnBnClickedViewsystemgitconfig();
68 afx_msg void OnBnClickedEditglobalgitconfig();
69 afx_msg void OnBnClickedEditglobalxdggitconfig();
70 afx_msg void OnBnClickedEditlocalgitconfig();
72 CString m_UserName;
73 CString m_UserEmail;
74 CString m_UserSigningKey;
75 BOOL m_bWarnNoSignedOffBy;
76 BOOL m_bGlobal;
77 BOOL m_bAutoCrlf;
78 CComboBox m_cSafeCrLf;