9 #ifndef UI_RTP_PLAYER_DIALOG_H 10 #define UI_RTP_PLAYER_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QDialog> 19 #include <QtWidgets/QDialogButtonBox> 20 #include <QtWidgets/QDoubleSpinBox> 21 #include <QtWidgets/QHBoxLayout> 22 #include <QtWidgets/QHeaderView> 23 #include <QtWidgets/QLabel> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QSplitter> 26 #include <QtWidgets/QToolButton> 27 #include <QtWidgets/QTreeWidget> 28 #include <QtWidgets/QVBoxLayout> 37 QAction *actionZoomIn;
38 QAction *actionZoomOut;
39 QAction *actionMoveLeft10;
40 QAction *actionMoveRight10;
41 QAction *actionMoveLeft1;
42 QAction *actionMoveRight1;
43 QAction *actionGoToPacket;
44 QAction *actionDragZoom;
45 QAction *actionToggleTimeOrigin;
46 QAction *actionCrosshairs;
47 QVBoxLayout *verticalLayout;
50 QTreeWidget *streamTreeWidget;
52 QHBoxLayout *horizontalLayout;
53 QToolButton *playButton;
54 QSpacerItem *horizontalSpacer_4;
55 QToolButton *stopButton;
56 QSpacerItem *horizontalSpacer_3;
58 QComboBox *outputDeviceComboBox;
59 QSpacerItem *horizontalSpacer_6;
60 QHBoxLayout *horizontalLayout_2;
62 QDoubleSpinBox *jitterSpinBox;
63 QSpacerItem *horizontalSpacer_2;
65 QComboBox *timingComboBox;
66 QSpacerItem *horizontalSpacer;
67 QCheckBox *todCheckBox;
68 QSpacerItem *horizontalSpacer_5;
69 QDialogButtonBox *buttonBox;
73 if (RtpPlayerDialog->objectName().isEmpty())
74 RtpPlayerDialog->setObjectName(QStringLiteral(
"RtpPlayerDialog"));
75 RtpPlayerDialog->resize(750, 600);
76 actionReset =
new QAction(RtpPlayerDialog);
77 actionReset->setObjectName(QStringLiteral(
"actionReset"));
78 actionZoomIn =
new QAction(RtpPlayerDialog);
79 actionZoomIn->setObjectName(QStringLiteral(
"actionZoomIn"));
80 actionZoomOut =
new QAction(RtpPlayerDialog);
81 actionZoomOut->setObjectName(QStringLiteral(
"actionZoomOut"));
82 actionMoveLeft10 =
new QAction(RtpPlayerDialog);
83 actionMoveLeft10->setObjectName(QStringLiteral(
"actionMoveLeft10"));
84 actionMoveRight10 =
new QAction(RtpPlayerDialog);
85 actionMoveRight10->setObjectName(QStringLiteral(
"actionMoveRight10"));
86 actionMoveLeft1 =
new QAction(RtpPlayerDialog);
87 actionMoveLeft1->setObjectName(QStringLiteral(
"actionMoveLeft1"));
88 actionMoveRight1 =
new QAction(RtpPlayerDialog);
89 actionMoveRight1->setObjectName(QStringLiteral(
"actionMoveRight1"));
90 actionGoToPacket =
new QAction(RtpPlayerDialog);
91 actionGoToPacket->setObjectName(QStringLiteral(
"actionGoToPacket"));
92 actionDragZoom =
new QAction(RtpPlayerDialog);
93 actionDragZoom->setObjectName(QStringLiteral(
"actionDragZoom"));
94 actionToggleTimeOrigin =
new QAction(RtpPlayerDialog);
95 actionToggleTimeOrigin->setObjectName(QStringLiteral(
"actionToggleTimeOrigin"));
96 actionCrosshairs =
new QAction(RtpPlayerDialog);
97 actionCrosshairs->setObjectName(QStringLiteral(
"actionCrosshairs"));
98 verticalLayout =
new QVBoxLayout(RtpPlayerDialog);
99 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
100 splitter =
new QSplitter(RtpPlayerDialog);
101 splitter->setObjectName(QStringLiteral(
"splitter"));
102 splitter->setOrientation(Qt::Vertical);
104 audioPlot->setObjectName(QStringLiteral(
"audioPlot"));
105 splitter->addWidget(audioPlot);
106 streamTreeWidget =
new QTreeWidget(splitter);
107 streamTreeWidget->setObjectName(QStringLiteral(
"streamTreeWidget"));
108 streamTreeWidget->setRootIsDecorated(
false);
109 streamTreeWidget->setUniformRowHeights(
true);
110 streamTreeWidget->setItemsExpandable(
false);
111 splitter->addWidget(streamTreeWidget);
113 verticalLayout->addWidget(splitter);
115 hintLabel =
new QLabel(RtpPlayerDialog);
116 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
117 hintLabel->setWordWrap(
true);
119 verticalLayout->addWidget(hintLabel);
121 horizontalLayout =
new QHBoxLayout();
122 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
123 playButton =
new QToolButton(RtpPlayerDialog);
124 playButton->setObjectName(QStringLiteral(
"playButton"));
126 horizontalLayout->addWidget(playButton);
128 horizontalSpacer_4 =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
130 horizontalLayout->addItem(horizontalSpacer_4);
132 stopButton =
new QToolButton(RtpPlayerDialog);
133 stopButton->setObjectName(QStringLiteral(
"stopButton"));
135 horizontalLayout->addWidget(stopButton);
137 horizontalSpacer_3 =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
139 horizontalLayout->addItem(horizontalSpacer_3);
141 label_3 =
new QLabel(RtpPlayerDialog);
142 label_3->setObjectName(QStringLiteral(
"label_3"));
144 horizontalLayout->addWidget(label_3);
146 outputDeviceComboBox =
new QComboBox(RtpPlayerDialog);
147 outputDeviceComboBox->setObjectName(QStringLiteral(
"outputDeviceComboBox"));
149 horizontalLayout->addWidget(outputDeviceComboBox);
151 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
153 horizontalLayout->addItem(horizontalSpacer_6);
155 horizontalLayout->setStretch(6, 1);
157 verticalLayout->addLayout(horizontalLayout);
159 horizontalLayout_2 =
new QHBoxLayout();
160 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
161 label =
new QLabel(RtpPlayerDialog);
162 label->setObjectName(QStringLiteral(
"label"));
164 horizontalLayout_2->addWidget(label);
166 jitterSpinBox =
new QDoubleSpinBox(RtpPlayerDialog);
167 jitterSpinBox->setObjectName(QStringLiteral(
"jitterSpinBox"));
168 jitterSpinBox->setDecimals(0);
169 jitterSpinBox->setMaximum(500);
170 jitterSpinBox->setSingleStep(5);
171 jitterSpinBox->setValue(50);
173 horizontalLayout_2->addWidget(jitterSpinBox);
175 horizontalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
177 horizontalLayout_2->addItem(horizontalSpacer_2);
179 label_2 =
new QLabel(RtpPlayerDialog);
180 label_2->setObjectName(QStringLiteral(
"label_2"));
182 horizontalLayout_2->addWidget(label_2);
184 timingComboBox =
new QComboBox(RtpPlayerDialog);
185 timingComboBox->setObjectName(QStringLiteral(
"timingComboBox"));
187 horizontalLayout_2->addWidget(timingComboBox);
189 horizontalSpacer =
new QSpacerItem(20, 10, QSizePolicy::Expanding, QSizePolicy::Minimum);
191 horizontalLayout_2->addItem(horizontalSpacer);
193 todCheckBox =
new QCheckBox(RtpPlayerDialog);
194 todCheckBox->setObjectName(QStringLiteral(
"todCheckBox"));
196 horizontalLayout_2->addWidget(todCheckBox);
198 horizontalSpacer_5 =
new QSpacerItem(48, 24, QSizePolicy::Expanding, QSizePolicy::Minimum);
200 horizontalLayout_2->addItem(horizontalSpacer_5);
202 horizontalLayout_2->setStretch(7, 1);
204 verticalLayout->addLayout(horizontalLayout_2);
206 buttonBox =
new QDialogButtonBox(RtpPlayerDialog);
207 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
208 buttonBox->setOrientation(Qt::Horizontal);
209 buttonBox->setStandardButtons(QDialogButtonBox::Close|QDialogButtonBox::Help);
211 verticalLayout->addWidget(buttonBox);
214 retranslateUi(RtpPlayerDialog);
215 QObject::connect(buttonBox, SIGNAL(accepted()), RtpPlayerDialog, SLOT(accept()));
216 QObject::connect(buttonBox, SIGNAL(rejected()), RtpPlayerDialog, SLOT(reject()));
218 QMetaObject::connectSlotsByName(RtpPlayerDialog);
221 void retranslateUi(QDialog *RtpPlayerDialog)
223 RtpPlayerDialog->setWindowTitle(QApplication::translate(
"RtpPlayerDialog",
"RTP Player", 0));
224 actionReset->setText(QApplication::translate(
"RtpPlayerDialog",
"Reset Graph", 0));
225 #ifndef QT_NO_TOOLTIP 226 actionReset->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Reset the graph to its initial state.", 0));
227 #endif // QT_NO_TOOLTIP 228 actionReset->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"0", 0));
229 actionZoomIn->setText(QApplication::translate(
"RtpPlayerDialog",
"Zoom In", 0));
230 #ifndef QT_NO_TOOLTIP 231 actionZoomIn->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Zoom In", 0));
232 #endif // QT_NO_TOOLTIP 233 actionZoomIn->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"+", 0));
234 actionZoomOut->setText(QApplication::translate(
"RtpPlayerDialog",
"Zoom Out", 0));
235 #ifndef QT_NO_TOOLTIP 236 actionZoomOut->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Zoom Out", 0));
237 #endif // QT_NO_TOOLTIP 238 actionZoomOut->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"-", 0));
239 actionMoveLeft10->setText(QApplication::translate(
"RtpPlayerDialog",
"Move Left 10 Pixels", 0));
240 #ifndef QT_NO_TOOLTIP 241 actionMoveLeft10->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Move Left 10 Pixels", 0));
242 #endif // QT_NO_TOOLTIP 243 actionMoveLeft10->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Left", 0));
244 actionMoveRight10->setText(QApplication::translate(
"RtpPlayerDialog",
"Move Right 10 Pixels", 0));
245 #ifndef QT_NO_TOOLTIP 246 actionMoveRight10->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Move Right 10 Pixels", 0));
247 #endif // QT_NO_TOOLTIP 248 actionMoveRight10->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Right", 0));
249 actionMoveLeft1->setText(QApplication::translate(
"RtpPlayerDialog",
"Move Left 1 Pixels", 0));
250 #ifndef QT_NO_TOOLTIP 251 actionMoveLeft1->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Move Left 1 Pixels", 0));
252 #endif // QT_NO_TOOLTIP 253 actionMoveLeft1->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Shift+Left", 0));
254 actionMoveRight1->setText(QApplication::translate(
"RtpPlayerDialog",
"Move Right 1 Pixels", 0));
255 #ifndef QT_NO_TOOLTIP 256 actionMoveRight1->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Move Right 1 Pixels", 0));
257 #endif // QT_NO_TOOLTIP 258 actionMoveRight1->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Shift+Right", 0));
259 actionGoToPacket->setText(QApplication::translate(
"RtpPlayerDialog",
"Go To Packet Under Cursor", 0));
260 #ifndef QT_NO_TOOLTIP 261 actionGoToPacket->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Go to packet currently under the cursor", 0));
262 #endif // QT_NO_TOOLTIP 263 actionGoToPacket->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"G", 0));
264 actionDragZoom->setText(QApplication::translate(
"RtpPlayerDialog",
"Drag / Zoom", 0));
265 #ifndef QT_NO_TOOLTIP 266 actionDragZoom->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Toggle mouse drag / zoom behavior", 0));
267 #endif // QT_NO_TOOLTIP 268 actionDragZoom->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Z", 0));
269 actionToggleTimeOrigin->setText(QApplication::translate(
"RtpPlayerDialog",
"Capture / Session Time Origin", 0));
270 #ifndef QT_NO_TOOLTIP 271 actionToggleTimeOrigin->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Toggle capture / session time origin", 0));
272 #endif // QT_NO_TOOLTIP 273 actionToggleTimeOrigin->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"T", 0));
274 actionCrosshairs->setText(QApplication::translate(
"RtpPlayerDialog",
"Crosshairs", 0));
275 #ifndef QT_NO_TOOLTIP 276 actionCrosshairs->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"Toggle crosshairs", 0));
277 #endif // QT_NO_TOOLTIP 278 actionCrosshairs->setShortcut(QApplication::translate(
"RtpPlayerDialog",
"Space", 0));
279 QTreeWidgetItem *___qtreewidgetitem = streamTreeWidget->headerItem();
280 ___qtreewidgetitem->setText(9, QApplication::translate(
"RtpPlayerDialog",
"Payloads", 0));
281 ___qtreewidgetitem->setText(8, QApplication::translate(
"RtpPlayerDialog",
"Sample Rate (Hz)", 0));
282 ___qtreewidgetitem->setText(7, QApplication::translate(
"RtpPlayerDialog",
"Time Span (s)", 0));
283 ___qtreewidgetitem->setText(6, QApplication::translate(
"RtpPlayerDialog",
"Packets", 0));
284 ___qtreewidgetitem->setText(5, QApplication::translate(
"RtpPlayerDialog",
"Setup Frame", 0));
285 ___qtreewidgetitem->setText(4, QApplication::translate(
"RtpPlayerDialog",
"SSRC", 0));
286 ___qtreewidgetitem->setText(3, QApplication::translate(
"RtpPlayerDialog",
"Destination Port", 0));
287 ___qtreewidgetitem->setText(2, QApplication::translate(
"RtpPlayerDialog",
"Destination Address", 0));
288 ___qtreewidgetitem->setText(1, QApplication::translate(
"RtpPlayerDialog",
"Source Port", 0));
289 ___qtreewidgetitem->setText(0, QApplication::translate(
"RtpPlayerDialog",
"Source Address", 0));
290 #ifndef QT_NO_TOOLTIP 291 hintLabel->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"<html><head/><body>\n" 293 "<h3>Valuable and amazing time-saving keyboard shortcuts</h3>\n" 296 "<tr><th>+</th><td>Zoom in</td></th>\n" 297 "<tr><th>-</th><td>Zoom out</td></th>\n" 298 "<tr><th>0</th><td>Reset graph to its initial state</td></th>\n" 300 "<tr><th>\342\206\222</th><td>Move right 10 pixels</td></th>\n" 301 "<tr><th>\342\206\220</th><td>Move left 10 pixels</td></th>\n" 302 "<tr><th><i>Shift+</i>\342\206\222</th><td>Move right 1 pixel</td></th>\n" 303 "<tr><th><i>Shift+</i>\342\206\220</th><td>Move left 1 pixel</td></th>\n" 305 "<tr><th>g</th><td>Go to packet under cursor</td></th>\n" 307 "<tr><th>z</th><td>Toggle mouse drag / zoom</td></th>\n" 308 "<tr><th>t</th><td>Toggle capture / session time origin</td></th>\n" 309 "<tr><th>Space</th><td>Toggle crosshairs</td></th>\n" 312 "</body></html>", 0));
313 #endif // QT_NO_TOOLTIP 314 hintLabel->setText(QApplication::translate(
"RtpPlayerDialog",
"<small><i>No audio</i></small>", 0));
315 playButton->setText(QString());
316 stopButton->setText(QString());
317 label_3->setText(QApplication::translate(
"RtpPlayerDialog",
"Output Device:", 0));
318 #ifndef QT_NO_TOOLTIP 319 label->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"<html><head/><body><p><br/></p></body></html>", 0));
320 #endif // QT_NO_TOOLTIP 321 label->setText(QApplication::translate(
"RtpPlayerDialog",
"Jitter Buffer:", 0));
322 #ifndef QT_NO_TOOLTIP 323 jitterSpinBox->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"The simulated jitter buffer in milliseconds.", 0));
324 #endif // QT_NO_TOOLTIP 325 label_2->setText(QApplication::translate(
"RtpPlayerDialog",
"Playback Timing:", 0));
326 timingComboBox->clear();
327 timingComboBox->insertItems(0, QStringList()
328 << QApplication::translate(
"RtpPlayerDialog",
"Jitter Buffer", 0)
329 << QApplication::translate(
"RtpPlayerDialog",
"RTP Timestamp", 0)
330 << QApplication::translate(
"RtpPlayerDialog",
"Uninterrupted Mode", 0)
332 #ifndef QT_NO_TOOLTIP 333 timingComboBox->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"<strong>Jitter Buffer</strong>: Use jitter buffer to simulate the RTP stream as heard by the end user.\n" 335 "<strong>RTP Timestamp</strong>: Use RTP Timestamp instead of the arriving packet time. This will not reproduce the RTP stream as the user heard it, but is useful when the RTP is being tunneled and the original packet timing is missing.\n" 337 "<strong>Uninterrupted Mode</strong>: Ignore the RTP Timestamp. Play the stream as it is completed. This is useful when the RTP timestamp is missing.", 0));
338 #endif // QT_NO_TOOLTIP 339 #ifndef QT_NO_TOOLTIP 340 todCheckBox->setToolTip(QApplication::translate(
"RtpPlayerDialog",
"<html><head/><body><p>View the timestamps as time of day (checked) or seconds since beginning of capture (unchecked).</p></body></html>", 0));
341 #endif // QT_NO_TOOLTIP 342 todCheckBox->setText(QApplication::translate(
"RtpPlayerDialog",
"Time of Day", 0));
353 #endif // UI_RTP_PLAYER_DIALOG_H Definition: ui_about_dialog.h:291
Definition: ui_rtp_player_dialog.h:33
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:1682
Definition: rtp_player_dialog.h:34
Definition: ui_rtp_player_dialog.h:348