| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet_list_header.h
Go to the documentation of this file.
1
9
10#ifndef UI_QT_WIDGETS_PACKET_LIST_HEADER_H_
11#define UI_QT_WIDGETS_PACKET_LIST_HEADER_H_
12
13#include <epan/cfile.h>
14
15#include <QDrag>
16#include <QMenu>
17
18#include <ui/qt/widgets/adaptive_header_view.h>
19
20 class QEvent;
21
25 class PacketListHeader : public AdaptiveHeaderView
26{
27 Q_OBJECT
28
29 public:
35 PacketListHeader(Qt::Orientation orientation, QWidget *parent = nullptr);
36
37 protected:
42 virtual void dropEvent(QDropEvent *event) override;
43
48 virtual void dragEnterEvent(QDragEnterEvent *event) override;
49
54 virtual void dragMoveEvent(QDragMoveEvent *event) override;
55
60 virtual void mouseMoveEvent(QMouseEvent *e) override;
61
66 virtual void mousePressEvent(QMouseEvent *e) override;
67
72 virtual void contextMenuEvent(QContextMenuEvent *event) override;
73
74 protected slots:
78 void columnVisibilityTriggered();
79
84 void setAlignment(QAction *action);
85
90 void setDisplayFormat(QAction *action);
91
95 void showColumnPrefs();
96
100 void doEditColumn();
101
105 void resizeToContent();
106
110 void removeColumn();
111
115 void resizeToWidth();
116
117signals:
122 void resetColumnWidth(int col);
123
128 void updatePackets(bool redraw);
129
134 void showColumnPreferences(QString pane_name);
135
140 void editColumn(int column);
141
145 void columnsChanged();
146
147 private:
148 int sectionIdx;
149};
150
151#endif
adaptive_header_view.h
cfile.h
AdaptiveHeaderView::AdaptiveHeaderView
AdaptiveHeaderView(Qt::Orientation orientation, QWidget *parent=nullptr)
Constructs an AdaptiveHeaderView.
Definition adaptive_header_view.cpp:19
PacketListHeader::mousePressEvent
virtual void mousePressEvent(QMouseEvent *e) override
Handles mouse press events.
Definition packet_list_header.cpp:116
PacketListHeader::setDisplayFormat
void setDisplayFormat(QAction *action)
Sets the display format for a column.
Definition packet_list_header.cpp:314
PacketListHeader::editColumn
void editColumn(int column)
Signal emitted to edit a specific column.
PacketListHeader::contextMenuEvent
virtual void contextMenuEvent(QContextMenuEvent *event) override
Handles context menu events.
Definition packet_list_header.cpp:153
PacketListHeader::dragMoveEvent
virtual void dragMoveEvent(QDragMoveEvent *event) override
Handles drag move events.
Definition packet_list_header.cpp:62
PacketListHeader::resizeToWidth
void resizeToWidth()
Prompts to resize the column to a specific width.
Definition packet_list_header.cpp:366
PacketListHeader::updatePackets
void updatePackets(bool redraw)
Signal emitted to update the packet list.
PacketListHeader::resetColumnWidth
void resetColumnWidth(int col)
Signal emitted to reset a column's width.
PacketListHeader::showColumnPreferences
void showColumnPreferences(QString pane_name)
Signal emitted to show column preferences.
PacketListHeader::setAlignment
void setAlignment(QAction *action)
Sets the alignment of a column.
Definition packet_list_header.cpp:277
PacketListHeader::removeColumn
void removeColumn()
Removes the selected column.
Definition packet_list_header.cpp:347
PacketListHeader::showColumnPrefs
void showColumnPrefs()
Shows the column preferences dialog.
Definition packet_list_header.cpp:295
PacketListHeader::columnsChanged
void columnsChanged()
Signal emitted when the columns configuration has changed.
PacketListHeader::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *event) override
Handles drag enter events.
Definition packet_list_header.cpp:43
PacketListHeader::PacketListHeader
PacketListHeader(Qt::Orientation orientation, QWidget *parent=nullptr)
Constructs a PacketListHeader.
Definition packet_list_header.cpp:33
PacketListHeader::resizeToContent
void resizeToContent()
Resizes the column to fit its contents.
Definition packet_list_header.cpp:331
PacketListHeader::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *e) override
Handles mouse move events.
Definition packet_list_header.cpp:129
PacketListHeader::dropEvent
virtual void dropEvent(QDropEvent *event) override
Handles drop events.
Definition packet_list_header.cpp:81
PacketListHeader::columnVisibilityTriggered
void columnVisibilityTriggered()
Slot triggered to toggle column visibility.
Definition packet_list_header.cpp:258
PacketListHeader::doEditColumn
void doEditColumn()
Initiates editing of the selected column.
Definition packet_list_header.cpp:300