88 bool inPacketMode()
const;
141 bool eventFilter(QObject *obj, QEvent *event)
override;
155 void applyRecentSearchSettings();
160 void executeInPacketSearch();
165 void advanceInPacketSearch(
bool backward);
170 void refreshInPacketSearchForSelectedFrame();
175 int searchTypeIndex()
const;
180 void configureSearchTypeComboBox(
bool in_packet_mode);
185 void applySearchLineEditForSearchType(
int search_type);
190 void saveRecentSearchType(
int search_type);
195 void updateSearchTypeToolTip(
int combo_index);
200 void updateInPacketSearchSyntax();
205 void updateInPacketFindCounter();
208 QTimer *in_packet_debounce_timer_;
209 Ui::SearchFrame *sf_ui_;
212 QString regex_error_;
213 QString in_packet_last_pattern_;
214 QString full_search_type_tooltip_;
215 QString in_packet_string_tooltip_;
216 QString in_packet_regex_tooltip_;
217 bool packet_selected_;
219 int last_searched_frame_;
220 int saved_full_search_type_;
228 void on_searchInComboBox_currentIndexChanged(
int idx);
234 void on_charEncodingComboBox_currentIndexChanged(
int idx);
240 void on_caseCheckBox_toggled(
bool checked);
247 void on_searchTypeComboBox_currentIndexChanged(
int idx);
253 void on_searchLineEdit_textChanged(
const QString &);
259 void on_dirCheckBox_toggled(
bool checked);
265 void on_multipleCheckBox_toggled(
bool checked);
271 void inPacketCheckBoxToggled(
bool checked);
276 void onApplicationFocusChanged(QWidget *old, QWidget *now);
281 void executeSearch();
struct _capture_file capture_file
Represents a capture file and its associated metadata.
AccordionFrame(QWidget *parent=0)
Create an AccordionFrame with the given parent.
Definition accordion_frame.cpp:22
Search-within-current-packet logic shared by Find Packet (main window) and InPacketFindBar (single-pa...
Definition in_packet_search.h:24
void setFocus()
Transfers keyboard focus to the search input field.
Definition search_frame.cpp:274
QComboBox * searchInComboBox() const
Returns the "Search In" combo box widget for use by subclasses or tests.
Definition search_frame.cpp:122
void setInPacketSearch(InPacketSearch *search)
Attach in-packet search engine for the main-window proto tree.
Definition search_frame.cpp:127
void animatedShow()
Expands the frame with an animation and focuses the search input.
Definition search_frame.cpp:203
void findNext()
Navigates to the next frame matching the current search criteria.
Definition search_frame.cpp:210
void refreshWidgets()
Refreshes widget enablement and validation state.
Definition search_frame.cpp:289
void updateWidgets()
Enables or disables UI controls based on the current search type, direction, and validity of the sear...
Definition search_frame.cpp:496
void setInPacketMode(bool enabled)
Enable or disable in-packet search mode on the Find toolbar.
Definition search_frame.cpp:136
virtual void keyPressEvent(QKeyEvent *event) override
Handles key press events; maps Enter/Return to findNext() and Escape to collapsing the frame.
Definition search_frame.cpp:320
SearchFrame(QWidget *parent=0)
Constructs a SearchFrame in its collapsed (hidden) state.
Definition search_frame.cpp:52
void setSelectedFrames(const QList< int > &frames, bool single_selected)
Reflect packet list selection for in-packet find.
Definition search_frame.cpp:148
virtual ~SearchFrame()
Destroys the SearchFrame and releases all associated resources.
Definition search_frame.cpp:114
void findFrameWithFilter(QString &filter)
Populates the search field with filter, switches the search type to display filter,...
Definition search_frame.cpp:294
void cancelSearch()
Collapses the search frame and clears any active search highlight.
Definition search_frame.cpp:1045
void findPrevious()
Navigates to the previous frame matching the current search criteria.
Definition search_frame.cpp:242
void setCaptureFile(capture_file *cf)
Updates the capture file pointer used for frame searches.
Definition search_frame.cpp:280
void changeEvent(QEvent *event) override
Responds to language or palette change events by retranslating and refreshing the UI.
Definition search_frame.cpp:1064