9 #ifndef UI_PQVCRTOOLBAR_H 10 #define UI_PQVCRTOOLBAR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QToolBar> 32 if (VCRToolbar->objectName().isEmpty())
33 VCRToolbar->setObjectName(QString::fromUtf8(
"VCRToolbar"));
34 VCRToolbar->setOrientation(Qt::Horizontal);
35 VCRToolbar->setProperty(
"PV_MUST_BE_MASTER", QVariant(
true));
36 actionVCRPlay =
new QAction(VCRToolbar);
37 actionVCRPlay->setObjectName(QString::fromUtf8(
"actionVCRPlay"));
38 actionVCRPlay->setEnabled(
false);
39 const QIcon icon = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrPlay.svg"));
40 actionVCRPlay->setIcon(icon);
41 actionVCRReverse =
new QAction(VCRToolbar);
42 actionVCRReverse->setObjectName(QString::fromUtf8(
"actionVCRReverse"));
43 actionVCRReverse->setEnabled(
false);
44 const QIcon icon1 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrReverse.svg"));
45 actionVCRReverse->setIcon(icon1);
46 actionVCRPreviousFrame =
new QAction(VCRToolbar);
47 actionVCRPreviousFrame->setObjectName(QString::fromUtf8(
"actionVCRPreviousFrame"));
48 actionVCRPreviousFrame->setEnabled(
false);
49 const QIcon icon2 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrBack.svg"));
50 actionVCRPreviousFrame->setIcon(icon2);
51 actionVCRPreviousFrame->setProperty(
"PV_MUST_BE_MASTER", QVariant(
true));
52 actionVCRFirstFrame =
new QAction(VCRToolbar);
53 actionVCRFirstFrame->setObjectName(QString::fromUtf8(
"actionVCRFirstFrame"));
54 actionVCRFirstFrame->setEnabled(
false);
55 const QIcon icon3 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrFirst.svg"));
56 actionVCRFirstFrame->setIcon(icon3);
57 actionVCRNextFrame =
new QAction(VCRToolbar);
58 actionVCRNextFrame->setObjectName(QString::fromUtf8(
"actionVCRNextFrame"));
59 actionVCRNextFrame->setEnabled(
false);
60 const QIcon icon4 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrForward.svg"));
61 actionVCRNextFrame->setIcon(icon4);
62 actionVCRLastFrame =
new QAction(VCRToolbar);
63 actionVCRLastFrame->setObjectName(QString::fromUtf8(
"actionVCRLastFrame"));
64 actionVCRLastFrame->setEnabled(
false);
65 const QIcon icon5 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrLast.svg"));
66 actionVCRLastFrame->setIcon(icon5);
67 actionVCRLoop =
new QAction(VCRToolbar);
68 actionVCRLoop->setObjectName(QString::fromUtf8(
"actionVCRLoop"));
69 actionVCRLoop->setCheckable(
true);
70 actionVCRLoop->setEnabled(
false);
71 const QIcon icon6 = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqVcrLoop.svg"));
72 actionVCRLoop->setIcon(icon6);
74 VCRToolbar->addAction(actionVCRFirstFrame);
75 VCRToolbar->addAction(actionVCRPreviousFrame);
76 VCRToolbar->addAction(actionVCRReverse);
77 VCRToolbar->addAction(actionVCRPlay);
78 VCRToolbar->addAction(actionVCRNextFrame);
79 VCRToolbar->addAction(actionVCRLastFrame);
80 VCRToolbar->addAction(actionVCRLoop);
84 QMetaObject::connectSlotsByName(VCRToolbar);
89 VCRToolbar->setWindowTitle(QCoreApplication::translate(
"pqVCRToolbar",
"VCR Controls",
nullptr));
90 actionVCRPlay->setText(QCoreApplication::translate(
"pqVCRToolbar",
"&Play",
nullptr));
91 actionVCRReverse->setText(QCoreApplication::translate(
"pqVCRToolbar",
"&Reverse",
nullptr));
92 actionVCRPreviousFrame->setText(QCoreApplication::translate(
"pqVCRToolbar",
"Pre&vious Frame",
nullptr));
93 actionVCRFirstFrame->setText(QCoreApplication::translate(
"pqVCRToolbar",
"&First Frame",
nullptr));
94 actionVCRNextFrame->setText(QCoreApplication::translate(
"pqVCRToolbar",
"&Next Frame",
nullptr));
95 actionVCRLastFrame->setText(QCoreApplication::translate(
"pqVCRToolbar",
"&Last Frame",
nullptr));
96 actionVCRLoop->setText(QCoreApplication::translate(
"pqVCRToolbar",
"L&oop",
nullptr));
97 actionVCRLoop->setIconText(QCoreApplication::translate(
"pqVCRToolbar",
"Loop",
nullptr));
98 #if QT_CONFIG(tooltip) 99 actionVCRLoop->setToolTip(QCoreApplication::translate(
"pqVCRToolbar",
"Loop",
nullptr));
100 #endif // QT_CONFIG(tooltip) 101 #if QT_CONFIG(statustip) 102 actionVCRLoop->setStatusTip(QCoreApplication::translate(
"pqVCRToolbar",
"Loop",
nullptr));
103 #endif // QT_CONFIG(statustip) 114 #endif // UI_PQVCRTOOLBAR_H