Added CString wrapper for get_windows_home_directory()
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingGitRemote.h
blob810f6960c86378929d86d9bea88819c60ebf2a39
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - 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"
24 #include "afxwin.h"
26 // CSettingGitRemote dialog
27 class CSettingGitRemote : public ISettingsPropPage
29 DECLARE_DYNAMIC(CSettingGitRemote)
31 public:
32 enum
34 REMOTE_NAME =0x1,
35 REMOTE_URL =0x2,
36 REMOTE_PUTTYKEY =0x4,
38 CSettingGitRemote(CString cmdPath);
39 virtual ~CSettingGitRemote();
40 UINT GetIconID() {return IDI_GITREMOTE;}
41 // Dialog Data
42 enum { IDD = IDD_SETTINREMOTE };
44 protected:
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
47 DECLARE_MESSAGE_MAP()
49 afx_msg void OnBnClickedButtonBrowse();
50 afx_msg void OnBnClickedButtonAdd();
51 afx_msg void OnLbnSelchangeListRemote();
52 afx_msg void OnEnChangeEditRemote();
53 afx_msg void OnEnChangeEditUrl();
54 afx_msg void OnEnChangeEditPuttyKey();
55 afx_msg void OnBnClickedButtonRemove();
57 BOOL OnInitDialog();
58 BOOL OnApply();
60 BOOL IsRemoteExist(CString &remote);
62 void Save(CString key, CString value);
64 int m_ChangedMask;
66 CString m_cmdPath;
68 CListBox m_ctrlRemoteList;
69 CString m_strRemote;
70 CString m_strUrl;
72 CString m_strPuttyKeyfile;