9 #ifndef UI_PQTIMEMANAGERWIDGET_H 10 #define UI_PQTIMEMANAGERWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QSpacerItem> 18 #include <QtWidgets/QToolButton> 19 #include <QtWidgets/QVBoxLayout> 20 #include <QtWidgets/QWidget> 50 if (TimeManagerWidget->objectName().isEmpty())
51 TimeManagerWidget->setObjectName(QString::fromUtf8(
"TimeManagerWidget"));
52 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
53 sizePolicy.setHorizontalStretch(0);
54 sizePolicy.setVerticalStretch(0);
55 sizePolicy.setHeightForWidth(TimeManagerWidget->sizePolicy().hasHeightForWidth());
56 TimeManagerWidget->setSizePolicy(sizePolicy);
57 verticalLayout_2 =
new QVBoxLayout(TimeManagerWidget);
58 verticalLayout_2->setSpacing(0);
59 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
60 verticalLayout_2->setContentsMargins(5, 0, 5, 5);
61 timeProperties =
new QWidget(TimeManagerWidget);
62 timeProperties->setObjectName(QString::fromUtf8(
"timeProperties"));
63 horizontalLayout =
new QHBoxLayout(timeProperties);
64 horizontalLayout->setSpacing(6);
65 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
66 horizontalLayout->setContentsMargins(0, 0, 0, 0);
68 currentTime->setObjectName(QString::fromUtf8(
"currentTime"));
70 horizontalLayout->addWidget(currentTime);
73 vcrBar->setObjectName(QString::fromUtf8(
"vcrBar"));
75 horizontalLayout->addWidget(vcrBar);
77 nbOfFrames =
new QWidget(timeProperties);
78 nbOfFrames->setObjectName(QString::fromUtf8(
"nbOfFrames"));
79 horizontalLayout_8 =
new QHBoxLayout(nbOfFrames);
80 horizontalLayout_8->setSpacing(6);
81 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
82 horizontalLayout_8->setContentsMargins(0, 0, 0, 0);
83 label_7 =
new QLabel(nbOfFrames);
84 label_7->setObjectName(QString::fromUtf8(
"label_7"));
85 label_7->setEnabled(
true);
87 horizontalLayout_8->addWidget(label_7);
89 nbOfFramesValue =
new pqSpinBox(nbOfFrames);
90 nbOfFramesValue->setObjectName(QString::fromUtf8(
"nbOfFramesValue"));
91 nbOfFramesValue->setMinimum(2);
92 nbOfFramesValue->setMaximum(9999);
93 nbOfFramesValue->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType);
95 horizontalLayout_8->addWidget(nbOfFramesValue);
98 horizontalLayout->addWidget(nbOfFrames);
100 stride =
new QWidget(timeProperties);
101 stride->setObjectName(QString::fromUtf8(
"stride"));
102 horizontalLayout_5 =
new QHBoxLayout(stride);
103 horizontalLayout_5->setSpacing(6);
104 horizontalLayout_5->setObjectName(QString::fromUtf8(
"horizontalLayout_5"));
105 horizontalLayout_5->setContentsMargins(0, 0, 0, 0);
106 label_4 =
new QLabel(stride);
107 label_4->setObjectName(QString::fromUtf8(
"label_4"));
109 horizontalLayout_5->addWidget(label_4);
112 strideStep->setObjectName(QString::fromUtf8(
"strideStep"));
113 strideStep->setMinimum(1);
114 strideStep->setMaximum(9999);
115 strideStep->setValue(1);
117 horizontalLayout_5->addWidget(strideStep);
120 horizontalLayout->addWidget(stride);
122 horizontalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 horizontalLayout->addItem(horizontalSpacer);
126 advancedButton =
new QToolButton(timeProperties);
127 advancedButton->setObjectName(QString::fromUtf8(
"advancedButton"));
129 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqAdvanced.svg"), QSize(), QIcon::Normal, QIcon::Off);
130 advancedButton->setIcon(icon);
131 advancedButton->setCheckable(
true);
133 horizontalLayout->addWidget(advancedButton);
136 verticalLayout_2->addWidget(timeProperties);
139 timeline->setObjectName(QString::fromUtf8(
"timeline"));
141 verticalLayout_2->addWidget(timeline);
146 QMetaObject::connectSlotsByName(TimeManagerWidget);
151 TimeManagerWidget->setWindowTitle(QCoreApplication::translate(
"TimeManagerWidget",
"TimeManager",
nullptr));
152 label_7->setText(QCoreApplication::translate(
"TimeManagerWidget",
"Number of frames",
nullptr));
153 label_4->setText(QCoreApplication::translate(
"TimeManagerWidget",
"Stride",
nullptr));
154 advancedButton->setText(QCoreApplication::translate(
"TimeManagerWidget",
"...",
nullptr));
165 #endif // UI_PQTIMEMANAGERWIDGET_H QSpinBox which fires editingFinished() signal when the value is changed by steps (increments).