46 enum SummaryCopyType {
51 Q_ENUM(SummaryCopyType)
53 virtual void scrollTo(
const QModelIndex &index, QAbstractItemView::ScrollHint hint = EnsureVisible)
override;
54 QMenu *conversationMenu() {
return &conv_menu_; }
55 QMenu *colorizeMenu() {
return &colorize_menu_; }
64 bool freeze(
bool keep_current_frame =
false);
72 bool thaw(
bool restore_selection =
false);
74 void writeRecent(FILE *rf);
75 bool contextMenuActive();
76 QString getFilterFromRowAndColumn(QModelIndex idx);
77 void resetColorized();
78 QString getPacketComment(
unsigned c_number);
79 void addPacketComment(QString new_comment);
80 void setPacketComment(
unsigned c_number, QString new_comment);
81 QString allPacketComments();
82 void deleteCommentsFromPackets();
83 void deleteAllPacketComments();
84 void setVerticalAutoScroll(
bool enabled =
true);
85 void setCaptureInProgress(
bool in_progress =
false,
bool auto_scroll =
true) { capture_in_progress_ = in_progress; tail_at_end_ = in_progress && auto_scroll; }
86 void captureFileReadFinished();
88 bool haveNextHistory(
bool update_cur =
false);
89 bool havePreviousHistory(
bool update_cur =
false);
92 frame_data * getFDataForRow(
int row)
const;
94 bool uniqueSelectActive();
95 bool multiSelectActive();
96 QList<int> selectedRows(
bool useFrameNum =
false);
98 QString createSummaryText(QModelIndex idx, SummaryCopyType type);
99 QString createHeaderSummaryText(SummaryCopyType type);
101 void resizeAllColumns(
bool onlyTimeFormatted =
false);
105 void selectionChanged(
const QItemSelection & selected,
const QItemSelection & deselected)
override;
106 virtual void contextMenuEvent(QContextMenuEvent *event)
override;
107 void timerEvent(QTimerEvent *event)
override;
108 void paintEvent(QPaintEvent *event)
override;
109 virtual void mousePressEvent (QMouseEvent *event)
override;
110 virtual void mouseReleaseEvent (QMouseEvent *event)
override;
111 virtual void mouseMoveEvent (QMouseEvent *event)
override;
112 virtual void resizeEvent(QResizeEvent *event)
override;
113 virtual void keyPressEvent(QKeyEvent *event)
override;
116 void rowsInserted(
const QModelIndex &parent,
int start,
int end)
override;
117 virtual void drawRow(QPainter *painter,
const QStyleOptionViewItem &option,
118 const QModelIndex &index)
const override;
126 QMenu colorize_menu_;
127 QMenu proto_prefs_menus_;
129 QByteArray column_state_;
131 int overlay_timer_id_;
132 bool create_near_overlay_;
133 bool create_far_overlay_;
134 QVector<QRgb> overlay_colors_;
135 bool changing_profile_;
137 QModelIndex mouse_pressed_at_;
140 QAction *show_hide_separator_;
141 QList<QAction *>show_hide_actions_;
142 bool capture_in_progress_;
144 bool columns_changed_;
145 bool set_column_visibility_;
146 bool set_style_sheet_;
147 QModelIndex frozen_current_row_;
148 QModelIndexList frozen_selected_rows_;
149 QVector<int> selection_history_;
152 GPtrArray *finfo_array;
155 void setFrameReftime(
bool set, frame_data *fdata);
156 void setColumnVisibility();
157 int sizeHintForColumn(
int column)
const override;
158 void setRecentColumnWidth(
int column);
159 void drawCurrentPacket();
160 void applyRecentColumnWidths();
161 void scrollViewChanged(
bool at_end);
162 QString joinSummaryRow(QStringList col_parts,
int row, SummaryCopyType type);
165 void packetDissectionChanged();
166 void showColumnPreferences(QString pane_name);
167 void editColumn(
int column);
168 void packetListScrolled(
bool at_end);
169 void showProtocolPreferences(
const QString module_name);
172 void framesSelected(QList<int>);
177 void setMonospaceFont(
const QFont &mono_font);
179 void goPreviousPacket();
180 void goFirstPacket();
182 void goToPacket(
int packet,
int hf_id = -1);
183 void goNextHistoryPacket();
184 void goPreviousHistoryPacket();
186 void markAllDisplayedFrames(
bool set);
188 void ignoreAllDisplayedFrames(
bool set);
189 void setTimeReference();
190 void unsetAllTimeReferences();
191 void applyTimeShift();
192 void recolorPackets();
193 void redrawVisiblePackets();
194 void redrawVisiblePacketsDontSelectCurrent();
195 void colorsChanged();
196 void columnsChanged();
198 void preferencesChanged();
199 void freezePacketList(
bool changing_profile);
202 void columnVisibilityTriggered();
203 void sectionResized(
int col,
int,
int new_width);
204 void sectionMoved(
int,
int,
int);
205 void updateRowHeights(
const QModelIndex &ih_index);
207 void vScrollBarActionTriggered(
int);
208 void drawFarOverlay();
209 void drawNearOverlay();
210 void updatePackets(
bool redraw);
211 void ctxDecodeAsDialog();
Definition: packet_list.h:40
bool freeze(bool keep_current_frame=false)
Definition: packet_list.cpp:1268
bool thaw(bool restore_selection=false)
Definition: packet_list.cpp:1296
Definition: packet_list_model.h:32
Definition: profile_switcher.h:28
Definition: proto_tree.h:29
Definition: prefs-int.h:27