OSDN Git Service

Add Git config and remote at setting dialog
authorFrank Li <lznuaa@gmail.com>
Mon, 30 Mar 2009 05:43:25 +0000 (13:43 +0800)
committerFrank Li <lznuaa@gmail.com>
Mon, 30 Mar 2009 05:43:25 +0000 (13:43 +0800)
src/Resources/TortoiseProcENG.rc
src/TortoiseProc/SettingGitConfig.cpp [new file with mode: 0644]
src/TortoiseProc/SettingGitConfig.h [new file with mode: 0644]
src/TortoiseProc/SettingGitRemote.cpp [new file with mode: 0644]
src/TortoiseProc/SettingGitRemote.h [new file with mode: 0644]
src/TortoiseProc/TortoiseProc.vcproj
src/TortoiseProc/resource.h
src/crashrpt/CrashRpt.vcproj

index f031a30..d59c71a 100644 (file)
Binary files a/src/Resources/TortoiseProcENG.rc and b/src/Resources/TortoiseProcENG.rc differ
diff --git a/src/TortoiseProc/SettingGitConfig.cpp b/src/TortoiseProc/SettingGitConfig.cpp
new file mode 100644 (file)
index 0000000..63a74bf
--- /dev/null
@@ -0,0 +1,39 @@
+// SettingGitConfig.cpp : implementation file\r
+//\r
+\r
+#include "stdafx.h"\r
+#include "TortoiseProc.h"\r
+#include "SettingGitConfig.h"\r
+\r
+\r
+// CSettingGitConfig dialog\r
+\r
+IMPLEMENT_DYNAMIC(CSettingGitConfig, CPropertyPage)\r
+\r
+CSettingGitConfig::CSettingGitConfig()\r
+       : CPropertyPage(CSettingGitConfig::IDD)\r
+    , m_UserName(_T(""))\r
+    , m_UserEmail(_T(""))\r
+    , m_bGlobal(FALSE)\r
+{\r
+\r
+}\r
+\r
+CSettingGitConfig::~CSettingGitConfig()\r
+{\r
+}\r
+\r
+void CSettingGitConfig::DoDataExchange(CDataExchange* pDX)\r
+{\r
+    CPropertyPage::DoDataExchange(pDX);\r
+    DDX_Text(pDX, IDC_GIT_USERNAME, m_UserName);\r
+    DDX_Text(pDX, IDC_GIT_USEREMAIL, m_UserEmail);\r
+    DDX_Check(pDX, IDC_CHECK_GLOBAL, m_bGlobal);\r
+}\r
+\r
+\r
+BEGIN_MESSAGE_MAP(CSettingGitConfig, CPropertyPage)\r
+END_MESSAGE_MAP()\r
+\r
+\r
+// CSettingGitConfig message handlers\r
diff --git a/src/TortoiseProc/SettingGitConfig.h b/src/TortoiseProc/SettingGitConfig.h
new file mode 100644 (file)
index 0000000..3c169a1
--- /dev/null
@@ -0,0 +1,25 @@
+#pragma once\r
+\r
+\r
+// CSettingGitConfig dialog\r
+\r
+class CSettingGitConfig : public CPropertyPage\r
+{\r
+       DECLARE_DYNAMIC(CSettingGitConfig)\r
+\r
+public:\r
+       CSettingGitConfig();\r
+       virtual ~CSettingGitConfig();\r
+\r
+// Dialog Data\r
+       enum { IDD = IDD_SETTINGIT_CONFIG };\r
+\r
+protected:\r
+       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
+\r
+       DECLARE_MESSAGE_MAP()\r
+public:\r
+    CString m_UserName;\r
+    CString m_UserEmail;\r
+    BOOL m_bGlobal;\r
+};\r
diff --git a/src/TortoiseProc/SettingGitRemote.cpp b/src/TortoiseProc/SettingGitRemote.cpp
new file mode 100644 (file)
index 0000000..b514557
--- /dev/null
@@ -0,0 +1,59 @@
+// SettingGitRemote.cpp : implementation file\r
+//\r
+\r
+#include "stdafx.h"\r
+#include "TortoiseProc.h"\r
+#include "SettingGitRemote.h"\r
+\r
+\r
+// CSettingGitRemote dialog\r
+\r
+IMPLEMENT_DYNAMIC(CSettingGitRemote, CPropertyPage)\r
+\r
+CSettingGitRemote::CSettingGitRemote()\r
+       : CPropertyPage(CSettingGitRemote::IDD)\r
+    , m_strRemote(_T(""))\r
+    , m_strUrl(_T(""))\r
+    , m_strPuttyKeyfile(_T(""))\r
+{\r
+\r
+}\r
+\r
+CSettingGitRemote::~CSettingGitRemote()\r
+{\r
+}\r
+\r
+void CSettingGitRemote::DoDataExchange(CDataExchange* pDX)\r
+{\r
+    CPropertyPage::DoDataExchange(pDX);\r
+    DDX_Control(pDX, IDC_LIST_REMOTE, m_ctrlRemoteList);\r
+    DDX_Text(pDX, IDC_EDIT_REMOTE, m_strRemote);\r
+    DDX_Text(pDX, IDC_EDIT_URL, m_strUrl);\r
+    DDX_Control(pDX, IDC_CHECK_ISAUTOLOADPUTTYKEY, m_bAutoLoad);\r
+    DDX_Text(pDX, IDC_EDIT_PUTTY_KEY, m_strPuttyKeyfile);\r
+}\r
+\r
+\r
+BEGIN_MESSAGE_MAP(CSettingGitRemote, CPropertyPage)\r
+    ON_BN_CLICKED(IDC_BUTTON_BROWSE, &CSettingGitRemote::OnBnClickedButtonBrowse)\r
+    ON_BN_CLICKED(IDC_BUTTON_ADD, &CSettingGitRemote::OnBnClickedButtonAdd)\r
+    ON_LBN_SELCHANGE(IDC_LIST_REMOTE, &CSettingGitRemote::OnLbnSelchangeListRemote)\r
+END_MESSAGE_MAP()\r
+\r
+\r
+// CSettingGitRemote message handlers\r
+\r
+void CSettingGitRemote::OnBnClickedButtonBrowse()\r
+{\r
+    // TODO: Add your control notification handler code here\r
+}\r
+\r
+void CSettingGitRemote::OnBnClickedButtonAdd()\r
+{\r
+    // TODO: Add your control notification handler code here\r
+}\r
+\r
+void CSettingGitRemote::OnLbnSelchangeListRemote()\r
+{\r
+    // TODO: Add your control notification handler code here\r
+}\r
diff --git a/src/TortoiseProc/SettingGitRemote.h b/src/TortoiseProc/SettingGitRemote.h
new file mode 100644 (file)
index 0000000..d06a439
--- /dev/null
@@ -0,0 +1,31 @@
+#pragma once\r
+#include "afxwin.h"\r
+\r
+\r
+// CSettingGitRemote dialog\r
+\r
+class CSettingGitRemote : public CPropertyPage\r
+{\r
+       DECLARE_DYNAMIC(CSettingGitRemote)\r
+\r
+public:\r
+       CSettingGitRemote();\r
+       virtual ~CSettingGitRemote();\r
+\r
+// Dialog Data\r
+       enum { IDD = IDD_SETTINREMOTE };\r
+\r
+protected:\r
+       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
+\r
+       DECLARE_MESSAGE_MAP()\r
+public:\r
+    CListBox m_ctrlRemoteList;\r
+    CString m_strRemote;\r
+    CString m_strUrl;\r
+    CButton m_bAutoLoad;\r
+    CString m_strPuttyKeyfile;\r
+    afx_msg void OnBnClickedButtonBrowse();\r
+    afx_msg void OnBnClickedButtonAdd();\r
+    afx_msg void OnLbnSelchangeListRemote();\r
+};\r
index afe72dc..6b50564 100644 (file)
                                        RelativePath=".\Settings\ToolAssocDlg.h"\r
                                        >\r
                                </File>\r
+                               <File\r
+                                       RelativePath=".\SettingGitConfig.cpp"\r
+                               >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\SettingGitConfig.h"\r
+                               >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\SettingGitRemote.cpp"\r
+                               >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\SettingGitRemote.h"\r
+                               >\r
+                               </File>\r
                        </Filter>\r
                        <Filter\r
                                Name="Switch"\r
index c596d6a..0a7e4f9 100644 (file)
Binary files a/src/TortoiseProc/resource.h and b/src/TortoiseProc/resource.h differ
index 59e186c..6f65439 100644 (file)
                        />\r
                </Configuration>\r
                <Configuration\r
+                       Name="Debug|Win32"\r
+                       ConfigurationType="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
                        Name="Debug|x64"\r
                        OutputDirectory="..\..\bin\Debug64\bin"\r
                        IntermediateDirectory="..\..\obj\CrashRpt\Debug64"\r