9 #ifndef UI_PQANIMATIONTIMEWIDGET_H 10 #define UI_PQANIMATIONTIMEWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QRadioButton> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QWidget> 38 void setupUi(QWidget *AnimationTimeWidget)
40 if (AnimationTimeWidget->objectName().isEmpty())
41 AnimationTimeWidget->setObjectName(QString::fromUtf8(
"AnimationTimeWidget"));
42 AnimationTimeWidget->resize(400, 27);
43 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
44 sizePolicy.setHorizontalStretch(0);
45 sizePolicy.setVerticalStretch(0);
46 sizePolicy.setHeightForWidth(AnimationTimeWidget->sizePolicy().hasHeightForWidth());
47 AnimationTimeWidget->setSizePolicy(sizePolicy);
48 horizontalLayout =
new QHBoxLayout(AnimationTimeWidget);
49 horizontalLayout->setSpacing(2);
50 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
51 horizontalLayout->setContentsMargins(0, 0, 0, 0);
52 timeLabel =
new QLabel(AnimationTimeWidget);
53 timeLabel->setObjectName(QString::fromUtf8(
"timeLabel"));
55 horizontalLayout->addWidget(timeLabel);
57 radioButtonValue =
new QRadioButton(AnimationTimeWidget);
58 radioButtonValue->setObjectName(QString::fromUtf8(
"radioButtonValue"));
59 radioButtonValue->setChecked(
true);
61 horizontalLayout->addWidget(radioButtonValue);
64 timeValue->setObjectName(QString::fromUtf8(
"timeValue"));
65 timeValue->setProperty(
"resetCursorPositionOnEditingFinished", QVariant(
true));
66 timeValue->setProperty(
"useGlobalPrecisionAndNotation", QVariant(
false));
68 horizontalLayout->addWidget(timeValue);
70 timeValueComboBox =
new QComboBox(AnimationTimeWidget);
71 timeValueComboBox->setObjectName(QString::fromUtf8(
"timeValueComboBox"));
72 timeValueComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
74 horizontalLayout->addWidget(timeValueComboBox);
76 radioButtonStep =
new QRadioButton(AnimationTimeWidget);
77 radioButtonStep->setObjectName(QString::fromUtf8(
"radioButtonStep"));
78 radioButtonStep->setLayoutDirection(Qt::RightToLeft);
80 horizontalLayout->addWidget(radioButtonStep);
82 timestepValue =
new pqSpinBox(AnimationTimeWidget);
83 timestepValue->setObjectName(QString::fromUtf8(
"timestepValue"));
84 timestepValue->setEnabled(
false);
85 timestepValue->setMaximum(10000);
87 horizontalLayout->addWidget(timestepValue);
89 timestepCountLabel =
new QLabel(AnimationTimeWidget);
90 timestepCountLabel->setObjectName(QString::fromUtf8(
"timestepCountLabel"));
92 horizontalLayout->addWidget(timestepCountLabel);
94 horizontalSpacer =
new QSpacerItem(0, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
96 horizontalLayout->addItem(horizontalSpacer);
98 horizontalLayout->setStretch(1, 1);
99 horizontalLayout->setStretch(7, 1);
102 QObject::connect(radioButtonStep, SIGNAL(toggled(
bool)), timestepValue, SLOT(setEnabled(
bool)));
103 QObject::connect(radioButtonValue, SIGNAL(toggled(
bool)), timeValue, SLOT(setEnabled(
bool)));
105 QMetaObject::connectSlotsByName(AnimationTimeWidget);
110 AnimationTimeWidget->setWindowTitle(QCoreApplication::translate(
"AnimationTimeWidget",
"Form",
nullptr));
111 timeLabel->setText(QCoreApplication::translate(
"AnimationTimeWidget",
"Time:",
nullptr));
112 radioButtonValue->setText(QString());
113 timeValue->setText(QCoreApplication::translate(
"AnimationTimeWidget",
"0",
nullptr));
114 radioButtonStep->setText(QString());
115 timestepCountLabel->setText(QCoreApplication::translate(
"AnimationTimeWidget",
"of (TDB)",
nullptr));
126 #endif // UI_PQANIMATIONTIMEWIDGET_H QSpinBox which fires editingFinished() signal when the value is changed by steps (increments).
pqLineEdit subclass that supports a low precision view when inactive