10#ifndef SHOW_PACKET_BYTES_DIALOG_H
11#define SHOW_PACKET_BYTES_DIALOG_H
69 void addCodecs(
const QMap<QString, QTextCodec *> &codecMap);
93 void on_sbStart_valueChanged(
int value);
99 void on_sbEnd_valueChanged(
int value);
106 void on_cbDecodeAs_currentIndexChanged(
int idx);
113 void on_cbShowAs_currentIndexChanged(
int idx);
118 void on_leFind_returnPressed();
124 void on_bFind_clicked();
129 void on_buttonBox_rejected();
137 void showSelected(
int start,
int end);
143 void useRegexFind(
bool use_regex);
150 void findText(
bool go_back =
true);
171 void setStartAndEnd(
int start,
int end);
178 bool enableShowSelected();
183 void updateWidgets();
189 void updateHintLabel();
196 void sanitizeBuffer(QByteArray &ba,
bool handle_CR);
203 void symbolizeBuffer(QByteArray &ba);
211 QByteArray decodeQuotedPrintable(
const uint8_t *bytes,
int length);
217 void rot13(QByteArray &ba);
225 void updateFieldBytes(
bool initialization =
false);
231 void updatePacketBytes();
233 Ui::ShowPacketBytesDialog *ui;
236 QByteArray field_bytes_;
238 QString decode_as_name_;
239 QPushButton *print_button_;
240 QPushButton *copy_button_;
241 QPushButton *save_as_button_;
242 bool use_regex_find_;
296 void contextMenuEvent(QContextMenuEvent *event);
310 bool show_selected_enabled_;
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Dialog that displays the raw bytes of a selected packet field, with configurable decode and display t...
Definition show_packet_bytes_dialog.h:49
void addCodecs(const QMap< QString, QTextCodec * > &codecMap)
Populates the character-encoding combo box with the supplied codecs.
Definition show_packet_bytes_dialog.cpp:128
bool eventFilter(QObject *obj, QEvent *event)
Intercepts events on watched objects; used to detect text selection changes in the display widget.
Definition show_packet_bytes_dialog.cpp:450
~ShowPacketBytesDialog()
Destroys the dialog and releases all associated resources.
Definition show_packet_bytes_dialog.cpp:122
void keyPressEvent(QKeyEvent *event)
Handles key press events; maps Ctrl+F to the find field and Enter/Return to findText().
Definition show_packet_bytes_dialog.cpp:470
QTextEdit subclass used inside ShowPacketBytesDialog that adds a context menu with "Show Selected Byt...
Definition show_packet_bytes_dialog.h:254
void showSelected(int start, int end)
Emitted when the user chooses "Show Selected Bytes", carrying the character positions of the selectio...
void setShowSelectedEnabled(bool enabled)
Enables or disables the "Show Selected Bytes" context menu action.
Definition show_packet_bytes_dialog.h:273
~ShowPacketBytesTextEdit()
Destroys the text edit widget.
Definition show_packet_bytes_dialog.h:267
void setMenusEnabled(bool enabled)
Enables or disables the entire context menu.
Definition show_packet_bytes_dialog.h:279
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
Core tvbuff (testy virtual buffer) structure representing a region of packet data,...
Definition tvbuff-int.h:95
Describes a single decompression algorithm available in the "Decode As" list of ShowPacketBytesDialog...
Definition show_packet_bytes_dialog.h:37
QString name
Definition show_packet_bytes_dialog.h:38