feat: ISSUE #I62BVT 添加网页通知功能

WebEngineView 中添加 WebEngineView::present(std::unique_ptr<QWebEngineNotification> &newNotification) 函数,通过 DNotifySender 转发系统通知

Log: 添加网页通知功能,通知图片缓存在 /tmp 下;使用 DLogManager 生成日志;修复强制使用 DTK 平台插件异常问题
This commit is contained in:
zty199
2022-12-19 02:26:07 +08:00
parent fa54612642
commit faa613d671
11 changed files with 179 additions and 26 deletions

View File

@@ -4,12 +4,12 @@
<context>
<name>DAboutDialog</name>
<message>
<location filename="../application.cpp" line="49"/>
<location filename="../application.cpp" line="82"/>
<source>Version: %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../application.cpp" line="65"/>
<location filename="../application.cpp" line="98"/>
<source>%1 is released under %2</source>
<translation>%1%2</translation>
</message>
@@ -17,7 +17,7 @@
<context>
<name>QObject</name>
<message>
<location filename="../application.cpp" line="57"/>
<location filename="../application.cpp" line="90"/>
<location filename="../main.cpp" line="186"/>
<source>Presented By Spark developers # HadesStudio</source>
<translation> @ </translation>
@@ -113,95 +113,100 @@
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="42"/>
<location filename="../mainwindow.cpp" line="47"/>
<source>Full Screen</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="43"/>
<location filename="../mainwindow.cpp" line="48"/>
<source>Fix Size</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="44"/>
<location filename="../mainwindow.cpp" line="49"/>
<source>Hide Buttons</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="45"/>
<location filename="../mainwindow.cpp" line="50"/>
<source>Clear Cache</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="47"/>
<location filename="../mainwindow.cpp" line="52"/>
<source>Show MainWindow</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="54"/>
<location filename="../mainwindow.cpp" line="59"/>
<source>Pause</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="55"/>
<location filename="../mainwindow.cpp" line="60"/>
<source>Resume</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="56"/>
<location filename="../mainwindow.cpp" line="61"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="338"/>
<location filename="../mainwindow.cpp" line="381"/>
<source>Save As</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="402"/>
<location filename="../mainwindow.cpp" line="445"/>
<source>%1Start downloading %2</source>
<translation>%1 %2</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="413"/>
<location filename="../mainwindow.cpp" line="456"/>
<source>%1Wait for previous download to complete!</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="435"/>
<location filename="../mainwindow.cpp" line="478"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="439"/>
<location filename="../mainwindow.cpp" line="482"/>
<source>download finished.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="439"/>
<location filename="../mainwindow.cpp" line="482"/>
<source>Show in file manager?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="477"/>
<location filename="../mainwindow.cpp" line="520"/>
<source>%1Download canceled!</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="482"/>
<location filename="../mainwindow.cpp" line="525"/>
<source>%1Load error occurred!</source>
<translation>%1</translation>
</message>
<message>
<location filename="../webengineview.cpp" line="79"/>
<source>View</source>
<translation></translation>
</message>
</context>
<context>
<name>TitleBarMenu</name>
<message>
<location filename="../mainwindow.cpp" line="48"/>
<location filename="../mainwindow.cpp" line="53"/>
<source>About</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="49"/>
<location filename="../mainwindow.cpp" line="54"/>
<source>Exit</source>
<translation>退</translation>
</message>