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
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;
30struct _value_string;
31struct _val64_string;
32
33namespace Ui {
35}
36
41{
42 Q_OBJECT
43
44public:
49 explicit DisplayFilterExpressionDialog(QWidget *parent = 0);
50
55
56signals:
61 void insertDisplayFilter(const QString &filter);
62
63private slots:
64#ifdef DISPLAY_FILTER_EXPRESSION_DIALOG_USE_QPROMISE
69 void addTreeItem(int result);
70#endif
71
75 void fillTree();
76
80 void updateWidgets();
81
85 void on_fieldTreeWidget_itemSelectionChanged();
86
90 void on_relationListWidget_itemSelectionChanged();
91
95 void on_enumListWidget_itemSelectionChanged();
96
101 void on_searchLineEdit_textChanged(const QString &search_re);
102
106 void on_buttonBox_accepted();
107
111 void on_buttonBox_helpRequested();
112
113private:
114#ifdef DISPLAY_FILTER_EXPRESSION_DIALOG_USE_QPROMISE
116 QFutureWatcher<QTreeWidgetItem *> *watcher;
117#else
119 QFutureWatcher<QList<QTreeWidgetItem *> *> *watcher;
120#endif
121
123 Ui::DisplayFilterExpressionDialog *ui;
124
129 void fillEnumBooleanValues(const struct true_false_string *tfs);
130
136 void fillEnumIntValues(const struct _value_string *vals, int base);
137
143 void fillEnumInt64Values(const struct _val64_string *vals64, int base);
144
149 void fillEnumRangeValues(const struct _range_string *rvals);
150
152 enum ftenum ftype_;
153
155 const char *field_;
156
158 QString value_label_pfx_;
159};
160
161#endif // DISPLAY_FILTER_EXPRESSION_DIALOG_H
A dialog to assist users in building and selecting display filter expressions.
Definition display_filter_expression_dialog.h:41
~DisplayFilterExpressionDialog()
Destroys the DisplayFilterExpressionDialog.
Definition display_filter_expression_dialog.cpp:192
void insertDisplayFilter(const QString &filter)
Signal emitted to insert a constructed display filter string into the target editor.
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
ftenum
Fundamental field value types used throughout the Wireshark dissector framework.
Definition ftypes.h:26
Definition value_string.h:640
Mapping between a 64-bit integer value and its string representation.
Definition value_string.h:196
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
Definition tfs.h:24