9 #ifndef UI_DECODE_AS_DIALOG_H 10 #define UI_DECODE_AS_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/QSpacerItem> 21 #include <QtWidgets/QToolButton> 22 #include <QtWidgets/QVBoxLayout> 23 #include "widgets/elided_label.h" 24 #include "widgets/tabnav_tree_view.h" 31 QVBoxLayout *verticalLayout_2;
33 QHBoxLayout *horizontalLayout;
34 QToolButton *newToolButton;
35 QToolButton *deleteToolButton;
36 QToolButton *copyToolButton;
37 QSpacerItem *horizontalSpacer;
39 QDialogButtonBox *buttonBox;
43 if (DecodeAsDialog->objectName().isEmpty())
44 DecodeAsDialog->setObjectName(QStringLiteral(
"DecodeAsDialog"));
45 DecodeAsDialog->resize(750, 460);
46 verticalLayout_2 =
new QVBoxLayout(DecodeAsDialog);
47 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
49 decodeAsTreeView->setObjectName(QStringLiteral(
"decodeAsTreeView"));
50 decodeAsTreeView->setIndentation(0);
52 verticalLayout_2->addWidget(decodeAsTreeView);
54 horizontalLayout =
new QHBoxLayout();
55 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
56 newToolButton =
new QToolButton(DecodeAsDialog);
57 newToolButton->setObjectName(QStringLiteral(
"newToolButton"));
59 icon.addFile(QStringLiteral(
":/stock/plus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
60 newToolButton->setIcon(icon);
62 horizontalLayout->addWidget(newToolButton);
64 deleteToolButton =
new QToolButton(DecodeAsDialog);
65 deleteToolButton->setObjectName(QStringLiteral(
"deleteToolButton"));
66 deleteToolButton->setEnabled(
false);
68 icon1.addFile(QStringLiteral(
":/stock/minus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
69 deleteToolButton->setIcon(icon1);
71 horizontalLayout->addWidget(deleteToolButton);
73 copyToolButton =
new QToolButton(DecodeAsDialog);
74 copyToolButton->setObjectName(QStringLiteral(
"copyToolButton"));
76 icon2.addFile(QStringLiteral(
":/stock/copy-8.png"), QSize(), QIcon::Normal, QIcon::Off);
77 copyToolButton->setIcon(icon2);
79 horizontalLayout->addWidget(copyToolButton);
81 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
83 horizontalLayout->addItem(horizontalSpacer);
86 pathLabel->setObjectName(QStringLiteral(
"pathLabel"));
87 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
88 sizePolicy.setHorizontalStretch(1);
89 sizePolicy.setVerticalStretch(0);
90 sizePolicy.setHeightForWidth(pathLabel->sizePolicy().hasHeightForWidth());
91 pathLabel->setSizePolicy(sizePolicy);
92 pathLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
93 pathLabel->setOpenExternalLinks(
true);
95 horizontalLayout->addWidget(pathLabel);
97 horizontalLayout->setStretch(4, 1);
99 verticalLayout_2->addLayout(horizontalLayout);
101 buttonBox =
new QDialogButtonBox(DecodeAsDialog);
102 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
103 buttonBox->setOrientation(Qt::Horizontal);
104 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok|QDialogButtonBox::Save);
106 verticalLayout_2->addWidget(buttonBox);
109 retranslateUi(DecodeAsDialog);
110 QObject::connect(buttonBox, SIGNAL(accepted()), DecodeAsDialog, SLOT(accept()));
111 QObject::connect(buttonBox, SIGNAL(rejected()), DecodeAsDialog, SLOT(reject()));
113 QMetaObject::connectSlotsByName(DecodeAsDialog);
116 void retranslateUi(QDialog *DecodeAsDialog)
118 #ifndef QT_NO_TOOLTIP 119 newToolButton->setToolTip(QApplication::translate(
"DecodeAsDialog",
"Change the dissection behavior for a protocol.", 0));
120 #endif // QT_NO_TOOLTIP 121 newToolButton->setText(QString());
122 #ifndef QT_NO_TOOLTIP 123 deleteToolButton->setToolTip(QApplication::translate(
"DecodeAsDialog",
"Remove this dissection behavior.", 0));
124 #endif // QT_NO_TOOLTIP 125 #ifndef QT_NO_TOOLTIP 126 copyToolButton->setToolTip(QApplication::translate(
"DecodeAsDialog",
"Copy this dissection behavior.", 0));
127 #endif // QT_NO_TOOLTIP 128 copyToolButton->setText(QString());
129 pathLabel->setText(QString());
130 Q_UNUSED(DecodeAsDialog);
141 #endif // UI_DECODE_AS_DIALOG_H Definition: ui_decode_as_dialog.h:28
Definition: decode_as_dialog.h:31
Definition: ui_about_dialog.h:291
Definition: tabnav_tree_view.h:23
Definition: elided_label.h:15
Definition: ui_decode_as_dialog.h:136