10 #ifndef SHOW_PACKET_BYTES_DIALOG_H
11 #define SHOW_PACKET_BYTES_DIALOG_H
24 #include <QPushButton>
41 void addCodecs(
const QMap<QString, QTextCodec *> &codecMap);
44 bool eventFilter(QObject *obj, QEvent *event);
45 void keyPressEvent(QKeyEvent *event);
50 void on_sbStart_valueChanged(
int value);
51 void on_sbEnd_valueChanged(
int value);
52 void on_cbDecodeAs_currentIndexChanged(
int idx);
53 void on_cbShowAs_currentIndexChanged(
int idx);
54 void on_leFind_returnPressed();
55 void on_bFind_clicked();
56 void on_buttonBox_rejected();
58 void showSelected(
int start,
int end);
59 void useRegexFind(
bool use_regex);
60 void findText(
bool go_back =
true);
67 void setStartAndEnd(
int start,
int end);
68 bool enableShowSelected();
70 void updateHintLabel();
71 void sanitizeBuffer(QByteArray &ba,
bool handle_CR);
72 void symbolizeBuffer(QByteArray &ba);
73 QByteArray decodeQuotedPrintable(
const uint8_t *bytes,
int length);
74 void rot13(QByteArray &ba);
75 void updateFieldBytes(
bool initialization =
false);
76 void updatePacketBytes();
78 Ui::ShowPacketBytesDialog *ui;
81 QByteArray field_bytes_;
83 QPushButton *print_button_;
84 QPushButton *copy_button_;
85 QPushButton *save_as_button_;
98 QTextEdit(parent), show_selected_enabled_(
true), menus_enabled_(
true) { }
101 void setShowSelectedEnabled(
bool enabled) { show_selected_enabled_ = enabled; }
102 void setMenusEnabled(
bool enabled) { menus_enabled_ = enabled; }
105 void showSelected(
int,
int);
108 void contextMenuEvent(QContextMenuEvent *event);
113 bool show_selected_enabled_;
Definition: capture_file.h:21
Definition: show_packet_bytes_dialog.h:34
void captureFileClosed()
Called when the capture file was closed. This can be used to enable or disable widgets according to t...
Definition: show_packet_bytes_dialog.cpp:905
void captureFileClosing()
Called when the capture file is about to close. This can be used to disconnect taps and similar actio...
Definition: show_packet_bytes_dialog.cpp:898
Definition: show_packet_bytes_dialog.h:93
Definition: wireshark_dialog.h:35