Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
find_line_edit.h
1 /* find_line_edit.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 FIND_LINE_EDIT_H
11 #define FIND_LINE_EDIT_H
12 
13 #include <QLineEdit>
14 
15 namespace Ui {
16 class FindLineEdit;
17 }
18 
19 class FindLineEdit : public QLineEdit
20 {
21  Q_OBJECT
22 
23 public:
24  explicit FindLineEdit(QWidget *parent = 0) : QLineEdit(parent), use_regex_(false) { }
25  ~FindLineEdit() { }
26 
27 signals:
28  void useRegexFind(bool);
29 
30 private slots:
31  void setUseTextual();
32  void setUseRegex();
33 
34 private:
35  void contextMenuEvent(QContextMenuEvent *event);
36  void keyPressEvent(QKeyEvent *event);
37  void validateText();
38 
39  bool use_regex_;
40 };
41 
42 #endif // FIND_LINE_EDIT_H
43 
44 /*
45  * Editor modelines - http://www.wireshark.org/tools/modelines.html
46  *
47  * Local variables:
48  * c-basic-offset: 4
49  * tab-width: 8
50  * indent-tabs-mode: nil
51  * End:
52  *
53  * vi: set shiftwidth=4 tabstop=8 expandtab:
54  * :indentSize=4:tabSize=8:noTabs=true:
55  */
Definition: ui_about_dialog.h:291
Definition: find_line_edit.h:19