Fix comment end after SPDX identifier
[gd/wireshark/.git] / ui / qt / search_frame.h
1 /* search_frame.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9
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
23 class SearchFrame : public AccordionFrame
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 signals:
40     void pushFilterSyntaxStatus(const QString&);
41
42 protected:
43     virtual void keyPressEvent(QKeyEvent *event);
44     void changeEvent(QEvent* event);
45
46 private:
47     bool regexCompile();
48     void updateWidgets();
49
50     Ui::SearchFrame *sf_ui_;
51     capture_file *cap_file_;
52     GRegex *regex_;
53     QString regex_error_;
54
55 private slots:
56     void on_caseCheckBox_toggled(bool);
57     void on_searchTypeComboBox_currentIndexChanged(int);
58     void on_searchLineEdit_textChanged(const QString &);
59     void on_findButton_clicked();
60     void on_cancelButton_clicked();
61 };
62
63 #endif // SEARCH_FRAME_H
64
65 /*
66  * Editor modelines
67  *
68  * Local Variables:
69  * c-basic-offset: 4
70  * tab-width: 8
71  * indent-tabs-mode: nil
72  * End:
73  *
74  * ex: set shiftwidth=4 tabstop=8 expandtab:
75  * :indentSize=4:tabSize=8:noTabs=true:
76  */