Drop code that has no effect
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingGitCredential.h
blob5cbd54451109d0a74839499154987aa6c23f3c32
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 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 "afxwin.h"
21 #include "SettingsPropPage.h"
22 #include "Tooltip.h"
23 #include "registry.h"
25 // CSettingGitCredential dialog
26 class CSettingGitCredential : public ISettingsPropPage
28 DECLARE_DYNAMIC(CSettingGitCredential)
30 public:
31 enum
33 CREDENTIAL_URL = 0x1,
34 CREDENTIAL_HELPER = 0x2,
35 CREDENTIAL_USERNAME = 0x4,
36 CREDENTIAL_USEHTTPPATH = 0x8,
38 CSettingGitCredential();
39 virtual ~CSettingGitCredential();
40 UINT GetIconID() { return IDI_GITCREDENTIAL; }
41 // Dialog Data
42 enum { IDD = IDD_SETTINGSCREDENTIAL };
44 protected:
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
47 DECLARE_MESSAGE_MAP()
49 afx_msg void OnCbnSelchangeComboSimplecredential();
50 afx_msg void OnBnClickedButtonAdd();
51 afx_msg void OnLbnSelchangeListUrl();
52 afx_msg void OnCbnSelchangeComboConfigType();
53 afx_msg void OnEnChangeEditUrl();
54 afx_msg void OnEnChangeEditHelper();
55 afx_msg void OnEnChangeEditUsername();
56 afx_msg void OnBnClickedCheckUsehttppath();
57 afx_msg void OnBnClickedButtonRemove();
59 BOOL OnInitDialog();
60 BOOL OnApply();
62 void EnableAdvancedOptions();
63 BOOL IsUrlExist(CString &text);
65 void AddConfigType(int &index, CString text, bool add = true);
66 void AddSimpleCredential(int &index, CString text, bool add = true);
67 void LoadList();
68 CString Load(CString key);
69 void Save(CString key, CString value);
71 int m_ChangedMask;
73 CComboBox m_ctrlSimpleCredential;
74 CListBox m_ctrlUrlList;
75 CComboBox m_ctrlConfigType;
76 CString m_strUrl;
77 CString m_strHelper;
78 CString m_strUsername;
79 BOOL m_bUseHttpPath;