OSDN Git Service

589034658770f38709f55a9877a2dd6237814df1
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Settings / SettingGitRemote.h
1 #pragma once\r
2 #include "afxwin.h"\r
3 #include "SettingsPropPage.h"\r
4 #include "Tooltip.h"\r
5 #include "registry.h"\r
6 #include "afxwin.h"\r
7 \r
8 // CSettingGitRemote dialog\r
9 class CSettingGitRemote : public ISettingsPropPage\r
10 {\r
11         DECLARE_DYNAMIC(CSettingGitRemote)\r
12 \r
13 public:\r
14         enum\r
15         {\r
16                 REMOTE_NAME             =0x1,\r
17                 REMOTE_URL              =0x2,\r
18                 REMOTE_PUTTYKEY =0x4,\r
19         };\r
20         CSettingGitRemote();\r
21         virtual ~CSettingGitRemote();\r
22         UINT GetIconID() {return IDI_GITREMOTE;}\r
23 // Dialog Data\r
24         enum { IDD = IDD_SETTINREMOTE };\r
25 \r
26 protected:\r
27         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
28 \r
29         DECLARE_MESSAGE_MAP()\r
30 \r
31         BOOL OnInitDialog();\r
32     BOOL OnApply();\r
33 \r
34 protected:\r
35 \r
36         void Save(CString key, CString value);\r
37 \r
38         int      m_ChangedMask;\r
39 \r
40 public:\r
41     CListBox m_ctrlRemoteList;\r
42     CString m_strRemote;\r
43     CString m_strUrl;\r
44     \r
45     CString m_strPuttyKeyfile;\r
46     afx_msg void OnBnClickedButtonBrowse();\r
47     afx_msg void OnBnClickedButtonAdd();\r
48     afx_msg void OnLbnSelchangeListRemote();\r
49     afx_msg void OnEnChangeEditRemote();\r
50     afx_msg void OnEnChangeEditUrl();\r
51     afx_msg void OnEnChangeEditPuttyKey();\r
52 };\r