OSDN Git Service

Add SMTP Setting Page
authorFrank Li <lznuaa@gmail.com>
Tue, 14 Apr 2009 08:29:16 +0000 (16:29 +0800)
committerFrank Li <lznuaa@gmail.com>
Tue, 14 Apr 2009 08:29:16 +0000 (16:29 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Resources/TortoiseProcENG.rc
src/TortoiseProc/Settings/SettingSMTP.cpp [new file with mode: 0644]
src/TortoiseProc/Settings/SettingSMTP.h [new file with mode: 0644]
src/TortoiseProc/TortoiseProc.vcproj
src/TortoiseProc/resource.h

index 88ebf07..fac9095 100644 (file)
Binary files a/src/Resources/TortoiseProcENG.rc and b/src/Resources/TortoiseProcENG.rc differ
diff --git a/src/TortoiseProc/Settings/SettingSMTP.cpp b/src/TortoiseProc/Settings/SettingSMTP.cpp
new file mode 100644 (file)
index 0000000..7e6c1dc
--- /dev/null
@@ -0,0 +1,45 @@
+// SettingSMTP.cpp : implementation file\r
+//\r
+\r
+#include "stdafx.h"\r
+#include "TortoiseProc.h"\r
+#include "SettingSMTP.h"\r
+\r
+\r
+// CSettingSMTP dialog\r
+\r
+IMPLEMENT_DYNAMIC(CSettingSMTP, CPropertyPage)\r
+\r
+CSettingSMTP::CSettingSMTP()\r
+       : CPropertyPage(CSettingSMTP::IDD)\r
+       , m_Server(_T(""))\r
+       , m_Port(0)\r
+       , m_From(_T(""))\r
+       , m_bAuth(FALSE)\r
+       , m_User(_T(""))\r
+       , m_Password(_T(""))\r
+{\r
+\r
+}\r
+\r
+CSettingSMTP::~CSettingSMTP()\r
+{\r
+}\r
+\r
+void CSettingSMTP::DoDataExchange(CDataExchange* pDX)\r
+{\r
+       CPropertyPage::DoDataExchange(pDX);\r
+       DDX_Text(pDX, IDC_STMP_SERVER, m_Server);\r
+       DDX_Text(pDX, IDC_SMTP_PORT, m_Port);\r
+       DDX_Text(pDX, IDC_SEND_ADDRESS, m_From);\r
+       DDX_Check(pDX, IDC_SMTP_AUTH, m_bAuth);\r
+       DDX_Text(pDX, IDC_SMTP_USER, m_User);\r
+       DDX_Text(pDX, IDC_SMTP_PASSWORD, m_Password);\r
+}\r
+\r
+\r
+BEGIN_MESSAGE_MAP(CSettingSMTP, CPropertyPage)\r
+END_MESSAGE_MAP()\r
+\r
+\r
+// CSettingSMTP message handlers\r
diff --git a/src/TortoiseProc/Settings/SettingSMTP.h b/src/TortoiseProc/Settings/SettingSMTP.h
new file mode 100644 (file)
index 0000000..e6ee78a
--- /dev/null
@@ -0,0 +1,28 @@
+#pragma once\r
+\r
+\r
+// CSettingSMTP dialog\r
+\r
+class CSettingSMTP : public CPropertyPage\r
+{\r
+       DECLARE_DYNAMIC(CSettingSMTP)\r
+\r
+public:\r
+       CSettingSMTP();\r
+       virtual ~CSettingSMTP();\r
+\r
+// Dialog Data\r
+       enum { IDD = IDD_SETTINGSMTP };\r
+\r
+protected:\r
+       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
+\r
+       DECLARE_MESSAGE_MAP()\r
+public:\r
+       CString m_Server;\r
+       int m_Port;\r
+       CString m_From;\r
+       BOOL m_bAuth;\r
+       CString m_User;\r
+       CString m_Password;\r
+};\r
index eeba0ce..60c3f9f 100644 (file)
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\copy.ico"\r
+                               RelativePath="..\Resources\copy.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\copy.ico"\r
+                               RelativePath=".\copy.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\explorer.ico"\r
+                               RelativePath=".\explorer.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\explorer.ico"\r
+                               RelativePath="..\Resources\explorer.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\newfolder.ico"\r
+                               RelativePath="..\Resources\newfolder.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\newfolder.ico"\r
+                               RelativePath=".\newfolder.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\refresh.ico"\r
+                               RelativePath="..\Resources\refresh.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\refresh.ico"\r
+                               RelativePath=".\refresh.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\save.ico"\r
+                               RelativePath=".\save.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\save.ico"\r
+                               RelativePath="..\Resources\save.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\up.ico"\r
+                               RelativePath="..\Resources\up.ico"\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath="..\Resources\up.ico"\r
+                               RelativePath=".\up.ico"\r
                                >\r
                        </File>\r
                        <File\r
                                        >\r
                                </File>\r
                                <File\r
+                                       RelativePath=".\Settings\SettingSMTP.cpp"\r
+                                       >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\Settings\SettingSMTP.h"\r
+                                       >\r
+                               </File>\r
+                               <File\r
                                        RelativePath=".\Settings\SettingsProgsDiff.cpp"\r
                                        >\r
                                </File>\r
index c9996a2..2b3c928 100644 (file)
Binary files a/src/TortoiseProc/resource.h and b/src/TortoiseProc/resource.h differ