diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-07-25 11:53:44 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-07-25 11:53:44 +0000 |
commit | dece67951b6c6aa8ee120f13487b682419312d8b (patch) | |
tree | 38b2b2efcd298c7df48b51d67ede46cc629404eb | |
parent | d31651c42c698f87ee28f19e4257d5e75bb5e377 (diff) | |
download | wireshark-dece67951b6c6aa8ee120f13487b682419312d8b.tar.gz |
Add some link (URL) to Help Menu in QtShark
* Use QtAutoconnect feature
* no (yet ?) use help_dlg.* function (topic_action, topic_online_url...)
svn path=/trunk/; revision=43987
-rw-r--r-- | ui/qt/main_window.cpp | 31 | ||||
-rw-r--r-- | ui/qt/main_window.h | 6 |
2 files changed, 37 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 4ca184c54c..2f0a1addba 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -191,6 +191,37 @@ void MainWindow::captureFileClosing(const capture_file *cf) { // gtk_widget_show(expert_info_none); } +/* Help Menu */ +void MainWindow::on_actionHelpWebsite_triggered() { + + QDesktopServices::openUrl(QUrl("http://www.wireshark.org")); +} + +void MainWindow::on_actionHelpFAQ_triggered() { + + QDesktopServices::openUrl(QUrl("http://www.wireshark.org/faq.html")); +} + +void MainWindow::on_actionHelpAsk_triggered() { + + QDesktopServices::openUrl(QUrl("http://ask.wireshark.org")); +} + +void MainWindow::on_actionHelpDownloads_triggered() { + + QDesktopServices::openUrl(QUrl("http://www.wireshark.org/download.html")); +} + +void MainWindow::on_actionHelpWiki_triggered() { + + QDesktopServices::openUrl(QUrl("http://wiki.wireshark.org")); +} + +void MainWindow::on_actionHelpSampleCaptures_triggered() { + + QDesktopServices::openUrl(QUrl("http://wiki.wireshark.org/SampleCaptures")); +} + void MainWindow::captureFileClosed(const capture_file *cf) { if (cf != capFile) return; packets_bar_update(); diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index 39edf4ebe9..455f1440c7 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -77,6 +77,12 @@ private slots: void updateRecentFiles(); void openCaptureFile(QString& cfPath = *new QString()); void recentActionTriggered(); + void on_actionHelpWebsite_triggered(); + void on_actionHelpFAQ_triggered(); + void on_actionHelpAsk_triggered(); + void on_actionHelpDownloads_triggered(); + void on_actionHelpWiki_triggered(); + void on_actionHelpSampleCaptures_triggered(); }; |