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

Find bar widget for searching within a specific packet's protocol tree. More...

#include <in_packet_find_bar.h>

Inheritance diagram for InPacketFindBar:

Signals

void matchesChanged ()
 Signal emitted when the search matches are updated.
 

Public Member Functions

 InPacketFindBar (ProtoTree *tree, QWidget *parent=nullptr)
 Constructs a new InPacketFindBar object.
 
 ~InPacketFindBar ()
 Destroys the InPacketFindBar object.
 
void showAnimated ()
 Shows the find bar with an animation.
 
void hideAnimated ()
 Hides the find bar with an animation.
 
void focusSearchField ()
 Sets focus to the search input field.
 
bool isMatch (const QModelIndex &model_index) const
 Checks if a specific model index matches the current search criteria.
 
bool isCurrentMatch (const QModelIndex &model_index) const
 Checks if a specific model index is the currently active/selected match.
 
bool isDarkMode () const
 Checks whether the widget is currently operating in dark mode.
 
int barHeight () const
 Gets the current height of the animated bar.
 
void setBarHeight (int h)
 Sets the height of the animated bar.
 

Static Public Member Functions

static int openInstances ()
 Returns the number of currently open instances of the find bar.
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
 Event filter for handling specific widget events.
 

Properties

int barHeight
 

Detailed Description

Find bar widget for searching within a specific packet's protocol tree.

Constructor & Destructor Documentation

◆ InPacketFindBar()

InPacketFindBar::InPacketFindBar ( ProtoTree tree,
QWidget *  parent = nullptr 
)
explicit

Constructs a new InPacketFindBar object.

Parameters
treeThe protocol tree to search within.
parentThe parent widget.

Member Function Documentation

◆ barHeight()

int InPacketFindBar::barHeight ( ) const

Gets the current height of the animated bar.

Returns
The height in pixels.

◆ eventFilter()

bool InPacketFindBar::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotected

Event filter for handling specific widget events.

Parameters
objObject that received the event.
eventThe event to process.
Returns
true if the event was handled; false to pass it on.

◆ isCurrentMatch()

bool InPacketFindBar::isCurrentMatch ( const QModelIndex &  model_index) const

Checks if a specific model index is the currently active/selected match.

Parameters
model_indexThe model index to check.
Returns
true if it is the current match; false otherwise.

◆ isDarkMode()

bool InPacketFindBar::isDarkMode ( ) const

Checks whether the widget is currently operating in dark mode.

Returns
true if dark mode is active; false otherwise.

◆ isMatch()

bool InPacketFindBar::isMatch ( const QModelIndex &  model_index) const

Checks if a specific model index matches the current search criteria.

Parameters
model_indexThe model index to check.
Returns
true if the index matches; false otherwise.

◆ openInstances()

static int InPacketFindBar::openInstances ( )
inlinestatic

Returns the number of currently open instances of the find bar.

Returns
Number of open instances.

◆ setBarHeight()

void InPacketFindBar::setBarHeight ( int  h)

Sets the height of the animated bar.

Parameters
hThe new height in pixels.

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