Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
PacketListHeader Class Reference

Custom header view for the packet list. More...

#include <packet_list_header.h>

Inheritance diagram for PacketListHeader:

Signals

void resetColumnWidth (int col)
 Signal emitted to reset a column's width.
 
void updatePackets (bool redraw)
 Signal emitted to update the packet list.
 
void showColumnPreferences (QString pane_name)
 Signal emitted to show column preferences.
 
void editColumn (int column)
 Signal emitted to edit a specific column.
 
void columnsChanged ()
 Signal emitted when the columns configuration has changed.
 

Public Member Functions

 PacketListHeader (Qt::Orientation orientation, QWidget *parent=nullptr)
 Constructs a PacketListHeader.
 

Protected Slots

void columnVisibilityTriggered ()
 Slot triggered to toggle column visibility.
 
void setAlignment (QAction *action)
 Sets the alignment of a column.
 
void setDisplayFormat (QAction *action)
 Sets the display format for a column.
 
void showColumnPrefs ()
 Shows the column preferences dialog.
 
void doEditColumn ()
 Initiates editing of the selected column.
 
void resizeToContent ()
 Resizes the column to fit its contents.
 
void removeColumn ()
 Removes the selected column.
 
void resizeToWidth ()
 Prompts to resize the column to a specific width.
 

Protected Member Functions

virtual void dropEvent (QDropEvent *event) override
 Handles drop events.
 
virtual void dragEnterEvent (QDragEnterEvent *event) override
 Handles drag enter events.
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 Handles drag move events.
 
virtual void mouseMoveEvent (QMouseEvent *e) override
 Handles mouse move events.
 
virtual void mousePressEvent (QMouseEvent *e) override
 Handles mouse press events.
 
virtual void contextMenuEvent (QContextMenuEvent *event) override
 Handles context menu events.
 

Detailed Description

Custom header view for the packet list.

Constructor & Destructor Documentation

◆ PacketListHeader()

PacketListHeader::PacketListHeader ( Qt::Orientation  orientation,
QWidget *  parent = nullptr 
)

Constructs a PacketListHeader.

Parameters
orientationThe orientation of the header.
parentThe parent widget.

Member Function Documentation

◆ contextMenuEvent()

void PacketListHeader::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedvirtual

Handles context menu events.

Parameters
eventThe context menu event.

◆ dragEnterEvent()

void PacketListHeader::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Handles drag enter events.

Parameters
eventThe drag enter event.

◆ dragMoveEvent()

void PacketListHeader::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Handles drag move events.

Parameters
eventThe drag move event.

◆ dropEvent()

void PacketListHeader::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Handles drop events.

Parameters
eventThe drop event.

◆ editColumn

void PacketListHeader::editColumn ( int  column)
signal

Signal emitted to edit a specific column.

Parameters
columnThe column index to edit.

◆ mouseMoveEvent()

void PacketListHeader::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Handles mouse move events.

Parameters
eThe mouse event.

◆ mousePressEvent()

void PacketListHeader::mousePressEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Handles mouse press events.

Parameters
eThe mouse event.

◆ resetColumnWidth

void PacketListHeader::resetColumnWidth ( int  col)
signal

Signal emitted to reset a column's width.

Parameters
colThe column index to reset.

◆ setAlignment

void PacketListHeader::setAlignment ( QAction *  action)
protectedslot

Sets the alignment of a column.

Parameters
actionThe action specifying the alignment.

◆ setDisplayFormat

void PacketListHeader::setDisplayFormat ( QAction *  action)
protectedslot

Sets the display format for a column.

Parameters
actionThe action specifying the format.

◆ showColumnPreferences

void PacketListHeader::showColumnPreferences ( QString  pane_name)
signal

Signal emitted to show column preferences.

Parameters
pane_nameThe name of the preference pane to show.

◆ updatePackets

void PacketListHeader::updatePackets ( bool  redraw)
signal

Signal emitted to update the packet list.

Parameters
redrawTrue to force a redraw, false otherwise.

The documentation for this class was generated from the following files: