9 #ifndef UI_PQTIMERLOGDISPLAY_H 10 #define UI_PQTIMERLOGDISPLAY_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QPushButton> 21 #include <QtWidgets/QSpacerItem> 22 #include <QtWidgets/QTextEdit> 23 #include <QtWidgets/QVBoxLayout> 50 if (pqTimerLogDisplay->objectName().isEmpty())
51 pqTimerLogDisplay->setObjectName(QString::fromUtf8(
"pqTimerLogDisplay"));
52 pqTimerLogDisplay->resize(500, 500);
53 gridLayout =
new QGridLayout(pqTimerLogDisplay);
55 gridLayout->setSpacing(6);
58 gridLayout->setContentsMargins(9, 9, 9, 9);
60 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
61 vboxLayout =
new QVBoxLayout();
63 vboxLayout->setSpacing(6);
66 vboxLayout->setContentsMargins(0, 0, 0, 0);
68 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
69 refreshButton =
new QPushButton(pqTimerLogDisplay);
70 refreshButton->setObjectName(QString::fromUtf8(
"refreshButton"));
72 vboxLayout->addWidget(refreshButton);
74 clearButton =
new QPushButton(pqTimerLogDisplay);
75 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
77 vboxLayout->addWidget(clearButton);
79 gridLayout1 =
new QGridLayout();
80 gridLayout1->setSpacing(0);
81 gridLayout1->setContentsMargins(0, 0, 0, 0);
82 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
83 spacerItem =
new QSpacerItem(10, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
85 gridLayout1->addItem(spacerItem, 1, 0, 1, 1);
87 label =
new QLabel(pqTimerLogDisplay);
88 label->setObjectName(QString::fromUtf8(
"label"));
90 gridLayout1->addWidget(label, 0, 0, 1, 2);
92 timeThreshold =
new QComboBox(pqTimerLogDisplay);
93 timeThreshold->setObjectName(QString::fromUtf8(
"timeThreshold"));
95 gridLayout1->addWidget(timeThreshold, 1, 1, 1, 1);
98 vboxLayout->addLayout(gridLayout1);
100 gridLayout2 =
new QGridLayout();
101 gridLayout2->setSpacing(0);
102 gridLayout2->setContentsMargins(0, 0, 0, 0);
103 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
104 spacerItem1 =
new QSpacerItem(10, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
106 gridLayout2->addItem(spacerItem1, 1, 0, 1, 1);
108 label_2 =
new QLabel(pqTimerLogDisplay);
109 label_2->setObjectName(QString::fromUtf8(
"label_2"));
111 gridLayout2->addWidget(label_2, 0, 0, 1, 2);
113 bufferLength =
new QComboBox(pqTimerLogDisplay);
114 bufferLength->setObjectName(QString::fromUtf8(
"bufferLength"));
116 gridLayout2->addWidget(bufferLength, 1, 1, 1, 1);
119 vboxLayout->addLayout(gridLayout2);
121 enable =
new QCheckBox(pqTimerLogDisplay);
122 enable->setObjectName(QString::fromUtf8(
"enable"));
123 enable->setChecked(
true);
125 vboxLayout->addWidget(enable);
127 saveButton =
new QPushButton(pqTimerLogDisplay);
128 saveButton->setObjectName(QString::fromUtf8(
"saveButton"));
130 vboxLayout->addWidget(saveButton);
132 spacerItem2 =
new QSpacerItem(20, 191, QSizePolicy::Minimum, QSizePolicy::Expanding);
134 vboxLayout->addItem(spacerItem2);
137 gridLayout->addLayout(vboxLayout, 0, 1, 1, 1);
139 buttonBox =
new QDialogButtonBox(pqTimerLogDisplay);
140 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
141 buttonBox->setOrientation(Qt::Horizontal);
142 buttonBox->setStandardButtons(QDialogButtonBox::Close);
144 gridLayout->addWidget(buttonBox, 1, 0, 1, 2);
146 log =
new QTextEdit(pqTimerLogDisplay);
147 log->setObjectName(QString::fromUtf8(
"log"));
148 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
149 sizePolicy.setHorizontalStretch(1);
150 sizePolicy.setVerticalStretch(1);
151 sizePolicy.setHeightForWidth(log->sizePolicy().hasHeightForWidth());
152 log->setSizePolicy(sizePolicy);
153 log->setReadOnly(
true);
155 gridLayout->addWidget(log, 0, 0, 1, 1);
159 QObject::connect(buttonBox, SIGNAL(accepted()), pqTimerLogDisplay, SLOT(accept()));
160 QObject::connect(buttonBox, SIGNAL(rejected()), pqTimerLogDisplay, SLOT(reject()));
162 QMetaObject::connectSlotsByName(pqTimerLogDisplay);
167 pqTimerLogDisplay->setWindowTitle(QCoreApplication::translate(
"pqTimerLogDisplay",
"Timer Log",
nullptr));
168 refreshButton->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Refresh",
nullptr));
169 clearButton->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Clear",
nullptr));
170 label->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Time Threshold:",
nullptr));
171 label_2->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Buffer Length:",
nullptr));
172 enable->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Enable",
nullptr));
173 saveButton->setText(QCoreApplication::translate(
"pqTimerLogDisplay",
"Save",
nullptr));
184 #endif // UI_PQTIMERLOGDISPLAY_H
QPushButton * clearButton
QGridLayout * gridLayout1
QPushButton * refreshButton
void retranslateUi(QDialog *pqTimerLogDisplay)
QComboBox * timeThreshold
QGridLayout * gridLayout2
QDialogButtonBox * buttonBox
QSpacerItem * spacerItem2
QSpacerItem * spacerItem1
void setupUi(QDialog *pqTimerLogDisplay)