Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
filter_expression_frame.h
1 /* filter_expression_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 FILTER_EXPRESSION_FRAME_H
11 #define FILTER_EXPRESSION_FRAME_H
12 
13 #include "accordion_frame.h"
14 
15 namespace Ui {
17 }
18 
20 {
21  Q_OBJECT
22 
23 public:
24  explicit FilterExpressionFrame(QWidget *parent = 0);
26 
27  void addExpression(const QString filter_text);
28  void editExpression(int exprIdx);
29 
30 signals:
31  void showPreferencesDialog(QString pane_name);
32  void filterExpressionsChanged();
33  void pushFilterSyntaxStatus(const QString&);
34 
35 protected:
36  virtual void showEvent(QShowEvent *event);
37  virtual void keyPressEvent(QKeyEvent *event);
38 
39 private:
41 
42  int editExpression_;
43 
44 private slots:
45  void updateWidgets();
46  void on_filterExpressionPreferencesPushButton_clicked();
47  void on_labelLineEdit_textChanged(const QString);
48  void on_displayFilterLineEdit_textChanged(const QString);
49  void on_buttonBox_accepted();
50  void on_buttonBox_rejected();
51 };
52 
53 #endif // FILTER_EXPRESSION_FRAME_H
54 
55 /*
56  * Editor modelines
57  *
58  * Local Variables:
59  * c-basic-offset: 4
60  * tab-width: 8
61  * indent-tabs-mode: nil
62  * End:
63  *
64  * ex: set shiftwidth=4 tabstop=8 expandtab:
65  * :indentSize=4:tabSize=8:noTabs=true:
66  */
Definition: ui_about_dialog.h:291
Definition: filter_expression_frame.h:19
Definition: ui_filter_expression_frame.h:177
Definition: accordion_frame.h:17