diff --git a/ui/qt/show_packet_bytes_dialog.cpp b/ui/qt/show_packet_bytes_dialog.cpp index d09c7ac9b3..166309d43d 100644 --- a/ui/qt/show_packet_bytes_dialog.cpp +++ b/ui/qt/show_packet_bytes_dialog.cpp @@ -49,11 +49,19 @@ ShowPacketBytesDialog::ShowPacketBytesDialog(QWidget &parent, CaptureFile &cf) : ui->setupUi(this); field_info *finfo = cf.capFile()->finfo_selected; - setWindowSubtitle (QString("%1 (%2)").arg(finfo->hfinfo->name, finfo->hfinfo->abbrev)); + QString field_name = QString("%1 (%2)").arg(finfo->hfinfo->name, finfo->hfinfo->abbrev); + setWindowSubtitle (field_name); const guint8 *bytes = tvb_get_ptr(finfo->ds_tvb, 0, -1) + finfo->start; field_bytes_ = QByteArray((const char *)bytes, finfo->length); + QString hint = tr("Frame %1, %2, %Ln byte(s).", "", finfo->length) + .arg(cf.capFile()->current_frame->num) + .arg(field_name); + hint.prepend(""); + hint.append(""); + ui->hintLabel->setText(hint); + // Try loading as image if (image_.loadFromData(field_bytes_)) { show_as_ = ShowAsImage; diff --git a/ui/qt/show_packet_bytes_dialog.ui b/ui/qt/show_packet_bytes_dialog.ui index 7c8e94fb73..b0c00aa11c 100644 --- a/ui/qt/show_packet_bytes_dialog.ui +++ b/ui/qt/show_packet_bytes_dialog.ui @@ -30,6 +30,16 @@ + + + + Hint. + + + true + + + diff --git a/ui/qt/wireshark_en.ts b/ui/qt/wireshark_en.ts index aa26f727b3..3c66cdfd9b 100644 --- a/ui/qt/wireshark_en.ts +++ b/ui/qt/wireshark_en.ts @@ -8043,7 +8043,12 @@ a:hover { - + + Show Packet Bytes… + + + + UDP Multicast Streams @@ -13701,6 +13706,102 @@ a:hover { + + ShowPacketBytesDialog + + + Show Packet Bytes + + + + + Hint. + + + + + Show as + + + + + Find: + + + + + Find &Next + + + + + Frame %1, %2, %Ln byte(s). + + Frame %1, %2, %Ln byte. + Frame %1, %2, %Ln bytes. + + + + + ASCII + + + + + EBCDIC + + + + + Hex Dump + + + + + HTML + + + + + Image + + + + + ISO 8859-1 + + + + + Raw + + + + + UTF-8 + + + + + Print + + + + + Copy + + + + + Save as + + + + + Save Selected Packet Bytes As + + + SimpleDialog