| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
display_filter_expression_dialog.h
Go to the documentation of this file.
1
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#include <QFutureWatcher>
20
21#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
22/* Qt6 introduces QPromise interface that makes it possible to add tree entries
23 * protocol by protocol instead of all at once.
24 */
25#define DISPLAY_FILTER_EXPRESSION_DIALOG_USE_QPROMISE
26#endif
27
28class QTreeWidgetItem;
29struct true_false_string;
30struct _value_string;
31struct _val64_string;
32
33namespace Ui {
34class DisplayFilterExpressionDialog;
35}
36
37 class DisplayFilterExpressionDialog : public GeometryStateDialog
38{
39 Q_OBJECT
40
41public:
42 explicit DisplayFilterExpressionDialog(QWidget *parent = 0);
43 ~DisplayFilterExpressionDialog();
44
45signals:
46 void insertDisplayFilter(const QString &filter);
47
48private slots:
49#ifdef DISPLAY_FILTER_EXPRESSION_DIALOG_USE_QPROMISE
50 void addTreeItem(int result);
51#endif
52 void fillTree();
53 void updateWidgets();
54
55 void on_fieldTreeWidget_itemSelectionChanged();
56 void on_relationListWidget_itemSelectionChanged();
57 void on_enumListWidget_itemSelectionChanged();
58 void on_searchLineEdit_textChanged(const QString &search_re);
59 void on_buttonBox_accepted();
60 void on_buttonBox_helpRequested();
61
62private:
63#ifdef DISPLAY_FILTER_EXPRESSION_DIALOG_USE_QPROMISE
64 QFutureWatcher<QTreeWidgetItem *> *watcher;
65#else
66 QFutureWatcher<QList<QTreeWidgetItem *> *> *watcher;
67#endif
68 Ui::DisplayFilterExpressionDialog *ui;
69 void fillEnumBooleanValues(const struct true_false_string *tfs);
70 void fillEnumIntValues(const struct _value_string *vals, int base);
71 void fillEnumInt64Values(const struct _val64_string *vals64, int base);
72 void fillEnumRangeValues(const struct _range_string *rvals);
73
74 enum ftenum ftype_;
75 const char *field_;
76 QString value_label_pfx_;
77};
78
79#endif // DISPLAY_FILTER_EXPRESSION_DIALOG_H
DisplayFilterExpressionDialog
Definition display_filter_expression_dialog.h:38
GeometryStateDialog
Definition geometry_state_dialog.h:17
ftypes.h
geometry_state_dialog.h
_range_string
Definition value_string.h:570
_val64_string
Mapping between a 64-bit integer value and its string representation.
Definition value_string.h:196
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
true_false_string
Definition tfs.h:27