diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-07 22:15:12 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-08 16:54:12 +0000 |
commit | 1b5382caa57555bd73601937d9f08afb179f0228 (patch) | |
tree | d8fc81a86a6975afb3dd3c1b0d43c0a90f6448f9 /ui/qt/main_window_slots.cpp | |
parent | 56a41845e7aada1655553a50abaa64df6817d8d2 (diff) |
Qt: Add Show Packet Bytes Dialog
Show selected packet bytes as ASCII, HTML, Image, ISO 8859-1, Raw or UTF-8.
Images supported are what's supported by QImage, and HTML supported
is what's supported by QTextEdit.
Change-Id: I96fc5c5d222c5389078576463cf78d82cf55528d
Reviewed-on: https://code.wireshark.org/review/13807
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r-- | ui/qt/main_window_slots.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 12f52cf586..1069fa9427 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -130,6 +130,7 @@ #include "sctp_assoc_analyse_dialog.h" #include "sctp_graph_dialog.h" #include "sequence_dialog.h" +#include "show_packet_bytes_dialog.h" #include "stats_tree_dialog.h" #include "stock_icon.h" #include "supported_protocols_dialog.h" @@ -1759,6 +1760,13 @@ void MainWindow::on_actionFileExportPacketBytes_triggered() wsApp->setLastOpenDir(&file_name); } } + +void MainWindow::on_actionContextShowPacketBytes_triggered() +{ + ShowPacketBytesDialog *spbd = new ShowPacketBytesDialog(*this, capture_file_); + spbd->show(); +} + void MainWindow::on_actionFileExportPDU_triggered() { ExportPDUDialog *exportpdu_dialog = new ExportPDUDialog(this); |