Skip to content

Commit facc62c

Browse files
committed
删除捐赠对话框
1 parent 45c2208 commit facc62c

22 files changed

+1
-200
lines changed

TrafficMonitor/AboutDlg.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ void CAboutDlg::DoDataExchange(CDataExchange* pDX)
2222
DDX_Control(pDX, IDC_STATIC_MAIL, m_mail);
2323
DDX_Control(pDX, IDC_STATIC_ACKNOWLEDGEMENT, m_acknowledgement);
2424
DDX_Control(pDX, IDC_STATIC_GITHUB, m_github);
25-
DDX_Control(pDX, IDC_STATIC_DONATE, m_donate);
2625
DDX_Control(pDX, IDC_TRANSLATOR_STATIC, m_translator_static);
2726
DDX_Control(pDX, IDC_STATIC_LICENSE, m_license);
2827
DDX_Control(pDX, IDC_OPENHARDWAREMONITOR_LINK, m_openhardwaremonitor_link);
@@ -79,7 +78,6 @@ BOOL CAboutDlg::OnInitDialog()
7978
//m_check_update.SetURL(_T("http://pan.baidu.com/s/1c1LkPQ4"));
8079
m_github.SetURL(_T("https://github.com/zhongyang219/TrafficMonitor"));
8180
m_gitee.SetURL(_T("https://gitee.com/zhongyang219/TrafficMonitor"));
82-
m_donate.SetLinkIsURL(false);
8381
m_acknowledgement.SetLinkIsURL(false);
8482
m_license.SetLinkIsURL(false);
8583

@@ -95,7 +93,6 @@ BOOL CAboutDlg::OnInitDialog()
9593
m_acknowledgement.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
9694
m_github.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
9795
m_gitee.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
98-
m_donate.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
9996
m_license.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
10097

