Wireshark  4.3.0
The Wireshark network protocol analyzer
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 "cfile.h"
18 
19 namespace Ui {
20 class SearchFrame;
21 }
22 
24 {
25  Q_OBJECT
26 
27 public:
28  explicit SearchFrame(QWidget *parent = 0);
29  ~SearchFrame();
30  void animatedShow();
31  void findNext();
32  void findPrevious();
33  void setFocus();
34 
35 public slots:
36  void setCaptureFile(capture_file *cf);
37  void findFrameWithFilter(QString &filter);
38 
39 protected:
40  virtual void keyPressEvent(QKeyEvent *event);
41  void changeEvent(QEvent* event);
42 
43 private:
44  bool regexCompile();
45  void applyRecentSearchSettings();
46  void updateWidgets();
47 
48  Ui::SearchFrame *sf_ui_;
49  capture_file *cap_file_;
50  ws_regex_t *regex_;
51  QString regex_error_;
52 
53 private slots:
54  void on_searchInComboBox_currentIndexChanged(int idx);
55  void on_charEncodingComboBox_currentIndexChanged(int idx);
56  void on_caseCheckBox_toggled(bool checked);
57  void on_searchTypeComboBox_currentIndexChanged(int idx);
58  void on_searchLineEdit_textChanged(const QString &);
59  void on_dirCheckBox_toggled(bool checked);
60  void on_multipleCheckBox_toggled(bool checked);
61  void on_findButton_clicked();
62  void on_cancelButton_clicked();
63 };
64 
65 #endif // SEARCH_FRAME_H
Definition: accordion_frame.h:18
Definition: search_frame.h:24
Definition: cfile.h:67
Definition: regex.c:17