9 #ifndef UI_PACKET_FORMAT_GROUP_BOX_H 10 #define UI_PACKET_FORMAT_GROUP_BOX_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QRadioButton> 20 #include <QtWidgets/QVBoxLayout> 27 QVBoxLayout *verticalLayout;
28 QCheckBox *summaryCheckBox;
29 QCheckBox *detailsCheckBox;
30 QRadioButton *allCollapsedButton;
31 QRadioButton *asDisplayedButton;
32 QRadioButton *allExpandedButton;
33 QCheckBox *bytesCheckBox;
37 if (PacketFormatGroupBox->objectName().isEmpty())
38 PacketFormatGroupBox->setObjectName(QStringLiteral(
"PacketFormatGroupBox"));
39 PacketFormatGroupBox->resize(400, 178);
40 verticalLayout =
new QVBoxLayout(PacketFormatGroupBox);
41 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
42 summaryCheckBox =
new QCheckBox(PacketFormatGroupBox);
43 summaryCheckBox->setObjectName(QStringLiteral(
"summaryCheckBox"));
44 summaryCheckBox->setChecked(
true);
46 verticalLayout->addWidget(summaryCheckBox);
48 detailsCheckBox =
new QCheckBox(PacketFormatGroupBox);
49 detailsCheckBox->setObjectName(QStringLiteral(
"detailsCheckBox"));
50 detailsCheckBox->setChecked(
true);
52 verticalLayout->addWidget(detailsCheckBox);
54 allCollapsedButton =
new QRadioButton(PacketFormatGroupBox);
55 allCollapsedButton->setObjectName(QStringLiteral(
"allCollapsedButton"));
56 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
57 sizePolicy.setHorizontalStretch(1);
58 sizePolicy.setVerticalStretch(0);
59 sizePolicy.setHeightForWidth(allCollapsedButton->sizePolicy().hasHeightForWidth());
60 allCollapsedButton->setSizePolicy(sizePolicy);
62 verticalLayout->addWidget(allCollapsedButton);
64 asDisplayedButton =
new QRadioButton(PacketFormatGroupBox);
65 asDisplayedButton->setObjectName(QStringLiteral(
"asDisplayedButton"));
66 sizePolicy.setHeightForWidth(asDisplayedButton->sizePolicy().hasHeightForWidth());
67 asDisplayedButton->setSizePolicy(sizePolicy);
68 asDisplayedButton->setChecked(
true);
70 verticalLayout->addWidget(asDisplayedButton);
72 allExpandedButton =
new QRadioButton(PacketFormatGroupBox);
73 allExpandedButton->setObjectName(QStringLiteral(
"allExpandedButton"));
74 sizePolicy.setHeightForWidth(allExpandedButton->sizePolicy().hasHeightForWidth());
75 allExpandedButton->setSizePolicy(sizePolicy);
77 verticalLayout->addWidget(allExpandedButton);
79 bytesCheckBox =
new QCheckBox(PacketFormatGroupBox);
80 bytesCheckBox->setObjectName(QStringLiteral(
"bytesCheckBox"));
82 verticalLayout->addWidget(bytesCheckBox);
85 retranslateUi(PacketFormatGroupBox);
87 QMetaObject::connectSlotsByName(PacketFormatGroupBox);
90 void retranslateUi(QGroupBox *PacketFormatGroupBox)
92 PacketFormatGroupBox->setWindowTitle(QApplication::translate(
"PacketFormatGroupBox",
"GroupBox", 0));
93 PacketFormatGroupBox->setTitle(QApplication::translate(
"PacketFormatGroupBox",
"Packet Format", 0));
95 summaryCheckBox->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Packet summary lines similar to the packet list</p></body></html>", 0));
96 #endif // QT_NO_TOOLTIP 97 summaryCheckBox->setText(QApplication::translate(
"PacketFormatGroupBox",
"Summary line", 0));
99 detailsCheckBox->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Packet details similar to the protocol tree</p></body></html>", 0));
100 #endif // QT_NO_TOOLTIP 101 detailsCheckBox->setText(QApplication::translate(
"PacketFormatGroupBox",
"Details:", 0));
102 #ifndef QT_NO_TOOLTIP 103 allCollapsedButton->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Export only top-level packet detail items</p></body></html>", 0));
104 #endif // QT_NO_TOOLTIP 105 allCollapsedButton->setText(QApplication::translate(
"PacketFormatGroupBox",
"All co&llapsed", 0));
106 #ifndef QT_NO_TOOLTIP 107 asDisplayedButton->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Expand and collapse packet details as they are currently displayed.</p></body></html>", 0));
108 #endif // QT_NO_TOOLTIP 109 asDisplayedButton->setText(QApplication::translate(
"PacketFormatGroupBox",
"As displa&yed", 0));
110 #ifndef QT_NO_TOOLTIP 111 allExpandedButton->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Export all packet detail items</p></body></html>", 0));
112 #endif // QT_NO_TOOLTIP 113 allExpandedButton->setText(QApplication::translate(
"PacketFormatGroupBox",
"All e&xpanded", 0));
114 #ifndef QT_NO_TOOLTIP 115 bytesCheckBox->setToolTip(QApplication::translate(
"PacketFormatGroupBox",
"<html><head/><body><p>Export a hexdump of the packet data similar to the packet bytes view</p></body></html>", 0));
116 #endif // QT_NO_TOOLTIP 117 bytesCheckBox->setText(QApplication::translate(
"PacketFormatGroupBox",
"Bytes", 0));
128 #endif // UI_PACKET_FORMAT_GROUP_BOX_H
Definition: ui_about_dialog.h:291