9 #ifndef UI_IMAGEPRODUCERWIDGET_H 10 #define UI_IMAGEPRODUCERWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QFormLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QSpinBox> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 23 #include "widgets/timespinbox.h" 27 class Ui_ImageProducerWidget
30 QVBoxLayout *verticalLayout;
31 QLabel *filenameLabel;
32 QFormLayout *formLayout;
34 QHBoxLayout *horizontalLayout_3;
35 QLabel *resolutionLabel;
36 QLabel *durationLabel;
37 QLabel *aspectRatioLabel;
38 QHBoxLayout *horizontalLayout_2;
39 QSpinBox *aspectNumSpinBox;
41 QSpinBox *aspectDenSpinBox;
42 QCheckBox *sequenceCheckBox;
44 QHBoxLayout *horizontalLayout_4;
45 QSpinBox *repeatSpinBox;
47 QHBoxLayout *horizontalLayout_6;
48 TimeSpinBox *durationSpinBox;
49 QPushButton *defaultDurationButton;
50 QHBoxLayout *horizontalLayout;
51 QPushButton *resetButton;
52 QSpacerItem *horizontalSpacer;
53 QSpacerItem *verticalSpacer;
55 void setupUi(QWidget *ImageProducerWidget)
57 if (ImageProducerWidget->objectName().isEmpty())
58 ImageProducerWidget->setObjectName(QStringLiteral(
"ImageProducerWidget"));
59 ImageProducerWidget->resize(366, 300);
60 verticalLayout =
new QVBoxLayout(ImageProducerWidget);
61 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
62 filenameLabel =
new QLabel(ImageProducerWidget);
63 filenameLabel->setObjectName(QStringLiteral(
"filenameLabel"));
67 filenameLabel->setFont(font);
68 filenameLabel->setAlignment(Qt::AlignCenter);
70 verticalLayout->addWidget(filenameLabel);
72 formLayout =
new QFormLayout();
73 formLayout->setObjectName(QStringLiteral(
"formLayout"));
74 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
75 formLayout->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
76 label =
new QLabel(ImageProducerWidget);
77 label->setObjectName(QStringLiteral(
"label"));
79 formLayout->setWidget(0, QFormLayout::LabelRole, label);
81 horizontalLayout_3 =
new QHBoxLayout();
82 horizontalLayout_3->setObjectName(QStringLiteral(
"horizontalLayout_3"));
83 resolutionLabel =
new QLabel(ImageProducerWidget);
84 resolutionLabel->setObjectName(QStringLiteral(
"resolutionLabel"));
85 resolutionLabel->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
87 horizontalLayout_3->addWidget(resolutionLabel);
90 formLayout->setLayout(0, QFormLayout::FieldRole, horizontalLayout_3);
92 durationLabel =
new QLabel(ImageProducerWidget);
93 durationLabel->setObjectName(QStringLiteral(
"durationLabel"));
94 durationLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
96 formLayout->setWidget(2, QFormLayout::LabelRole, durationLabel);
98 aspectRatioLabel =
new QLabel(ImageProducerWidget);
99 aspectRatioLabel->setObjectName(QStringLiteral(
"aspectRatioLabel"));
100 aspectRatioLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
102 formLayout->setWidget(3, QFormLayout::LabelRole, aspectRatioLabel);
104 horizontalLayout_2 =
new QHBoxLayout();
105 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
106 aspectNumSpinBox =
new QSpinBox(ImageProducerWidget);
107 aspectNumSpinBox->setObjectName(QStringLiteral(
"aspectNumSpinBox"));
108 aspectNumSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
109 aspectNumSpinBox->setKeyboardTracking(
false);
110 aspectNumSpinBox->setMinimum(1);
111 aspectNumSpinBox->setMaximum(1000);
112 aspectNumSpinBox->setValue(1);
114 horizontalLayout_2->addWidget(aspectNumSpinBox);
116 label_4 =
new QLabel(ImageProducerWidget);
117 label_4->setObjectName(QStringLiteral(
"label_4"));
119 horizontalLayout_2->addWidget(label_4);
121 aspectDenSpinBox =
new QSpinBox(ImageProducerWidget);
122 aspectDenSpinBox->setObjectName(QStringLiteral(
"aspectDenSpinBox"));
123 aspectDenSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
124 aspectDenSpinBox->setKeyboardTracking(
false);
125 aspectDenSpinBox->setMinimum(1);
126 aspectDenSpinBox->setMaximum(1000);
127 aspectDenSpinBox->setValue(1);
129 horizontalLayout_2->addWidget(aspectDenSpinBox);
132 formLayout->setLayout(3, QFormLayout::FieldRole, horizontalLayout_2);
134 sequenceCheckBox =
new QCheckBox(ImageProducerWidget);
135 sequenceCheckBox->setObjectName(QStringLiteral(
"sequenceCheckBox"));
137 formLayout->setWidget(4, QFormLayout::SpanningRole, sequenceCheckBox);
139 label_3 =
new QLabel(ImageProducerWidget);
140 label_3->setObjectName(QStringLiteral(
"label_3"));
142 formLayout->setWidget(5, QFormLayout::LabelRole, label_3);
144 horizontalLayout_4 =
new QHBoxLayout();
145 horizontalLayout_4->setObjectName(QStringLiteral(
"horizontalLayout_4"));
146 repeatSpinBox =
new QSpinBox(ImageProducerWidget);
147 repeatSpinBox->setObjectName(QStringLiteral(
"repeatSpinBox"));
148 repeatSpinBox->setEnabled(
false);
149 repeatSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
150 repeatSpinBox->setKeyboardTracking(
false);
151 repeatSpinBox->setMinimum(1);
152 repeatSpinBox->setMaximum(999);
153 repeatSpinBox->setValue(50);
155 horizontalLayout_4->addWidget(repeatSpinBox);
157 label_5 =
new QLabel(ImageProducerWidget);
158 label_5->setObjectName(QStringLiteral(
"label_5"));
160 horizontalLayout_4->addWidget(label_5);
163 formLayout->setLayout(5, QFormLayout::FieldRole, horizontalLayout_4);
165 horizontalLayout_6 =
new QHBoxLayout();
166 horizontalLayout_6->setObjectName(QStringLiteral(
"horizontalLayout_6"));
167 durationSpinBox =
new TimeSpinBox(ImageProducerWidget);
168 durationSpinBox->setObjectName(QStringLiteral(
"durationSpinBox"));
169 durationSpinBox->setMaximumSize(QSize(150, 16777215));
170 durationSpinBox->setFocusPolicy(Qt::ClickFocus);
171 durationSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
172 durationSpinBox->setAccelerated(
true);
173 durationSpinBox->setKeyboardTracking(
false);
174 durationSpinBox->setMinimum(1);
175 durationSpinBox->setMaximum(2147483647);
177 horizontalLayout_6->addWidget(durationSpinBox);
179 defaultDurationButton =
new QPushButton(ImageProducerWidget);
180 defaultDurationButton->setObjectName(QStringLiteral(
"defaultDurationButton"));
182 horizontalLayout_6->addWidget(defaultDurationButton);
185 formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayout_6);
188 verticalLayout->addLayout(formLayout);
190 horizontalLayout =
new QHBoxLayout();
191 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
192 resetButton =
new QPushButton(ImageProducerWidget);
193 resetButton->setObjectName(QStringLiteral(
"resetButton"));
195 horizontalLayout->addWidget(resetButton);
197 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
199 horizontalLayout->addItem(horizontalSpacer);
202 verticalLayout->addLayout(horizontalLayout);
204 verticalSpacer =
new QSpacerItem(20, 170, QSizePolicy::Minimum, QSizePolicy::Expanding);
206 verticalLayout->addItem(verticalSpacer);
208 QWidget::setTabOrder(aspectNumSpinBox, aspectDenSpinBox);
209 QWidget::setTabOrder(aspectDenSpinBox, sequenceCheckBox);
210 QWidget::setTabOrder(sequenceCheckBox, repeatSpinBox);
211 QWidget::setTabOrder(repeatSpinBox, resetButton);
213 retranslateUi(ImageProducerWidget);
215 QMetaObject::connectSlotsByName(ImageProducerWidget);
218 void retranslateUi(QWidget *ImageProducerWidget)
220 ImageProducerWidget->setWindowTitle(QApplication::translate(
"ImageProducerWidget",
"Form",
nullptr));
221 filenameLabel->setText(QApplication::translate(
"ImageProducerWidget",
"TextLabel",
nullptr));
222 label->setText(QApplication::translate(
"ImageProducerWidget",
"Resolution",
nullptr));
223 resolutionLabel->setText(QApplication::translate(
"ImageProducerWidget",
"x",
nullptr));
224 durationLabel->setText(QApplication::translate(
"ImageProducerWidget",
"Duration",
nullptr));
225 aspectRatioLabel->setText(QApplication::translate(
"ImageProducerWidget",
"Pixel aspect ratio",
nullptr));
226 label_4->setText(QApplication::translate(
"ImageProducerWidget",
":",
nullptr));
227 sequenceCheckBox->setText(QApplication::translate(
"ImageProducerWidget",
"Image sequence",
nullptr));
228 label_3->setText(QApplication::translate(
"ImageProducerWidget",
"Repeat",
nullptr));
229 repeatSpinBox->setSuffix(QApplication::translate(
"ImageProducerWidget",
" frames",
nullptr));
230 label_5->setText(QApplication::translate(
"ImageProducerWidget",
"per picture",
nullptr));
231 #ifndef QT_NO_TOOLTIP 232 defaultDurationButton->setToolTip(QApplication::translate(
"ImageProducerWidget",
"Make the current duration value the default value",
nullptr));
233 #endif // QT_NO_TOOLTIP 234 defaultDurationButton->setText(QApplication::translate(
"ImageProducerWidget",
"Set Default",
nullptr));
235 resetButton->setText(QApplication::translate(
"ImageProducerWidget",
"Reset",
nullptr));
241 class ImageProducerWidget:
public Ui_ImageProducerWidget {};
246 #endif // UI_IMAGEPRODUCERWIDGET_H