summaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /ui/qt/packet_list.h
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/packet_list.h')
-rw-r--r--ui/qt/packet_list.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/ui/qt/packet_list.h b/ui/qt/packet_list.h
index 2b025e25..8667bf5e 100644
--- a/ui/qt/packet_list.h
+++ b/ui/qt/packet_list.h
@@ -24,6 +24,7 @@
class PacketListHeader;
class OverlayScrollBar;
+class ProfileSwitcher;
class QAction;
class QTimerEvent;
@@ -49,6 +50,7 @@ public:
};
Q_ENUM(SummaryCopyType)
+ virtual void scrollTo(const QModelIndex &index, QAbstractItemView::ScrollHint hint = EnsureVisible) override;
QMenu *conversationMenu() { return &conv_menu_; }
QMenu *colorizeMenu() { return &colorize_menu_; }
void setProtoTree(ProtoTree *proto_tree);
@@ -73,9 +75,9 @@ public:
bool contextMenuActive();
QString getFilterFromRowAndColumn(QModelIndex idx);
void resetColorized();
- QString getPacketComment(guint c_number);
+ QString getPacketComment(unsigned c_number);
void addPacketComment(QString new_comment);
- void setPacketComment(guint c_number, QString new_comment);
+ void setPacketComment(unsigned c_number, QString new_comment);
QString allPacketComments();
void deleteCommentsFromPackets();
void deleteAllPacketComments();
@@ -85,6 +87,7 @@ public:
void resetColumns();
bool haveNextHistory(bool update_cur = false);
bool havePreviousHistory(bool update_cur = false);
+ void setProfileSwitcher(ProfileSwitcher *profile_switcher);
frame_data * getFDataForRow(int row) const;
@@ -147,15 +150,15 @@ private:
int cur_history_;
bool in_history_;
GPtrArray *finfo_array; // Packet data from the last selected packet entry
+ ProfileSwitcher *profile_switcher_;
- void setFrameReftime(gboolean set, frame_data *fdata);
+ void setFrameReftime(bool set, frame_data *fdata);
void setColumnVisibility();
int sizeHintForColumn(int column) const override;
void setRecentColumnWidth(int column);
void drawCurrentPacket();
void applyRecentColumnWidths();
void scrollViewChanged(bool at_end);
- void colorsChanged();
QString joinSummaryRow(QStringList col_parts, int row, SummaryCopyType type);
signals:
@@ -172,6 +175,7 @@ signals:
public slots:
void setCaptureFile(capture_file *cf);
void setMonospaceFont(const QFont &mono_font);
+ void setRegularFont(const QFont &regular_font);
void goNextPacket();
void goPreviousPacket();
void goFirstPacket();
@@ -189,6 +193,7 @@ public slots:
void recolorPackets();
void redrawVisiblePackets();
void redrawVisiblePacketsDontSelectCurrent();
+ void colorsChanged();
void columnsChanged();
void fieldsChanged(capture_file *cf);
void preferencesChanged();