Find bar widget for searching within a specific packet's protocol tree.
More...
#include <in_packet_find_bar.h>
|
|
void | matchesChanged () |
| | Signal emitted when the search matches are updated.
|
| |
|
| | 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 int | openInstances () |
| | Returns the number of currently open instances of the find bar.
|
| |
|
| bool | eventFilter (QObject *obj, QEvent *event) override |
| | Event filter for handling specific widget events.
|
| |
Find bar widget for searching within a specific packet's protocol tree.
◆ InPacketFindBar()
| InPacketFindBar::InPacketFindBar |
( |
ProtoTree * |
tree, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Constructs a new InPacketFindBar object.
- Parameters
-
| tree | The protocol tree to search within. |
| parent | The parent widget. |
◆ 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
-
| obj | Object that received the event. |
| event | The 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_index | The 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_index | The 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
-
| h | The new height in pixels. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/in_packet_find_bar.h
- /builds/wireshark/wireshark/ui/qt/in_packet_find_bar.cpp