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

A combo box widget tailored for entering, evaluating, and storing display filters. More...

#include <display_filter_combo.h>

Inheritance diagram for DisplayFilterCombo:

Public Slots

bool checkDisplayFilter ()
 Validates the syntax of the currently entered display filter.
 
void applyDisplayFilter ()
 Applies the currently entered display filter.
 
void setDisplayFilter (QString filter)
 Sets the text of the display filter input.
 

Public Member Functions

 DisplayFilterCombo (QWidget *parent=0)
 Constructs a new DisplayFilterCombo widget.
 
bool addRecentCapture (const char *filter)
 Adds a display filter to the list of recently used captures.
 
void writeRecent (FILE *rf)
 Writes the list of recent display filters to a given file handle.
 
void updateStyleSheet ()
 Updates the widget's style sheet based on its current syntax validation state.
 

Protected Member Functions

void rowsInserted (const QModelIndex &, int first, int last)
 Handles the insertion of rows into the combo box's model.
 
virtual bool event (QEvent *event)
 Handles general events directed to the combo box.
 

Detailed Description

A combo box widget tailored for entering, evaluating, and storing display filters.

Constructor & Destructor Documentation

◆ DisplayFilterCombo()

DisplayFilterCombo::DisplayFilterCombo ( QWidget *  parent = 0)
explicit

Constructs a new DisplayFilterCombo widget.

Parameters
parentThe parent widget, defaults to 0.

Member Function Documentation

◆ addRecentCapture()

bool DisplayFilterCombo::addRecentCapture ( const char *  filter)

Adds a display filter to the list of recently used captures.

Parameters
filterThe filter string to add.
Returns
True if the filter was successfully added, false otherwise.

◆ checkDisplayFilter

bool DisplayFilterCombo::checkDisplayFilter ( )
slot

Validates the syntax of the currently entered display filter.

Returns
True if the filter syntax is valid, false otherwise.

◆ event()

bool DisplayFilterCombo::event ( QEvent *  event)
protectedvirtual

Handles general events directed to the combo box.

Parameters
eventThe event to be handled.
Returns
True if the event was handled successfully, false otherwise.

◆ rowsInserted()

void DisplayFilterCombo::rowsInserted ( const QModelIndex &  ,
int  first,
int  last 
)
protected

Handles the insertion of rows into the combo box's model.

Parameters
firstThe starting row index.
lastThe ending row index.

◆ setDisplayFilter

void DisplayFilterCombo::setDisplayFilter ( QString  filter)
slot

Sets the text of the display filter input.

Parameters
filterThe display filter string to set.

◆ writeRecent()

void DisplayFilterCombo::writeRecent ( FILE *  rf)

Writes the list of recent display filters to a given file handle.

Parameters
rfPointer to the open file where recent filters will be written.

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