44 void addCodecs(
const QMap<QString, QTextCodec *> &codecMap);
45 bool follow(QString previous_filter = QString(),
bool use_stream_index =
false,
unsigned stream_num = 0,
unsigned sub_stream_num = 0);
48 bool eventFilter(QObject *obj, QEvent *event);
49 void keyPressEvent(QKeyEvent *event);
51 virtual QString labelHint(
int pkt = 0);
53 int client_packet_count()
const {
return client_packet_count_; }
54 int server_packet_count()
const {
return server_packet_count_; }
55 int turns()
const {
return turns_; }
56 const follow_info_t& followInfo()
const {
return follow_info_; }
58 virtual QString serverToClientString()
const;
59 virtual QString clientToServerString()
const;
60 virtual QString bothDirectionsString()
const;
64 void cbCharsetCurrentIndexChanged(
int idx);
65 void deltaComboBoxCurrentIndexChanged(
int idx);
66 void cbDirectionsCurrentIndexChanged(
int idx);
68 void leFindReturnPressed();
74 void useRegexFind(
bool use_regex);
75 void findText(
bool go_back =
true);
78 void fillHintLabel(
int pkt = 0);
79 void goToPacketForTextPos(
int pkt = 0);
81 void streamNumberSpinBoxValueChanged(
int stream_num);
82 void subStreamNumberSpinBoxValueChanged(
int sub_stream_num);
84 void buttonBoxRejected();
87 void updateFilter(QString filter,
bool force);
88 void goToPacket(
int packet_num);
92 static void resetStream(
void *tapData);
94 void removeStreamControls();
95 void resetStream(
void);
96 void updateWidgets(
bool follow_in_progress);
97 void updateWidgets() { updateWidgets(
false); }
98 void showBuffer(QByteArray &
buffer,
size_t nchars,
bool is_from_server,
99 uint32_t packet_num,
nstime_t abs_ts, uint32_t *global_pos);
101 void readFollowStream();
104 void addText(QString text,
bool is_from_server, uint32_t packet_num,
bool colorize =
true);
106 Ui::FollowStreamDialog *ui;
108 QPushButton *b_filter_out_;
109 QPushButton *b_find_;
110 QPushButton *b_print_;
111 QPushButton *b_save_;
112 QPushButton *b_back_;
116 QString previous_filter_;
117 QString filter_out_filter_;
118 QString output_filter_;
119 int client_buffer_count_;
120 int server_buffer_count_;
121 int client_packet_count_;
122 int server_packet_count_;
123 uint32_t last_packet_;
124 bool last_from_server_;
128 bool use_regex_find_;
132 int previous_sub_stream_num_;