summaryrefslogtreecommitdiff
path: root/ui/qt/show_packet_bytes_dialog.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-02-28 13:38:08 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-02-28 19:00:12 +0000
commit3c6dab95b4a6c14fec3e65fe4f5130a6e57ecf85 (patch)
tree880f0ea9a9e6e5bf63ac066f0df4a1bbfca7efeb /ui/qt/show_packet_bytes_dialog.h
parentddcafa06dfb1efe367c2495fc6a8b2cbcda203a1 (diff)
downloadwireshark-3c6dab95b4a6c14fec3e65fe4f5130a6e57ecf85.tar.gz
Qt: Improve Show Packet Bytes
- Add ShowAsASCIIandControl to keep ShowAsASCII only ASCII printable. - Enable show selected when ShowAsRAW. - Use QString::fromLatin1() when ShowAs8859_1. - Don't replace null with symbol for null when ShowAsUTF8. Change-Id: I25750247160e33d342fde12e6a998e3198270acf Reviewed-on: https://code.wireshark.org/review/14220 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/show_packet_bytes_dialog.h')
-rw-r--r--ui/qt/show_packet_bytes_dialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/show_packet_bytes_dialog.h b/ui/qt/show_packet_bytes_dialog.h
index 19558d03e8..906a2d8bb8 100644
--- a/ui/qt/show_packet_bytes_dialog.h
+++ b/ui/qt/show_packet_bytes_dialog.h
@@ -83,6 +83,7 @@ private:
};
enum ShowAsType {
ShowAsASCII,
+ ShowAsASCIIandControl,
ShowAsCArray,
ShowAsEBCDIC,
ShowAsHexDump,
@@ -98,7 +99,8 @@ private:
bool enableShowSelected();
void updateWidgets(); // Needed for WiresharkDialog?
void updateHintLabel();
- void sanitizeBuffer(QByteArray &ba);
+ void sanitizeBuffer(QByteArray &ba, bool handle_CR);
+ void symbolizeBuffer(QByteArray &ba);
void rot13(QByteArray &ba);
void updateFieldBytes(bool initialization = false);
void updatePacketBytes();