9 #ifndef UI_DISPLAY_FILTER_EXPRESSION_DIALOG_H 10 #define UI_DISPLAY_FILTER_EXPRESSION_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QListWidget> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QTreeWidget> 25 #include <QtWidgets/QVBoxLayout> 26 #include "widgets/display_filter_edit.h" 33 QVBoxLayout *verticalLayout_2;
34 QHBoxLayout *horizontalLayout_2;
35 QVBoxLayout *verticalLayout;
37 QTreeWidget *fieldTreeWidget;
38 QHBoxLayout *horizontalLayout;
40 QLineEdit *searchLineEdit;
41 QVBoxLayout *verticalLayout_6;
42 QVBoxLayout *relationLayout;
43 QLabel *relationLabel;
44 QListWidget *relationListWidget;
45 QSpacerItem *verticalSpacer;
46 QVBoxLayout *valueLayout;
48 QLineEdit *valueLineEdit;
49 QVBoxLayout *enumLayout;
51 QListWidget *enumListWidget;
52 QSpacerItem *verticalSpacer_2;
53 QVBoxLayout *rangeLayout;
55 QLineEdit *rangeLineEdit;
58 QDialogButtonBox *buttonBox;
62 if (DisplayFilterExpressionDialog->objectName().isEmpty())
63 DisplayFilterExpressionDialog->setObjectName(QStringLiteral(
"DisplayFilterExpressionDialog"));
64 DisplayFilterExpressionDialog->resize(657, 588);
65 verticalLayout_2 =
new QVBoxLayout(DisplayFilterExpressionDialog);
66 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
67 horizontalLayout_2 =
new QHBoxLayout();
68 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
69 verticalLayout =
new QVBoxLayout();
70 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
71 fieldLabel =
new QLabel(DisplayFilterExpressionDialog);
72 fieldLabel->setObjectName(QStringLiteral(
"fieldLabel"));
74 verticalLayout->addWidget(fieldLabel);
76 fieldTreeWidget =
new QTreeWidget(DisplayFilterExpressionDialog);
77 QTreeWidgetItem *__qtreewidgetitem =
new QTreeWidgetItem();
78 __qtreewidgetitem->setText(0, QStringLiteral(
"1"));
79 fieldTreeWidget->setHeaderItem(__qtreewidgetitem);
80 fieldTreeWidget->setObjectName(QStringLiteral(
"fieldTreeWidget"));
81 fieldTreeWidget->setUniformRowHeights(
true);
82 fieldTreeWidget->setHeaderHidden(
true);
84 verticalLayout->addWidget(fieldTreeWidget);
86 horizontalLayout =
new QHBoxLayout();
87 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
88 searchLabel =
new QLabel(DisplayFilterExpressionDialog);
89 searchLabel->setObjectName(QStringLiteral(
"searchLabel"));
91 horizontalLayout->addWidget(searchLabel);
93 searchLineEdit =
new QLineEdit(DisplayFilterExpressionDialog);
94 searchLineEdit->setObjectName(QStringLiteral(
"searchLineEdit"));
96 horizontalLayout->addWidget(searchLineEdit);
99 verticalLayout->addLayout(horizontalLayout);
102 horizontalLayout_2->addLayout(verticalLayout);
104 verticalLayout_6 =
new QVBoxLayout();
105 verticalLayout_6->setObjectName(QStringLiteral(
"verticalLayout_6"));
106 relationLayout =
new QVBoxLayout();
107 relationLayout->setObjectName(QStringLiteral(
"relationLayout"));
108 relationLabel =
new QLabel(DisplayFilterExpressionDialog);
109 relationLabel->setObjectName(QStringLiteral(
"relationLabel"));
111 relationLayout->addWidget(relationLabel);
113 relationListWidget =
new QListWidget(DisplayFilterExpressionDialog);
114 relationListWidget->setObjectName(QStringLiteral(
"relationListWidget"));
116 relationLayout->addWidget(relationListWidget);
119 verticalLayout_6->addLayout(relationLayout);
121 verticalSpacer =
new QSpacerItem(20, 12, QSizePolicy::Minimum, QSizePolicy::Expanding);
123 verticalLayout_6->addItem(verticalSpacer);
125 valueLayout =
new QVBoxLayout();
126 valueLayout->setObjectName(QStringLiteral(
"valueLayout"));
127 valueLabel =
new QLabel(DisplayFilterExpressionDialog);
128 valueLabel->setObjectName(QStringLiteral(
"valueLabel"));
130 valueLayout->addWidget(valueLabel);
132 valueLineEdit =
new QLineEdit(DisplayFilterExpressionDialog);
133 valueLineEdit->setObjectName(QStringLiteral(
"valueLineEdit"));
135 valueLayout->addWidget(valueLineEdit);
138 verticalLayout_6->addLayout(valueLayout);
140 enumLayout =
new QVBoxLayout();
141 enumLayout->setObjectName(QStringLiteral(
"enumLayout"));
142 enumLabel =
new QLabel(DisplayFilterExpressionDialog);
143 enumLabel->setObjectName(QStringLiteral(
"enumLabel"));
145 enumLayout->addWidget(enumLabel);
147 enumListWidget =
new QListWidget(DisplayFilterExpressionDialog);
148 enumListWidget->setObjectName(QStringLiteral(
"enumListWidget"));
150 enumLayout->addWidget(enumListWidget);
153 verticalLayout_6->addLayout(enumLayout);
155 verticalSpacer_2 =
new QSpacerItem(20, 12, QSizePolicy::Minimum, QSizePolicy::Expanding);
157 verticalLayout_6->addItem(verticalSpacer_2);
159 rangeLayout =
new QVBoxLayout();
160 rangeLayout->setObjectName(QStringLiteral(
"rangeLayout"));
161 rangeLabel =
new QLabel(DisplayFilterExpressionDialog);
162 rangeLabel->setObjectName(QStringLiteral(
"rangeLabel"));
164 rangeLayout->addWidget(rangeLabel);
166 rangeLineEdit =
new QLineEdit(DisplayFilterExpressionDialog);
167 rangeLineEdit->setObjectName(QStringLiteral(
"rangeLineEdit"));
169 rangeLayout->addWidget(rangeLineEdit);
172 verticalLayout_6->addLayout(rangeLayout);
174 verticalLayout_6->setStretch(1, 1);
175 verticalLayout_6->setStretch(3, 4);
176 verticalLayout_6->setStretch(4, 1);
178 horizontalLayout_2->addLayout(verticalLayout_6);
181 verticalLayout_2->addLayout(horizontalLayout_2);
184 displayFilterLineEdit->setObjectName(QStringLiteral(
"displayFilterLineEdit"));
185 displayFilterLineEdit->setReadOnly(
true);
187 verticalLayout_2->addWidget(displayFilterLineEdit);
189 hintLabel =
new QLabel(DisplayFilterExpressionDialog);
190 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
191 hintLabel->setWordWrap(
true);
193 verticalLayout_2->addWidget(hintLabel);
195 buttonBox =
new QDialogButtonBox(DisplayFilterExpressionDialog);
196 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
197 buttonBox->setOrientation(Qt::Horizontal);
198 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);
200 verticalLayout_2->addWidget(buttonBox);
203 retranslateUi(DisplayFilterExpressionDialog);
204 QObject::connect(buttonBox, SIGNAL(accepted()), DisplayFilterExpressionDialog, SLOT(accept()));
205 QObject::connect(buttonBox, SIGNAL(rejected()), DisplayFilterExpressionDialog, SLOT(reject()));
207 QMetaObject::connectSlotsByName(DisplayFilterExpressionDialog);
210 void retranslateUi(QDialog *DisplayFilterExpressionDialog)
212 DisplayFilterExpressionDialog->setWindowTitle(QApplication::translate(
"DisplayFilterExpressionDialog",
"Dialog", 0));
213 #ifndef QT_NO_TOOLTIP 214 fieldLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"Select a field to start building a display filter.", 0));
215 #endif // QT_NO_TOOLTIP 216 fieldLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Field Name", 0));
217 #ifndef QT_NO_TOOLTIP 218 searchLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"<html><head/><body><p>Search the list of field names.</p></body></html>", 0));
219 #endif // QT_NO_TOOLTIP 220 searchLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Search:", 0));
221 #ifndef QT_NO_TOOLTIP 222 relationLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"<html><head/><body><p>Relations can be used to restrict fields to specific values. Each relation does the following:</p><table border=\"0\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;\" cellspacing=\"2\" cellpadding=\"0\"><tr><td><p align=\"center\"><span style=\" font-weight:600;\">is present</span></p></td><td><p>Match any packet that contains this field</p></td></tr><tr><td><p align=\"center\"><span style=\" font-weight:600;\">==, !=, etc.</span></p></td><td><p>Compare the field to a specific value.</p></td></tr><tr><td><p align=\"center\"><span style=\" font-weight:600;\">contains, matches</span></p></td><td><p>Check the field against a string (contains) or a regular expression (matches)</p></td></tr><tr><td><p align=\"center\"><span style=\" font-weight:600;\">in</span></p></td><td><p>Compare the field to a specific set of values</p></td></tr></table></body></html>\n" 225 #endif // QT_NO_TOOLTIP 226 relationLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Relation", 0));
227 #ifndef QT_NO_TOOLTIP 228 valueLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"Match against this value.", 0));
229 #endif // QT_NO_TOOLTIP 230 valueLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Value", 0));
231 #ifndef QT_NO_TOOLTIP 232 enumLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"If the field you have selected has a known set of valid values they will be listed here.", 0));
233 #endif // QT_NO_TOOLTIP 234 enumLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Predefined Values", 0));
235 #ifndef QT_NO_TOOLTIP 236 rangeLabel->setToolTip(QApplication::translate(
"DisplayFilterExpressionDialog",
"If the field you have selected covers a range of bytes (e.g. you have selected a protocol) you can restrict the match to a range of bytes here.", 0));
237 #endif // QT_NO_TOOLTIP 238 rangeLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"Range (offset:length)", 0));
239 displayFilterLineEdit->setPlaceholderText(QApplication::translate(
"DisplayFilterExpressionDialog",
"No display filter", 0));
240 hintLabel->setText(QApplication::translate(
"DisplayFilterExpressionDialog",
"<small><i>A hint.</i></small>", 0));
251 #endif // UI_DISPLAY_FILTER_EXPRESSION_DIALOG_H Definition: ui_about_dialog.h:291
Definition: display_filter_expression_dialog.h:28
Definition: ui_display_filter_expression_dialog.h:246
Definition: ui_display_filter_expression_dialog.h:30
Definition: display_filter_edit.h:26