From 6eb9cfffbfaf43f8675a6551da2e6d47f676248e Mon Sep 17 00:00:00 2001 From: LI Daobing Date: Fri, 8 Oct 2021 17:42:33 +0800 Subject: [PATCH] add what's new in the menu --- NEWS.md | 4 + src/iptux/Application.cpp | 5 + src/iptux/resources/gtk/menus.ui | 330 ++++++++++++++++--------------- 3 files changed, 176 insertions(+), 163 deletions(-) diff --git a/NEWS.md b/NEWS.md index 46cad668..242a9a1a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# [0.8.4] (2021-??-??) + +* [#482](https://github.com/iptux-src/iptux/issues/482) add "What's New" in the menu. + # [0.8.3] (2021-10-07) * [#476] open chat when clicking the new message notification (only works under Linux). diff --git a/src/iptux/Application.cpp b/src/iptux/Application.cpp index e790dd79..483dd1ee 100644 --- a/src/iptux/Application.cpp +++ b/src/iptux/Application.cpp @@ -45,6 +45,10 @@ void onReportBug() { iptux_open_url("https://github.com/iptux-src/iptux/issues/new"); } +void onWhatsNew() { + iptux_open_url("https://github.com/iptux-src/iptux/blob/master/NEWS.md"); +} + void iptux_init(LogSystem* logSystem) { signal(SIGPIPE, SIG_IGN); logSystem->systemLog("%s", _("Loading the process successfully!")); @@ -132,6 +136,7 @@ void Application::onStartup(Application& self) { makeActionEntry("quit", G_ACTION_CALLBACK(onQuit)), makeActionEntry("preferences", G_ACTION_CALLBACK(onPreferences)), makeActionEntry("help.report_bug", G_ACTION_CALLBACK(onReportBug)), + makeActionEntry("help.whats_new", G_ACTION_CALLBACK(onWhatsNew)), makeActionEntry("tools.transmission", G_ACTION_CALLBACK(onToolsTransmission)), makeActionEntry("tools.shared_management", diff --git a/src/iptux/resources/gtk/menus.ui b/src/iptux/resources/gtk/menus.ui index b69f685e..4317a680 100644 --- a/src/iptux/resources/gtk/menus.ui +++ b/src/iptux/resources/gtk/menus.ui @@ -1,174 +1,178 @@ - + - -
- - _Preferences - app.preferences - - - _Quit - app.quit - -
-
- - - _File - - _Detect - win.detect - - - _Find - win.find - - - - _View -
- - Sort -
- - By Nickname - win.sort_by - nickname - - - By IP - win.sort_by - ip - -
-
- - Ascending - win.sort_type - ascending - - - Descending - win.sort_type - descending - -
-
- - _Refresh - win.refresh - view-refresh-symbolic - -
-
- - _Chat -
- - Insert Picture - win.insert_picture - insert-image-symbolic - - - Attach File - win.attach_file - - - Attach Folder - win.attach_folder - -
-
- - Request Shared Resources - win.request_shared_resources - - - Clear Chat History - win.clear_chat_history - edit-clear-all-symbolic - -
-
- - Send Message - win.send_message - - - Close Chat - win.close - -
-
- - _Window -
- - _Transmission - app.tools.transmission - - - _Shared Management - app.tools.shared_management - - - _Chat Log - app.tools.open_chat_log - - - _System Log - app.tools.open_system_log - -
-
+ +
+ + _Preferences + app.preferences + + + _Quit + app.quit + +
+
+ + + _File + + _Detect + win.detect + + + _Find + win.find + + + + _View +
- _Help -
- - _About - app.about - + Sort +
- Report Bug - app.help.report_bug + By Nickname + win.sort_by + nickname -
- -
- -
- Open This File - win.trans.open_file + By IP + win.sort_by + ip +
+
- Open Containing Folder - win.trans.open_folder + Ascending + win.sort_type + ascending - Terminate Task - win.trans.terminate_task + Descending + win.sort_type + descending - - Terminate All - win.trans.terminate_all - - - Clear Tasklist - app.trans_model.clear - -
-
- -
- - Refuse - win.refuse - - - Refuse All - win.refuse_all - -
-
+ + + + _Refresh + win.refresh + view-refresh-symbolic + + + + + _Chat +
+ + Insert Picture + win.insert_picture + insert-image-symbolic + + + Attach File + win.attach_file + + + Attach Folder + win.attach_folder + +
+
+ + Request Shared Resources + win.request_shared_resources + + + Clear Chat History + win.clear_chat_history + edit-clear-all-symbolic + +
+
+ + Send Message + win.send_message + + + Close Chat + win.close + +
+
+ + _Window +
+ + _Transmission + app.tools.transmission + + + _Shared Management + app.tools.shared_management + + + _Chat Log + app.tools.open_chat_log + + + _System Log + app.tools.open_system_log + +
+
+ + _Help +
+ + _About + app.about + + + Report Bug + app.help.report_bug + + + What's New + app.help.whats_new + +
+
+
+ +
+ + Open This File + win.trans.open_file + + + Open Containing Folder + win.trans.open_folder + + + Terminate Task + win.trans.terminate_task + + + Terminate All + win.trans.terminate_all + + + Clear Tasklist + app.trans_model.clear + +
+
+ +
+ + Refuse + win.refuse + + + Refuse All + win.refuse_all + +
+