Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

display_filter_expression_dialog.h
1 /* display_filter_expression_dialog.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 DISPLAY_FILTER_EXPRESSION_DIALOG_H
11 #define DISPLAY_FILTER_EXPRESSION_DIALOG_H
12
13 #include "config.h"
14
15 #include <epan/ftypes/ftypes.h>
16
17 #include "geometry_state_dialog.h"
18
19 class QTreeWidgetItem;
20 struct true_false_string;
21 struct _value_string;
22 struct _val64_string;
23
24 namespace Ui {
25 class DisplayFilterExpressionDialog;
26 }
27
28 class DisplayFilterExpressionDialog : public GeometryStateDialog
29 {
30 Q_OBJECT
31
32 public:
33 explicit DisplayFilterExpressionDialog(QWidget *parent = 0);
34 ~DisplayFilterExpressionDialog();
35
36 signals:
37 void insertDisplayFilter(const QString &filter);
38
39 private slots:
40 void fillTree();
41 void updateWidgets();
42
43 void on_fieldTreeWidget_itemSelectionChanged();
44 void on_relationListWidget_itemSelectionChanged();
45 void on_enumListWidget_itemSelectionChanged();
46 void on_searchLineEdit_textChanged(const QString &search_re);
47 void on_buttonBox_accepted();
48 void on_buttonBox_helpRequested();
49
50 private:
51 Ui::DisplayFilterExpressionDialog *ui;
52 void fillEnumBooleanValues(const struct true_false_string *tfs);
53 void fillEnumIntValues(const struct _value_string *vals, int base);
54 void fillEnumInt64Values(const struct _val64_string *vals64, int base);
55 void fillEnumRangeValues(const struct _range_string *rvals);
56
57 enum ftenum ftype_;
58 const char *field_;
59 QString value_label_pfx_;
60 };
61
62 #endif // DISPLAY_FILTER_EXPRESSION_DIALOG_H
63
64 /*
65 * Editor modelines
66 *
67 * Local Variables:
68 * c-basic-offset: 4
69 * tab-width: 8
70 * indent-tabs-mode: nil
71 * End:
72 *
73 * ex: set shiftwidth=4 tabstop=8 expandtab:
74 * :indentSize=4:tabSize=8:noTabs=true:
75 */
true_false_string
Definition: tfs.h:26
GeometryStateDialog
Definition: geometry_state_dialog.h:15
Ui
Definition: ui_about_dialog.h:291
_range_string
Definition: value_string.h:234
DisplayFilterExpressionDialog
Definition: display_filter_expression_dialog.h:28
_val64_string
Definition: value_string.h:127
Ui::DisplayFilterExpressionDialog
Definition: ui_display_filter_expression_dialog.h:246
_value_string
Definition: value_string.h:24