9 #ifndef UI_SEARCH_FRAME_H 10 #define UI_SEARCH_FRAME_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QPushButton> 21 #include <QtWidgets/QSpacerItem> 22 #include "accordion_frame.h" 23 #include "widgets/syntax_line_edit.h" 30 QHBoxLayout *horizontalLayout;
31 QSpacerItem *horizontalSpacer_3;
32 QComboBox *searchInComboBox;
33 QSpacerItem *horizontalSpacer_2;
34 QComboBox *charEncodingComboBox;
35 QCheckBox *caseCheckBox;
36 QSpacerItem *horizontalSpacer;
37 QComboBox *searchTypeComboBox;
39 QPushButton *findButton;
40 QPushButton *cancelButton;
44 if (SearchFrame->objectName().isEmpty())
45 SearchFrame->setObjectName(QStringLiteral(
"SearchFrame"));
46 SearchFrame->resize(1026, 34);
47 SearchFrame->setFrameShape(QFrame::NoFrame);
48 SearchFrame->setFrameShadow(QFrame::Plain);
49 horizontalLayout =
new QHBoxLayout(SearchFrame);
50 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
51 horizontalLayout->setContentsMargins(-1, 0, -1, 0);
52 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
54 horizontalLayout->addItem(horizontalSpacer_3);
56 searchInComboBox =
new QComboBox(SearchFrame);
57 searchInComboBox->setObjectName(QStringLiteral(
"searchInComboBox"));
59 horizontalLayout->addWidget(searchInComboBox);
61 horizontalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
63 horizontalLayout->addItem(horizontalSpacer_2);
65 charEncodingComboBox =
new QComboBox(SearchFrame);
66 charEncodingComboBox->setObjectName(QStringLiteral(
"charEncodingComboBox"));
68 horizontalLayout->addWidget(charEncodingComboBox);
70 caseCheckBox =
new QCheckBox(SearchFrame);
71 caseCheckBox->setObjectName(QStringLiteral(
"caseCheckBox"));
73 horizontalLayout->addWidget(caseCheckBox);
75 horizontalSpacer =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
77 horizontalLayout->addItem(horizontalSpacer);
79 searchTypeComboBox =
new QComboBox(SearchFrame);
80 searchTypeComboBox->setObjectName(QStringLiteral(
"searchTypeComboBox"));
82 horizontalLayout->addWidget(searchTypeComboBox);
85 searchLineEdit->setObjectName(QStringLiteral(
"searchLineEdit"));
86 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
87 sizePolicy.setHorizontalStretch(1);
88 sizePolicy.setVerticalStretch(0);
89 sizePolicy.setHeightForWidth(searchLineEdit->sizePolicy().hasHeightForWidth());
90 searchLineEdit->setSizePolicy(sizePolicy);
92 horizontalLayout->addWidget(searchLineEdit);
94 findButton =
new QPushButton(SearchFrame);
95 findButton->setObjectName(QStringLiteral(
"findButton"));
96 findButton->setMaximumSize(QSize(16777215, 27));
98 horizontalLayout->addWidget(findButton);
100 cancelButton =
new QPushButton(SearchFrame);
101 cancelButton->setObjectName(QStringLiteral(
"cancelButton"));
102 cancelButton->setMaximumSize(QSize(16777215, 27));
104 horizontalLayout->addWidget(cancelButton);
106 horizontalLayout->setStretch(0, 3);
107 horizontalLayout->setStretch(7, 1);
109 retranslateUi(SearchFrame);
111 findButton->setDefault(
true);
114 QMetaObject::connectSlotsByName(SearchFrame);
119 SearchFrame->setWindowTitle(QApplication::translate(
"SearchFrame",
"Frame", 0));
120 searchInComboBox->clear();
121 searchInComboBox->insertItems(0, QStringList()
122 << QApplication::translate(
"SearchFrame",
"Packet list", 0)
123 << QApplication::translate(
"SearchFrame",
"Packet details", 0)
124 << QApplication::translate(
"SearchFrame",
"Packet bytes", 0)
126 #ifndef QT_NO_TOOLTIP 127 searchInComboBox->setToolTip(QApplication::translate(
"SearchFrame",
"<html><head/><body><p>Search the Info column of the packet list (summary pane), decoded packet display labels (tree view pane) or the ASCII-converted packet data (hex view pane).</p></body></html>", 0));
128 #endif // QT_NO_TOOLTIP 129 charEncodingComboBox->clear();
130 charEncodingComboBox->insertItems(0, QStringList()
131 << QApplication::translate(
"SearchFrame",
"Narrow & Wide", 0)
132 << QApplication::translate(
"SearchFrame",
"Narrow (UTF-8 / ASCII)", 0)
133 << QApplication::translate(
"SearchFrame",
"Wide (UTF-16)", 0)
135 #ifndef QT_NO_TOOLTIP 136 charEncodingComboBox->setToolTip(QApplication::translate(
"SearchFrame",
"<html><head/><body><p>Search for strings containing narrow (UTF-8 and ASCII) or wide (UTF-16) characters.</p></body></html>", 0));
137 #endif // QT_NO_TOOLTIP 138 caseCheckBox->setText(QApplication::translate(
"SearchFrame",
"Case sensitive", 0));
139 searchTypeComboBox->clear();
140 searchTypeComboBox->insertItems(0, QStringList()
141 << QApplication::translate(
"SearchFrame",
"Display filter", 0)
142 << QApplication::translate(
"SearchFrame",
"Hex value", 0)
143 << QApplication::translate(
"SearchFrame",
"String", 0)
144 << QApplication::translate(
"SearchFrame",
"Regular Expression", 0)
146 #ifndef QT_NO_TOOLTIP 147 searchTypeComboBox->setToolTip(QApplication::translate(
"SearchFrame",
"<html><head/><body><p>Search for data using display filter syntax (e.g. ip.addr==10.1.1.1), a hexadecimal string (e.g. fffffda5), a plain string (e.g. My String) or a regular expression (e.g. colou?r).</p></body></html>", 0));
148 #endif // QT_NO_TOOLTIP 149 findButton->setText(QApplication::translate(
"SearchFrame",
"Find", 0));
150 cancelButton->setText(QApplication::translate(
"SearchFrame",
"Cancel", 0));
161 #endif // UI_SEARCH_FRAME_H Definition: ui_search_frame.h:27
Definition: ui_about_dialog.h:291
Definition: ui_search_frame.h:156
Definition: syntax_line_edit.h:22
Definition: accordion_frame.h:17
Definition: search_frame.h:23