2021-11-30 13:01:36 +00:00
|
|
|
/** @file
|
2012-12-15 01:04:39 +00:00
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
#ifndef SEARCH_FRAME_H
|
|
|
|
#define SEARCH_FRAME_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2012-12-18 17:21:20 +00:00
|
|
|
#include "accordion_frame.h"
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
#include "cfile.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class SearchFrame;
|
|
|
|
}
|
|
|
|
|
2012-12-18 17:21:20 +00:00
|
|
|
class SearchFrame : public AccordionFrame
|
2012-12-15 01:04:39 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2012-12-15 01:04:39 +00:00
|
|
|
public:
|
|
|
|
explicit SearchFrame(QWidget *parent = 0);
|
|
|
|
~SearchFrame();
|
2012-12-18 17:21:20 +00:00
|
|
|
void animatedShow();
|
2012-12-15 01:04:39 +00:00
|
|
|
void findNext();
|
|
|
|
void findPrevious();
|
2015-11-27 23:09:46 +00:00
|
|
|
void setFocus();
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setCaptureFile(capture_file *cf);
|
|
|
|
void findFrameWithFilter(QString &filter);
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2012-12-15 01:04:39 +00:00
|
|
|
protected:
|
2015-07-09 17:29:21 +00:00
|
|
|
virtual void keyPressEvent(QKeyEvent *event);
|
2015-07-08 23:48:58 +00:00
|
|
|
void changeEvent(QEvent* event);
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
private:
|
2016-02-16 21:34:12 +00:00
|
|
|
bool regexCompile();
|
2019-09-12 10:32:41 +00:00
|
|
|
void applyRecentSearchSettings();
|
2015-02-06 18:36:27 +00:00
|
|
|
void updateWidgets();
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
Ui::SearchFrame *sf_ui_;
|
|
|
|
capture_file *cap_file_;
|
2022-07-27 06:12:27 +00:00
|
|
|
ws_regex_t *regex_;
|
2016-02-16 21:34:12 +00:00
|
|
|
QString regex_error_;
|
2012-12-15 01:04:39 +00:00
|
|
|
|
|
|
|
private slots:
|
2019-09-12 10:32:41 +00:00
|
|
|
void on_searchInComboBox_currentIndexChanged(int idx);
|
|
|
|
void on_charEncodingComboBox_currentIndexChanged(int idx);
|
|
|
|
void on_caseCheckBox_toggled(bool checked);
|
|
|
|
void on_searchTypeComboBox_currentIndexChanged(int idx);
|
2015-02-06 18:36:27 +00:00
|
|
|
void on_searchLineEdit_textChanged(const QString &);
|
2012-12-15 01:04:39 +00:00
|
|
|
void on_findButton_clicked();
|
|
|
|
void on_cancelButton_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SEARCH_FRAME_H
|