9 #ifndef UI_SCTP_CHUNK_STATISTICS_DIALOG_H 10 #define UI_SCTP_CHUNK_STATISTICS_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/QHeaderView> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QTableWidget> 27 QAction *actionHideChunkType;
28 QAction *actionChunkTypePreferences;
29 QAction *actionShowAllChunkTypes;
30 QDialogButtonBox *buttonBox;
31 QTableWidget *tableWidget;
32 QPushButton *pushButton;
36 if (SCTPChunkStatisticsDialog->objectName().isEmpty())
37 SCTPChunkStatisticsDialog->setObjectName(QStringLiteral(
"SCTPChunkStatisticsDialog"));
38 SCTPChunkStatisticsDialog->resize(519, 504);
39 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
40 sizePolicy.setHorizontalStretch(0);
41 sizePolicy.setVerticalStretch(0);
42 sizePolicy.setHeightForWidth(SCTPChunkStatisticsDialog->sizePolicy().hasHeightForWidth());
43 SCTPChunkStatisticsDialog->setSizePolicy(sizePolicy);
44 actionHideChunkType =
new QAction(SCTPChunkStatisticsDialog);
45 actionHideChunkType->setObjectName(QStringLiteral(
"actionHideChunkType"));
46 actionChunkTypePreferences =
new QAction(SCTPChunkStatisticsDialog);
47 actionChunkTypePreferences->setObjectName(QStringLiteral(
"actionChunkTypePreferences"));
48 actionShowAllChunkTypes =
new QAction(SCTPChunkStatisticsDialog);
49 actionShowAllChunkTypes->setObjectName(QStringLiteral(
"actionShowAllChunkTypes"));
50 buttonBox =
new QDialogButtonBox(SCTPChunkStatisticsDialog);
51 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
52 buttonBox->setGeometry(QRect(310, 470, 191, 32));
53 buttonBox->setOrientation(Qt::Horizontal);
54 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Close);
55 tableWidget =
new QTableWidget(SCTPChunkStatisticsDialog);
56 if (tableWidget->columnCount() < 3)
57 tableWidget->setColumnCount(3);
58 QTableWidgetItem *__qtablewidgetitem =
new QTableWidgetItem();
59 tableWidget->setHorizontalHeaderItem(0, __qtablewidgetitem);
60 QTableWidgetItem *__qtablewidgetitem1 =
new QTableWidgetItem();
61 tableWidget->setHorizontalHeaderItem(1, __qtablewidgetitem1);
62 QTableWidgetItem *__qtablewidgetitem2 =
new QTableWidgetItem();
63 tableWidget->setHorizontalHeaderItem(2, __qtablewidgetitem2);
64 tableWidget->setObjectName(QStringLiteral(
"tableWidget"));
65 tableWidget->setGeometry(QRect(30, 30, 471, 431));
66 tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
67 tableWidget->setAlternatingRowColors(
true);
68 tableWidget->setSelectionMode(QAbstractItemView::SingleSelection);
69 tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows);
70 tableWidget->setRowCount(0);
71 tableWidget->horizontalHeader()->setCascadingSectionResizes(
false);
72 tableWidget->horizontalHeader()->setStretchLastSection(
true);
73 tableWidget->verticalHeader()->setCascadingSectionResizes(
false);
74 pushButton =
new QPushButton(SCTPChunkStatisticsDialog);
75 pushButton->setObjectName(QStringLiteral(
"pushButton"));
76 pushButton->setGeometry(QRect(130, 470, 181, 32));
78 retranslateUi(SCTPChunkStatisticsDialog);
79 QObject::connect(buttonBox, SIGNAL(clicked(QAbstractButton*)), SCTPChunkStatisticsDialog, SLOT(close()));
80 QObject::connect(buttonBox, SIGNAL(clicked(QAbstractButton*)), SCTPChunkStatisticsDialog, SLOT(close()));
82 QMetaObject::connectSlotsByName(SCTPChunkStatisticsDialog);
85 void retranslateUi(QDialog *SCTPChunkStatisticsDialog)
87 SCTPChunkStatisticsDialog->setWindowTitle(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Dialog", 0));
88 actionHideChunkType->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Hide Chunk Type", 0));
90 actionHideChunkType->setToolTip(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Remove the chunk type from the table", 0));
91 #endif // QT_NO_TOOLTIP 92 actionChunkTypePreferences->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Chunk Type Preferences", 0));
94 actionChunkTypePreferences->setToolTip(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Go to the chunk type preferences dialog to show or hide other chunk types", 0));
95 #endif // QT_NO_TOOLTIP 96 actionShowAllChunkTypes->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Show All Registered Chunk Types", 0));
98 actionShowAllChunkTypes->setToolTip(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Show all chunk types with defined names", 0));
99 #endif // QT_NO_TOOLTIP 100 QTableWidgetItem *___qtablewidgetitem = tableWidget->horizontalHeaderItem(0);
101 ___qtablewidgetitem->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Association", 0));
102 QTableWidgetItem *___qtablewidgetitem1 = tableWidget->horizontalHeaderItem(1);
103 ___qtablewidgetitem1->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Endpoint 1", 0));
104 QTableWidgetItem *___qtablewidgetitem2 = tableWidget->horizontalHeaderItem(2);
105 ___qtablewidgetitem2->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Endpoint 2", 0));
106 pushButton->setText(QApplication::translate(
"SCTPChunkStatisticsDialog",
"Save Chunk Type Order", 0));
117 #endif // UI_SCTP_CHUNK_STATISTICS_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_sctp_chunk_statistics_dialog.h:112
Definition: ui_sctp_chunk_statistics_dialog.h:24
Definition: sctp_chunk_statistics_dialog.h:38