| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
display_filter_expression_dialog.h
Go to the documentation of this file.
1
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#include <QFutureWatcher>
20
21 class QTreeWidgetItem;
22 struct true_false_string;
23 struct _value_string;
24 struct _val64_string;
25
26 namespace Ui {
27 class DisplayFilterExpressionDialog;
28}
29
33 class DisplayFilterExpressionDialog : public GeometryStateDialog
34{
35 Q_OBJECT
36
37 public:
42 explicit DisplayFilterExpressionDialog(QWidget *parent = 0);
43
47 ~DisplayFilterExpressionDialog();
48
49signals:
54 void insertDisplayFilter(const QString &filter);
55
56 private slots:
61 void addTreeItem(int result);
62
66 void fillTree();
67
71 void updateWidgets();
72
76 void on_fieldTreeWidget_itemSelectionChanged();
77
81 void on_relationListWidget_itemSelectionChanged();
82
86 void on_enumListWidget_itemSelectionChanged();
87
92 void on_searchLineEdit_textChanged(const QString &search_re);
93
97 void on_buttonBox_accepted();
98
102 void on_buttonBox_helpRequested();
103
104 private:
106 QFutureWatcher<QTreeWidgetItem *> *watcher;
107
109 Ui::DisplayFilterExpressionDialog *ui;
110
115 void fillEnumBooleanValues(const struct true_false_string *tfs);
116
122 void fillEnumIntValues(const struct _value_string *vals, int base);
123
129 void fillEnumInt64Values(const struct _val64_string *vals64, int base);
130
135 void fillEnumRangeValues(const struct _range_string *rvals);
136
138 enum ftenum ftype_;
139
141 const char *field_;
142
144 QString value_label_pfx_;
145};
146
147#endif // DISPLAY_FILTER_EXPRESSION_DIALOG_H
DisplayFilterExpressionDialog::~DisplayFilterExpressionDialog
~DisplayFilterExpressionDialog()
Destroys the DisplayFilterExpressionDialog.
Definition display_filter_expression_dialog.cpp:163
DisplayFilterExpressionDialog::DisplayFilterExpressionDialog
DisplayFilterExpressionDialog(QWidget *parent=0)
Constructs a new DisplayFilterExpressionDialog.
Definition display_filter_expression_dialog.cpp:109
DisplayFilterExpressionDialog::insertDisplayFilter
void insertDisplayFilter(const QString &filter)
Signal emitted to insert a constructed display filter string into the target editor.
GeometryStateDialog::GeometryStateDialog
GeometryStateDialog(QWidget *parent, Qt::WindowFlags f=Qt::Window)
Constructs a new GeometryStateDialog with the specified parent and window flags.
Definition geometry_state_dialog.h:91
ftypes.h
ftenum
ftenum
Fundamental field value types used throughout the Wireshark dissector framework.
Definition ftypes.h:26
geometry_state_dialog.h
_range_string
Maps an inclusive numeric range to a string value, used for table-driven range-to-string lookups.
Definition value_string.h:646
_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:24