10 #ifndef SHOW_PACKET_BYTES_DIALOG_H
11 #define SHOW_PACKET_BYTES_DIALOG_H
25 #include <QPushButton>
42 void addCodecs(
const QMap<QString, QTextCodec *> &codecMap);
45 bool eventFilter(QObject *obj, QEvent *event);
46 void keyPressEvent(QKeyEvent *event);
51 void on_sbStart_valueChanged(
int value);
52 void on_sbEnd_valueChanged(
int value);
53 void on_cbDecodeAs_currentIndexChanged(
int idx);
54 void on_cbShowAs_currentIndexChanged(
int idx);
55 void on_leFind_returnPressed();
56 void on_bFind_clicked();
57 void on_buttonBox_rejected();
59 void showSelected(
int start,
int end);
60 void useRegexFind(
bool use_regex);
61 void findText(
bool go_back =
true);
68 void setStartAndEnd(
int start,
int end);
69 bool enableShowSelected();
71 void updateHintLabel();
72 void sanitizeBuffer(QByteArray &ba,
bool handle_CR);
73 void symbolizeBuffer(QByteArray &ba);
74 QByteArray decodeQuotedPrintable(
const guint8 *bytes,
int length);
75 void rot13(QByteArray &ba);
76 void updateFieldBytes(
bool initialization =
false);
77 void updatePacketBytes();
79 Ui::ShowPacketBytesDialog *ui;
82 QByteArray field_bytes_;
84 QPushButton *print_button_;
85 QPushButton *copy_button_;
86 QPushButton *save_as_button_;
99 QTextEdit(parent), show_selected_enabled_(
true), menus_enabled_(
true) { }
102 void setShowSelectedEnabled(
bool enabled) { show_selected_enabled_ = enabled; }
103 void setMenusEnabled(
bool enabled) { menus_enabled_ = enabled; }
106 void showSelected(
int,
int);
109 void contextMenuEvent(QContextMenuEvent *event);
114 bool show_selected_enabled_;
Definition: capture_file.h:23
Definition: show_packet_bytes_dialog.h:35
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:885
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:878
Definition: show_packet_bytes_dialog.h:94
Definition: wireshark_dialog.h:35