Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
search_frame.h
Go to the documentation of this file.
1
10#ifndef SEARCH_FRAME_H
11#define SEARCH_FRAME_H
12
13#include <config.h>
14
15#include "accordion_frame.h"
16
17#include <epan/cfile.h>
18
19#include <QComboBox>
20
21namespace Ui {
22class SearchFrame;
23}
24
31{
32 Q_OBJECT
33
34public:
39 explicit SearchFrame(QWidget *parent = 0);
40
44 virtual ~SearchFrame();
45
49 void animatedShow();
50
54 void findNext();
55
59 void findPrevious();
60
64 void setFocus();
65
66public slots:
72
76 void refreshWidgets();
77
83 void findFrameWithFilter(QString &filter);
84
85protected:
91 virtual void keyPressEvent(QKeyEvent *event);
92
98 void changeEvent(QEvent *event);
99
104 void updateWidgets();
105
110 QComboBox *searchInComboBox() const;
111
112private:
118 bool regexCompile();
119
124 void applyRecentSearchSettings();
125
126 Ui::SearchFrame *sf_ui_;
127 capture_file *cap_file_;
128 ws_regex_t *regex_;
129 QString regex_error_;
131private slots:
137 void on_searchInComboBox_currentIndexChanged(int idx);
138
143 void on_charEncodingComboBox_currentIndexChanged(int idx);
144
149 void on_caseCheckBox_toggled(bool checked);
150
156 void on_searchTypeComboBox_currentIndexChanged(int idx);
157
162 void on_searchLineEdit_textChanged(const QString &);
163
168 void on_dirCheckBox_toggled(bool checked);
169
174 void on_multipleCheckBox_toggled(bool checked);
175
180 void on_inPacketCheckBox_toggled(bool checked);
181
185 void onApplicationFocusChanged(QWidget *old, QWidget *now);
186
190 void on_findButton_clicked();
191
195 void on_cancelButton_clicked();
196};
197
198#endif // SEARCH_FRAME_H
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
Collapsible search bar that allows searching packet data by display filter, hex value,...
Definition search_frame.h:31
void setFocus()
Transfers keyboard focus to the search input field.
Definition search_frame.cpp:121
QComboBox * searchInComboBox() const
Returns the "Search In" combo box widget for use by subclasses or tests.
Definition search_frame.cpp:85
virtual void keyPressEvent(QKeyEvent *event)
Handles key press events; maps Enter/Return to findNext() and Escape to collapsing the frame.
Definition search_frame.cpp:151
void animatedShow()
Expands the frame with an animation and focuses the search input.
Definition search_frame.cpp:90
void changeEvent(QEvent *event)
Responds to language or palette change events by retranslating and refreshing the UI.
Definition search_frame.cpp:626
void findNext()
Navigates to the next frame matching the current search criteria.
Definition search_frame.cpp:97
void refreshWidgets()
Refreshes widget state when external in-packet-find bar visibility changes.
Definition search_frame.cpp:136
void updateWidgets()
Enables or disables UI controls based on the current search type, direction, and validity of the sear...
Definition search_frame.cpp:253
virtual ~SearchFrame()
Destroys the SearchFrame and releases all associated resources.
Definition search_frame.cpp:77
void findFrameWithFilter(QString &filter)
Populates the search field with filter, switches the search type to display filter,...
Definition search_frame.cpp:141
void findPrevious()
Navigates to the previous frame matching the current search criteria.
Definition search_frame.cpp:109
void setCaptureFile(capture_file *cf)
Updates the capture file pointer used for frame searches.
Definition search_frame.cpp:127
Represents a capture file and its associated metadata.
Definition cfile.h:84
Definition regex.c:17