9 #ifndef UI_PQRECORDEVENTSDIALOG_H 10 #define UI_PQRECORDEVENTSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QCheckBox> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QFrame> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLCDNumber> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QTabWidget> 25 #include <QtWidgets/QTextEdit> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 69 void setupUi(QDialog *pqRecordEventsDialog)
71 if (pqRecordEventsDialog->objectName().isEmpty())
72 pqRecordEventsDialog->setObjectName(QString::fromUtf8(
"pqRecordEventsDialog"));
73 pqRecordEventsDialog->resize(393, 256);
74 verticalLayout_3 =
new QVBoxLayout(pqRecordEventsDialog);
75 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
76 tabWidget =
new QTabWidget(pqRecordEventsDialog);
77 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
78 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
79 sizePolicy.setHorizontalStretch(0);
80 sizePolicy.setVerticalStretch(0);
81 sizePolicy.setHeightForWidth(tabWidget->sizePolicy().hasHeightForWidth());
82 tabWidget->setSizePolicy(sizePolicy);
83 tabWidget->setTabShape(QTabWidget::Rounded);
84 tabWidget->setElideMode(Qt::ElideNone);
85 tabWidget->setUsesScrollButtons(
false);
86 tabWidget->setDocumentMode(
true);
87 lastEvent =
new QWidget();
88 lastEvent->setObjectName(QString::fromUtf8(
"lastEvent"));
89 verticalLayout =
new QVBoxLayout(lastEvent);
90 verticalLayout->setSpacing(2);
91 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
92 verticalLayout->setContentsMargins(-1, -1, -1, 2);
93 horizontalLayout =
new QHBoxLayout();
94 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
95 eventWidgetLabel =
new QLabel(lastEvent);
96 eventWidgetLabel->setObjectName(QString::fromUtf8(
"eventWidgetLabel"));
98 horizontalLayout->addWidget(eventWidgetLabel);
100 eventWidgetEdit =
new QLineEdit(lastEvent);
101 eventWidgetEdit->setObjectName(QString::fromUtf8(
"eventWidgetEdit"));
102 eventWidgetEdit->setEnabled(
true);
103 eventWidgetEdit->setFrame(
false);
104 eventWidgetEdit->setReadOnly(
true);
106 horizontalLayout->addWidget(eventWidgetEdit);
109 verticalLayout->addLayout(horizontalLayout);
111 horizontalLayout_2 =
new QHBoxLayout();
112 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
113 eventArgumentLabel =
new QLabel(lastEvent);
114 eventArgumentLabel->setObjectName(QString::fromUtf8(
"eventArgumentLabel"));
115 eventArgumentLabel->setEnabled(
true);
116 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
117 sizePolicy1.setHorizontalStretch(0);
118 sizePolicy1.setVerticalStretch(0);
119 sizePolicy1.setHeightForWidth(eventArgumentLabel->sizePolicy().hasHeightForWidth());
120 eventArgumentLabel->setSizePolicy(sizePolicy1);
122 horizontalLayout_2->addWidget(eventArgumentLabel);
124 eventArgumentEdit =
new QLineEdit(lastEvent);
125 eventArgumentEdit->setObjectName(QString::fromUtf8(
"eventArgumentEdit"));
126 eventArgumentEdit->setEnabled(
true);
127 eventArgumentEdit->setFrame(
false);
128 eventArgumentEdit->setReadOnly(
true);
130 horizontalLayout_2->addWidget(eventArgumentEdit);
133 verticalLayout->addLayout(horizontalLayout_2);
135 horizontalLayout_3 =
new QHBoxLayout();
136 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
137 eventCommandLabel =
new QLabel(lastEvent);
138 eventCommandLabel->setObjectName(QString::fromUtf8(
"eventCommandLabel"));
140 horizontalLayout_3->addWidget(eventCommandLabel);
142 eventCommandEdit =
new QLineEdit(lastEvent);
143 eventCommandEdit->setObjectName(QString::fromUtf8(
"eventCommandEdit"));
144 eventCommandEdit->setEnabled(
true);
145 eventCommandEdit->setFrame(
false);
146 eventCommandEdit->setReadOnly(
true);
148 horizontalLayout_3->addWidget(eventCommandEdit);
151 verticalLayout->addLayout(horizontalLayout_3);
154 icon.addFile(QString::fromUtf8(
":/Icons/info.png"), QSize(), QIcon::Normal, QIcon::Off);
155 tabWidget->addTab(lastEvent, icon, QString());
156 addComment =
new QWidget();
157 addComment->setObjectName(QString::fromUtf8(
"addComment"));
158 horizontalLayout_5 =
new QHBoxLayout(addComment);
159 horizontalLayout_5->setObjectName(QString::fromUtf8(
"horizontalLayout_5"));
160 verticalLayout_4 =
new QVBoxLayout();
161 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
162 commentLabel =
new QLabel(addComment);
163 commentLabel->setObjectName(QString::fromUtf8(
"commentLabel"));
165 verticalLayout_4->addWidget(commentLabel);
167 commentTextEdit =
new QTextEdit(addComment);
168 commentTextEdit->setObjectName(QString::fromUtf8(
"commentTextEdit"));
169 sizePolicy1.setHeightForWidth(commentTextEdit->sizePolicy().hasHeightForWidth());
170 commentTextEdit->setSizePolicy(sizePolicy1);
171 commentTextEdit->setMaximumSize(QSize(16777215, 80));
173 verticalLayout_4->addWidget(commentTextEdit);
175 horizontalLayout_4 =
new QHBoxLayout();
176 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
177 blockingCheckBox =
new QCheckBox(addComment);
178 blockingCheckBox->setObjectName(QString::fromUtf8(
"blockingCheckBox"));
180 horizontalLayout_4->addWidget(blockingCheckBox);
182 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
184 horizontalLayout_4->addItem(horizontalSpacer);
186 commentAddButton =
new QPushButton(addComment);
187 commentAddButton->setObjectName(QString::fromUtf8(
"commentAddButton"));
188 sizePolicy1.setHeightForWidth(commentAddButton->sizePolicy().hasHeightForWidth());
189 commentAddButton->setSizePolicy(sizePolicy1);
191 icon1.addFile(QString::fromUtf8(
":/Icons/plus.png"), QSize(), QIcon::Normal, QIcon::Off);
192 commentAddButton->setIcon(icon1);
194 horizontalLayout_4->addWidget(commentAddButton);
197 verticalLayout_4->addLayout(horizontalLayout_4);
200 horizontalLayout_5->addLayout(verticalLayout_4);
202 tabWidget->addTab(addComment, icon1, QString());
204 verticalLayout_3->addWidget(tabWidget);
206 line =
new QFrame(pqRecordEventsDialog);
207 line->setObjectName(QString::fromUtf8(
"line"));
208 line->setFrameShape(QFrame::HLine);
209 line->setFrameShadow(QFrame::Sunken);
211 verticalLayout_3->addWidget(line);
213 hboxLayout =
new QHBoxLayout();
215 hboxLayout->setSpacing(6);
217 hboxLayout->setContentsMargins(0, 0, 0, 0);
218 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
219 hboxLayout->setSizeConstraint(QLayout::SetMinimumSize);
220 continuousFlush =
new QCheckBox(pqRecordEventsDialog);
221 continuousFlush->setObjectName(QString::fromUtf8(
"continuousFlush"));
223 hboxLayout->addWidget(continuousFlush);
225 dashboardMode =
new QCheckBox(pqRecordEventsDialog);
226 dashboardMode->setObjectName(QString::fromUtf8(
"dashboardMode"));
227 dashboardMode->setChecked(
true);
229 hboxLayout->addWidget(dashboardMode);
231 recordInteractionTimings =
new QCheckBox(pqRecordEventsDialog);
232 recordInteractionTimings->setObjectName(QString::fromUtf8(
"recordInteractionTimings"));
234 hboxLayout->addWidget(recordInteractionTimings);
237 verticalLayout_3->addLayout(hboxLayout);
239 hboxLayout1 =
new QHBoxLayout();
241 hboxLayout1->setSpacing(6);
243 hboxLayout1->setContentsMargins(0, 0, 0, 0);
244 hboxLayout1->setObjectName(QString::fromUtf8(
"hboxLayout1"));
245 hboxLayout1->setSizeConstraint(QLayout::SetMinimumSize);
246 nbEvents =
new QLCDNumber(pqRecordEventsDialog);
247 nbEvents->setObjectName(QString::fromUtf8(
"nbEvents"));
248 nbEvents->setSmallDecimalPoint(
false);
249 nbEvents->setDigitCount(5);
251 hboxLayout1->addWidget(nbEvents);
253 nbEventsLabel =
new QLabel(pqRecordEventsDialog);
254 nbEventsLabel->setObjectName(QString::fromUtf8(
"nbEventsLabel"));
256 hboxLayout1->addWidget(nbEventsLabel);
258 spacerItem =
new QSpacerItem(133, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
260 hboxLayout1->addItem(spacerItem);
262 checkButton =
new QPushButton(pqRecordEventsDialog);
263 checkButton->setObjectName(QString::fromUtf8(
"checkButton"));
265 icon2.addFile(QString::fromUtf8(
":/Icons/check.png"), QSize(), QIcon::Normal, QIcon::Off);
266 checkButton->setIcon(icon2);
267 checkButton->setCheckable(
true);
269 hboxLayout1->addWidget(checkButton);
271 recordPauseButton =
new QPushButton(pqRecordEventsDialog);
272 recordPauseButton->setObjectName(QString::fromUtf8(
"recordPauseButton"));
274 icon3.addFile(QString::fromUtf8(
":/Icons/record.png"), QSize(), QIcon::Normal, QIcon::Off);
275 icon3.addFile(QString::fromUtf8(
":/Icons/pause.png"), QSize(), QIcon::Normal, QIcon::On);
276 recordPauseButton->setIcon(icon3);
277 recordPauseButton->setCheckable(
true);
279 hboxLayout1->addWidget(recordPauseButton);
281 stopButton =
new QPushButton(pqRecordEventsDialog);
282 stopButton->setObjectName(QString::fromUtf8(
"stopButton"));
283 sizePolicy1.setHeightForWidth(stopButton->sizePolicy().hasHeightForWidth());
284 stopButton->setSizePolicy(sizePolicy1);
286 icon4.addFile(QString::fromUtf8(
":/Icons/playback-stop.png"), QSize(), QIcon::Normal, QIcon::Off);
287 stopButton->setIcon(icon4);
289 hboxLayout1->addWidget(stopButton);
292 verticalLayout_3->addLayout(hboxLayout1);
296 QObject::connect(stopButton, SIGNAL(clicked()), pqRecordEventsDialog, SLOT(accept()));
298 tabWidget->setCurrentIndex(0);
301 QMetaObject::connectSlotsByName(pqRecordEventsDialog);
306 pqRecordEventsDialog->setWindowTitle(QCoreApplication::translate(
"pqRecordEventsDialog",
"Dialog",
nullptr));
307 #if QT_CONFIG(tooltip) 308 eventWidgetLabel->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Last widget recorded",
nullptr));
309 #endif // QT_CONFIG(tooltip) 310 eventWidgetLabel->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Widget :",
nullptr));
311 #if QT_CONFIG(tooltip) 312 eventArgumentLabel->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Last argument recorded",
nullptr));
313 #endif // QT_CONFIG(tooltip) 314 eventArgumentLabel->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Argument :",
nullptr));
315 #if QT_CONFIG(tooltip) 316 eventCommandLabel->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Last command recorded / property checked",
nullptr));
317 #endif // QT_CONFIG(tooltip) 318 eventCommandLabel->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Command/Property :",
nullptr));
319 tabWidget->setTabText(tabWidget->indexOf(lastEvent), QCoreApplication::translate(
"pqRecordEventsDialog",
"Last event",
nullptr));
320 commentLabel->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Add your custom comment :",
nullptr));
321 #if QT_CONFIG(tooltip) 322 commentTextEdit->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Write the comment that you want to add",
nullptr));
323 #endif // QT_CONFIG(tooltip) 324 #if QT_CONFIG(tooltip) 325 blockingCheckBox->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Add option block to you comment",
nullptr));
326 #endif // QT_CONFIG(tooltip) 327 blockingCheckBox->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Blocking",
nullptr));
328 #if QT_CONFIG(tooltip) 329 commentAddButton->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Add your comment",
nullptr));
330 #endif // QT_CONFIG(tooltip) 331 commentAddButton->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Add to macro",
nullptr));
332 tabWidget->setTabText(tabWidget->indexOf(addComment), QCoreApplication::translate(
"pqRecordEventsDialog",
"Add comment",
nullptr));
333 continuousFlush->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Continuous Flush",
nullptr));
334 #if QT_CONFIG(tooltip) 335 continuousFlush->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Write events to file as soon as they are recorded",
nullptr));
336 #endif // QT_CONFIG(tooltip) 337 dashboardMode->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Dashboard mode",
nullptr));
338 #if QT_CONFIG(tooltip) 339 dashboardMode->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"When checked/unchecked, will trigger dashboard mode accordingly and record corresponding event",
nullptr));
340 #endif // QT_CONFIG(tooltip) 341 recordInteractionTimings->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Record Interaction Timings",
nullptr));
342 #if QT_CONFIG(tooltip) 343 recordInteractionTimings->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"When activated, each pause between interactions will be recorded as a pause event, with the correct timing",
nullptr));
344 #endif // QT_CONFIG(tooltip) 345 #if QT_CONFIG(tooltip) 346 nbEvents->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"numbers of events recorded",
nullptr));
347 #endif // QT_CONFIG(tooltip) 348 nbEventsLabel->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Events recorded",
nullptr));
349 #if QT_CONFIG(tooltip) 350 checkButton->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Check default property of a widget instead of recording event",
nullptr));
351 #endif // QT_CONFIG(tooltip) 352 checkButton->setText(QString());
353 #if QT_CONFIG(tooltip) 354 recordPauseButton->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Start/Pause record",
nullptr));
355 #endif // QT_CONFIG(tooltip) 356 recordPauseButton->setText(QString());
357 #if QT_CONFIG(tooltip) 358 stopButton->setToolTip(QCoreApplication::translate(
"pqRecordEventsDialog",
"Stop record",
nullptr));
359 #endif // QT_CONFIG(tooltip) 360 stopButton->setText(QCoreApplication::translate(
"pqRecordEventsDialog",
"Stop Recording",
nullptr));
371 #endif // UI_PQRECORDEVENTSDIALOG_H QVBoxLayout * verticalLayout_4
void setupUi(QDialog *pqRecordEventsDialog)
QPushButton * checkButton
QTextEdit * commentTextEdit
QCheckBox * blockingCheckBox
QPushButton * recordPauseButton
QLineEdit * eventArgumentEdit
QLabel * eventArgumentLabel
QLabel * eventWidgetLabel
QHBoxLayout * horizontalLayout_2
QLabel * eventCommandLabel
QLineEdit * eventCommandEdit
QHBoxLayout * hboxLayout1
QHBoxLayout * horizontalLayout
QCheckBox * continuousFlush
QPushButton * commentAddButton
QVBoxLayout * verticalLayout
QHBoxLayout * horizontalLayout_3
QVBoxLayout * verticalLayout_3
QSpacerItem * horizontalSpacer
QCheckBox * recordInteractionTimings
QHBoxLayout * horizontalLayout_4
QLineEdit * eventWidgetEdit
QHBoxLayout * horizontalLayout_5
QCheckBox * dashboardMode
void retranslateUi(QDialog *pqRecordEventsDialog)