10198
//设置版本信息
@@ -135,7 +132,6 @@ BOOL CAboutDlg::OnInitDialog()
135132
//m_tool_tip.AddTool(&m_check_update, _T("到百度网盘链接查看是否有更新\r\nhttp://pan.baidu.com/s/1c1LkPQ4"));
136133
m_tool_tip.AddTool(&m_github, CCommon::LoadText(IDS_GOTO_GITHUB, _T("\r\nhttps://github.com/zhongyang219/TrafficMonitor")));
137134
m_tool_tip.AddTool(&m_gitee, CCommon::LoadText(IDS_GOTO_GITEE, _T("\r\nhttps://gitee.com/zhongyang219/TrafficMonitor")));
138-
m_tool_tip.AddTool(&m_donate, CCommon::LoadText(IDS_DONATE_ATHOUR));
139135
m_tool_tip.AddTool(&m_openhardwaremonitor_link, m_openhardwaremonitor_link.GetURL());
140136
m_tool_tip.AddTool(&m_tinyxml2_link, m_tinyxml2_link.GetURL());
141137
m_tool_tip.AddTool(&m_musicplayer2_link, CCommon::LoadText(IDS_MUSICPLAYER2_DESCRIPTION) + _T("\r\n") + m_musicplayer2_link.GetURL());
@@ -191,12 +187,7 @@ BOOL CAboutDlg::PreTranslateMessage(MSG* pMsg)
191187
afx_msg LRESULT CAboutDlg::OnLinkClicked(WPARAM wParam, LPARAM lParam)
192188
{
193189
CWnd* pCtrl = (CWnd*)wParam;
194-
if (pCtrl == &m_donate)
195-
{
196-
CDonateDlg donateDlg;
197-
donateDlg.DoModal();
198-
}
199-
else if (pCtrl == &m_acknowledgement)
190+
if (pCtrl == &m_acknowledgement)
200191
{
201192
CString strContent = GetDonateList();
202193
//strContent += _T("\r\n");

TrafficMonitor/AboutDlg.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
#include "DonateDlg.h"
32
#include "LinkStatic.h"
43
#include "BaseDialog.h"
54

@@ -20,7 +19,6 @@ class CAboutDlg : public CBaseDialog
2019
CLinkStatic m_acknowledgement; //“鸣谢”超链接
2120
CLinkStatic m_github; //“GitHub”超链接
2221
CLinkStatic m_gitee; //“Gitee”超链接
23-
CLinkStatic m_donate; //“捐助”超链接
2422
CLinkStatic m_license; //“开源协议”超链接
2523
CToolTipCtrl m_tool_tip; //鼠标指向时的工具提示
2624
CLinkStatic m_translator_static;

TrafficMonitor/DonateDlg.cpp

Lines changed: 0 additions & 93 deletions
This file was deleted.

TrafficMonitor/DonateDlg.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

TrafficMonitor/TrafficMonitor.rc

-1.45 KB
Binary file not shown.

TrafficMonitor/TrafficMonitor.vcxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,6 @@
811811
<ClInclude Include="Common.h" />
812812
<ClInclude Include="CommonData.h" />
813813
<ClInclude Include="CSkinPreviewView.h" />
814-
<ClInclude Include="DonateDlg.h" />
815814
<ClInclude Include="DrawCommon.h" />
816815
<ClInclude Include="GeneralSettingsDlg.h" />
817816
<ClInclude Include="HistoryTrafficDlg.h" />
@@ -906,7 +905,6 @@
906905
<ClCompile Include="ColorStatic.cpp" />
907906
<ClCompile Include="Common.cpp" />
908907
<ClCompile Include="CSkinPreviewView.cpp" />
909-
<ClCompile Include="DonateDlg.cpp" />
910908
<ClCompile Include="DrawCommon.cpp" />
911909
<ClCompile Include="GeneralSettingsDlg.cpp" />
912910
<ClCompile Include="HistoryTrafficDlg.cpp" />
@@ -1000,8 +998,6 @@
1000998
<Image Include="res\about_background.bmp" />
1001999
<Image Include="res\about_background_hd.bmp" />
10021000
<Image Include="res\bitmap3.bmp" />
1003-
<Image Include="res\donate.bmp" />
1004-
<Image Include="res\donate_wechart.bmp" />
10051001
<Image Include="res\menu_icon\close.ico" />
10061002
<Image Include="res\menu_icon\connection.ico" />
10071003
<Image Include="res\menu_icon\exit.ico" />

TrafficMonitor/TrafficMonitor.vcxproj.filters

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
<Filter Include="源文件和头文件\stdafx">
3131
<UniqueIdentifier>{ee6e7f72-a080-4020-92ff-432b8dcdad2f}</UniqueIdentifier>
3232
</Filter>
33-
<Filter Include="源文件和头文件\对话框类\DonateDlg">
34-
<UniqueIdentifier>{9085ed32-5818-45d1-836b-bae3c63952d0}</UniqueIdentifier>
35-
</Filter>
3633
<Filter Include="源文件和头文件\对话框类\选项设置对话框">
3734
<UniqueIdentifier>{98909116-8f3b-47d0-8e3f-ef90b29a2acc}</UniqueIdentifier>
3835
</Filter>
@@ -286,9 +283,6 @@
286283
<ClInclude Include="stdafx.h">
287284
<Filter>源文件和头文件\stdafx</Filter>
288285
</ClInclude>
289-
<ClInclude Include="DonateDlg.h">
290-
<Filter>源文件和头文件\对话框类\DonateDlg</Filter>
291-
</ClInclude>
292286
<ClInclude Include="MainWndSettingsDlg.h">
293287
<Filter>源文件和头文件\对话框类\选项设置对话框</Filter>
294288
</ClInclude>
@@ -573,9 +567,6 @@
573567
<ClCompile Include="stdafx.cpp">
574568
<Filter>源文件和头文件\stdafx</Filter>
575569
</ClCompile>
576-
<ClCompile Include="DonateDlg.cpp">
577-
<Filter>源文件和头文件\对话框类\DonateDlg</Filter>
578-
</ClCompile>
579570
<ClCompile Include="GeneralSettingsDlg.cpp">
580571
<Filter>源文件和头文件\对话框类\选项设置对话框</Filter>
581572
</ClCompile>
@@ -935,12 +926,6 @@
935926
<Image Include="res\bitmap3.bmp">
936927
<Filter>资源文件\bitmaps</Filter>
937928
</Image>
938-
<Image Include="res\donate.bmp">
939-
<Filter>资源文件\bitmaps</Filter>
940-
</Image>
941-
<Image Include="res\donate_wechart.bmp">
942-
<Filter>资源文件\bitmaps</Filter>
943-
</Image>
944929
<Image Include="res\notify_preview.bmp">
945930
<Filter>资源文件\bitmaps</Filter>
946931
</Image>

TrafficMonitor/language/English.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ TXT_AUTO_SAVE_TO_PRESET_CHECK = "Auto-save taskbar window color settings to pres
258258
TXT_TITLE_DISPLAY_TEXT_SETTING = "Display Text Settings"
259259
TXT_RESTORE_DEFAULT = "Restore &Default for All"
260260

261-
; CDonateDlg
262-
TXT_TITLE_DONATE = "Donate"
263-
TXT_DONATE_INFO = "If you think this software is helpful to you, you can scan the following QR code through Alipay or WeChat Pay to donate the author to help the author to make this software better. Please feel free for the amount."
264-
265261
; CGeneralSettingsDlg
266262
TXT_APPLICATION_SETTINGS = "Application Settings"
267263
TXT_CHECK_UPDATE = "Check for update at startup"

TrafficMonitor/language/German.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ TXT_AUTO_SAVE_TO_PRESET_CHECK = "Farbeinstellungen des Taskbarfenster automatisc
258258
TXT_TITLE_DISPLAY_TEXT_SETTING = "Anzeigetext-Einstellungen"
259259
TXT_RESTORE_DEFAULT = "&Standard wiederherstellen"
260260

261-
; CDonateDlg
262-
TXT_TITLE_DONATE = "Spenden"
263-
TXT_DONATE_INFO = "Wenn du denkst, dass dieses Programm für dich hilfreich ist, kannst du den folgenden QR-Code durch Alipay oder WeChat Pay scannen um an den Entwickler zu spenden und ihm zu helfen das Programm besser zu machen. Bitte fühl dich frei, den Betrag nach deinem Ermessen zu wählen."
264-
265261
; CGeneralSettingsDlg
266262
TXT_APPLICATION_SETTINGS = "Programmeinstellungen"
267263
TXT_CHECK_UPDATE = "Beim Start auf Updates prüfen"

TrafficMonitor/language/Hebrew.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ TXT_AUTO_SAVE_TO_PRESET_CHECK = "שמור אוטומטית את הגדרות צ
256256
TXT_TITLE_DISPLAY_TEXT_SETTING = "הגדרות תצוגת טקסט"
257257
TXT_RESTORE_DEFAULT = "שחזר ברירת מחדל"
258258
259-
; CDonateDlg
260-
TXT_TITLE_DONATE = "תרומה"
261-
TXT_DONATE_INFO = "אם תוכנה זו עוזרת לך, תוכל לסרוק את קוד ה-QR הבא באמצעות Alipay או WeChat Pay כדי לתרום למחבר ולעזור לו לשפר את התוכנה. סכום התרומה נתון לשיקולך."
262-
263259
; CGeneralSettingsDlg
264260
TXT_APPLICATION_SETTINGS = "הגדרות יישום"
265261
TXT_CHECK_UPDATE = "בדוק עדכונים בעת הפעלה"

0 commit comments

Comments
 (0)