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.
21 #include "SettingsPropPage.h"
25 // CSettingGitCredential dialog
26 class CSettingGitCredential
: public ISettingsPropPage
28 DECLARE_DYNAMIC(CSettingGitCredential
)
34 CREDENTIAL_HELPER
= 0x2,
35 CREDENTIAL_USERNAME
= 0x4,
36 CREDENTIAL_USEHTTPPATH
= 0x8,
38 CSettingGitCredential();
39 virtual ~CSettingGitCredential();
40 UINT
GetIconID() { return IDI_GITCREDENTIAL
; }
42 enum { IDD
= IDD_SETTINGSCREDENTIAL
};
45 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
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();
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);
68 CString
Load(CString key
);
69 void Save(CString key
, CString value
);
73 CComboBox m_ctrlSimpleCredential
;
74 CListBox m_ctrlUrlList
;
75 CComboBox m_ctrlConfigType
;
78 CString m_strUsername
;