13 #include "byte_view_tab.h" 14 #include <ui/qt/models/packet_list_model.h> 15 #include "proto_tree.h" 16 #include "protocol_preferences_menu.h" 17 #include <ui/qt/models/related_packet_delegate.h> 18 #include <ui/qt/utils/field_information.h> 48 QMenu *conversationMenu() {
return &conv_menu_; }
49 QMenu *colorizeMenu() {
return &colorize_menu_; }
65 void thaw(
bool restore_selection =
false);
67 void writeRecent(FILE *rf);
68 bool contextMenuActive();
69 QString getFilterFromRowAndColumn();
70 void resetColorized();
71 QString packetComment();
72 void setPacketComment(QString new_comment);
73 QString allPacketComments();
74 void deleteAllPacketComments();
75 void setVerticalAutoScroll(
bool enabled =
true);
76 void setCaptureInProgress(
bool in_progress =
false) { capture_in_progress_ = in_progress; tail_at_end_ = in_progress; }
77 void captureFileReadFinished();
79 bool haveNextHistory(
bool update_cur =
false);
80 bool havePreviousHistory(
bool update_cur =
false);
83 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected);
84 void contextMenuEvent(QContextMenuEvent *event);
85 void timerEvent(QTimerEvent *event);
86 void paintEvent(QPaintEvent *event);
87 virtual void mousePressEvent (QMouseEvent *event);
88 virtual void resizeEvent(QResizeEvent *event);
91 void rowsInserted(
const QModelIndex &parent,
int start,
int end);
92 void drawRow(QPainter *painter,
const QStyleOptionViewItem &
option,
const QModelIndex &index)
const;
100 QMenu colorize_menu_;
104 QByteArray column_state_;
106 int overlay_timer_id_;
107 bool create_near_overlay_;
108 bool create_far_overlay_;
109 QVector<QRgb> overlay_colors_;
112 QMenu header_ctx_menu_;
113 QMap<ColumnActions, QAction*> header_actions_;
114 QList<ColumnActions> checkable_actions_;
115 int header_ctx_column_;
116 QAction *show_hide_separator_;
117 QList<QAction *>show_hide_actions_;
118 bool capture_in_progress_;
122 bool columns_changed_;
123 bool set_column_visibility_;
125 QVector<int> selection_history_;
129 void setFrameReftime(gboolean
set,
frame_data *fdata);
130 void setColumnVisibility();
131 int sizeHintForColumn(
int column)
const;
132 void setRecentColumnWidth(
int column);
133 void initHeaderContextMenu();
134 void drawCurrentPacket();
135 void applyRecentColumnWidths();
136 void scrollViewChanged(
bool at_end);
139 void packetDissectionChanged();
140 void showColumnPreferences(QString pane_name);
141 void editColumn(
int column);
142 void packetListScrolled(
bool at_end);
143 void showProtocolPreferences(
const QString module_name);
146 void frameSelected(
int frameNum);
151 void setMonospaceFont(
const QFont &mono_font);
153 void goPreviousPacket();
154 void goFirstPacket(
bool user_selected =
true);
156 void goToPacket(
int packet);
157 void goToPacket(
int packet,
int hf_id);
158 void goNextHistoryPacket();
159 void goPreviousHistoryPacket();
161 void markAllDisplayedFrames(
bool set);
163 void ignoreAllDisplayedFrames(
bool set);
164 void setTimeReference();
165 void unsetAllTimeReferences();
166 void applyTimeShift();
167 void recolorPackets();
168 void redrawVisiblePackets();
169 void redrawVisiblePacketsDontSelectCurrent();
170 void columnsChanged();
172 void preferencesChanged();
175 void showHeaderMenu(QPoint pos);
176 void headerMenuTriggered();
177 void columnVisibilityTriggered();
178 void sectionResized(
int col,
int,
int new_width);
179 void sectionMoved(
int,
int,
int);
180 void updateRowHeights(
const QModelIndex &ih_index);
182 void vScrollBarActionTriggered(
int);
183 void drawFarOverlay();
184 void drawNearOverlay();
187 #endif // PACKET_LIST_H
Definition: packet_list.h:30
Definition: prefs-int.h:27
Definition: proto_tree.h:28
void freeze()
Definition: packet_list.cpp:894
void thaw(bool restore_selection=false)
Definition: packet_list.cpp:911
Definition: packet_list_model.h:31
Definition: frame_data.h:53