9 #ifndef UI_IMAGEPRODUCERWIDGET_H 10 #define UI_IMAGEPRODUCERWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QAction> 15 #include <QtWidgets/QApplication> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QFormLayout> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QPlainTextEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QSpinBox> 24 #include <QtWidgets/QVBoxLayout> 25 #include <QtWidgets/QWidget> 26 #include "widgets/timespinbox.h" 30 class Ui_ImageProducerWidget
33 QAction *actionCopyFullFilePath;
34 QAction *actionOpenFolder;
35 QAction *actionSetFileDate;
36 QVBoxLayout *verticalLayout;
37 QLabel *filenameLabel;
39 QPlainTextEdit *notesTextEdit;
40 QFormLayout *formLayout;
42 QHBoxLayout *horizontalLayout_3;
43 QLabel *resolutionLabel;
44 QLabel *durationLabel;
45 QHBoxLayout *horizontalLayout_6;
46 TimeSpinBox *durationSpinBox;
47 QPushButton *defaultDurationButton;
48 QLabel *aspectRatioLabel;
49 QHBoxLayout *horizontalLayout_2;
50 QSpinBox *aspectNumSpinBox;
52 QSpinBox *aspectDenSpinBox;
53 QCheckBox *sequenceCheckBox;
55 QHBoxLayout *horizontalLayout_4;
56 QSpinBox *repeatSpinBox;
58 QHBoxLayout *horizontalLayout;
59 QPushButton *resetButton;
60 QPushButton *menuButton;
61 QSpacerItem *horizontalSpacer;
62 QSpacerItem *verticalSpacer;
64 void setupUi(QWidget *ImageProducerWidget)
66 if (ImageProducerWidget->objectName().isEmpty())
67 ImageProducerWidget->setObjectName(QString::fromUtf8(
"ImageProducerWidget"));
68 ImageProducerWidget->resize(366, 313);
69 actionCopyFullFilePath =
new QAction(ImageProducerWidget);
70 actionCopyFullFilePath->setObjectName(QString::fromUtf8(
"actionCopyFullFilePath"));
71 actionOpenFolder =
new QAction(ImageProducerWidget);
72 actionOpenFolder->setObjectName(QString::fromUtf8(
"actionOpenFolder"));
73 actionSetFileDate =
new QAction(ImageProducerWidget);
74 actionSetFileDate->setObjectName(QString::fromUtf8(
"actionSetFileDate"));
75 verticalLayout =
new QVBoxLayout(ImageProducerWidget);
76 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
77 filenameLabel =
new QLabel(ImageProducerWidget);
78 filenameLabel->setObjectName(QString::fromUtf8(
"filenameLabel"));
82 filenameLabel->setFont(font);
83 filenameLabel->setAlignment(Qt::AlignCenter);
85 verticalLayout->addWidget(filenameLabel);
87 label_2 =
new QLabel(ImageProducerWidget);
88 label_2->setObjectName(QString::fromUtf8(
"label_2"));
90 verticalLayout->addWidget(label_2);
92 notesTextEdit =
new QPlainTextEdit(ImageProducerWidget);
93 notesTextEdit->setObjectName(QString::fromUtf8(
"notesTextEdit"));
94 notesTextEdit->setMaximumSize(QSize(16777215, 60));
95 notesTextEdit->setFocusPolicy(Qt::StrongFocus);
96 notesTextEdit->setTabChangesFocus(
true);
98 verticalLayout->addWidget(notesTextEdit);
100 formLayout =
new QFormLayout();
101 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
102 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
103 formLayout->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
104 label =
new QLabel(ImageProducerWidget);
105 label->setObjectName(QString::fromUtf8(
"label"));
107 formLayout->setWidget(0, QFormLayout::LabelRole, label);
109 horizontalLayout_3 =
new QHBoxLayout();
110 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
111 resolutionLabel =
new QLabel(ImageProducerWidget);
112 resolutionLabel->setObjectName(QString::fromUtf8(
"resolutionLabel"));
113 resolutionLabel->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
115 horizontalLayout_3->addWidget(resolutionLabel);
118 formLayout->setLayout(0, QFormLayout::FieldRole, horizontalLayout_3);
120 durationLabel =
new QLabel(ImageProducerWidget);
121 durationLabel->setObjectName(QString::fromUtf8(
"durationLabel"));
122 durationLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
124 formLayout->setWidget(2, QFormLayout::LabelRole, durationLabel);
126 horizontalLayout_6 =
new QHBoxLayout();
127 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
128 durationSpinBox =
new TimeSpinBox(ImageProducerWidget);
129 durationSpinBox->setObjectName(QString::fromUtf8(
"durationSpinBox"));
130 durationSpinBox->setMaximumSize(QSize(150, 16777215));
131 durationSpinBox->setFocusPolicy(Qt::ClickFocus);
132 durationSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
133 durationSpinBox->setAccelerated(
true);
134 durationSpinBox->setKeyboardTracking(
false);
135 durationSpinBox->setMinimum(1);
136 durationSpinBox->setMaximum(2147483647);
138 horizontalLayout_6->addWidget(durationSpinBox);
140 defaultDurationButton =
new QPushButton(ImageProducerWidget);
141 defaultDurationButton->setObjectName(QString::fromUtf8(
"defaultDurationButton"));
143 horizontalLayout_6->addWidget(defaultDurationButton);
146 formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayout_6);
148 aspectRatioLabel =
new QLabel(ImageProducerWidget);
149 aspectRatioLabel->setObjectName(QString::fromUtf8(
"aspectRatioLabel"));
150 aspectRatioLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
152 formLayout->setWidget(3, QFormLayout::LabelRole, aspectRatioLabel);
154 horizontalLayout_2 =
new QHBoxLayout();
155 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
156 aspectNumSpinBox =
new QSpinBox(ImageProducerWidget);
157 aspectNumSpinBox->setObjectName(QString::fromUtf8(
"aspectNumSpinBox"));
158 aspectNumSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
159 aspectNumSpinBox->setKeyboardTracking(
false);
160 aspectNumSpinBox->setMinimum(1);
161 aspectNumSpinBox->setMaximum(1000);
162 aspectNumSpinBox->setValue(1);
164 horizontalLayout_2->addWidget(aspectNumSpinBox);
166 label_4 =
new QLabel(ImageProducerWidget);
167 label_4->setObjectName(QString::fromUtf8(
"label_4"));
169 horizontalLayout_2->addWidget(label_4);
171 aspectDenSpinBox =
new QSpinBox(ImageProducerWidget);
172 aspectDenSpinBox->setObjectName(QString::fromUtf8(
"aspectDenSpinBox"));
173 aspectDenSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
174 aspectDenSpinBox->setKeyboardTracking(
false);
175 aspectDenSpinBox->setMinimum(1);
176 aspectDenSpinBox->setMaximum(1000);
177 aspectDenSpinBox->setValue(1);
179 horizontalLayout_2->addWidget(aspectDenSpinBox);
182 formLayout->setLayout(3, QFormLayout::FieldRole, horizontalLayout_2);
184 sequenceCheckBox =
new QCheckBox(ImageProducerWidget);
185 sequenceCheckBox->setObjectName(QString::fromUtf8(
"sequenceCheckBox"));
187 formLayout->setWidget(4, QFormLayout::SpanningRole, sequenceCheckBox);
189 label_3 =
new QLabel(ImageProducerWidget);
190 label_3->setObjectName(QString::fromUtf8(
"label_3"));
192 formLayout->setWidget(5, QFormLayout::LabelRole, label_3);
194 horizontalLayout_4 =
new QHBoxLayout();
195 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
196 repeatSpinBox =
new QSpinBox(ImageProducerWidget);
197 repeatSpinBox->setObjectName(QString::fromUtf8(
"repeatSpinBox"));
198 repeatSpinBox->setEnabled(
false);
199 repeatSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
200 repeatSpinBox->setKeyboardTracking(
false);
201 repeatSpinBox->setMinimum(1);
202 repeatSpinBox->setMaximum(999);
203 repeatSpinBox->setValue(50);
205 horizontalLayout_4->addWidget(repeatSpinBox);
207 label_5 =
new QLabel(ImageProducerWidget);
208 label_5->setObjectName(QString::fromUtf8(
"label_5"));
210 horizontalLayout_4->addWidget(label_5);
213 formLayout->setLayout(5, QFormLayout::FieldRole, horizontalLayout_4);
216 verticalLayout->addLayout(formLayout);
218 horizontalLayout =
new QHBoxLayout();
219 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
220 resetButton =
new QPushButton(ImageProducerWidget);
221 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
223 horizontalLayout->addWidget(resetButton);
225 menuButton =
new QPushButton(ImageProducerWidget);
226 menuButton->setObjectName(QString::fromUtf8(
"menuButton"));
228 QString iconThemeName = QString::fromUtf8(
"format-justify-fill");
229 if (QIcon::hasThemeIcon(iconThemeName)) {
230 icon = QIcon::fromTheme(iconThemeName);
232 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
234 menuButton->setIcon(icon);
236 horizontalLayout->addWidget(menuButton);
238 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
240 horizontalLayout->addItem(horizontalSpacer);
243 verticalLayout->addLayout(horizontalLayout);
245 verticalSpacer =
new QSpacerItem(20, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
247 verticalLayout->addItem(verticalSpacer);
249 QWidget::setTabOrder(aspectNumSpinBox, aspectDenSpinBox);
250 QWidget::setTabOrder(aspectDenSpinBox, sequenceCheckBox);
251 QWidget::setTabOrder(sequenceCheckBox, repeatSpinBox);
252 QWidget::setTabOrder(repeatSpinBox, resetButton);
254 retranslateUi(ImageProducerWidget);
256 QMetaObject::connectSlotsByName(ImageProducerWidget);
259 void retranslateUi(QWidget *ImageProducerWidget)
261 ImageProducerWidget->setWindowTitle(QApplication::translate(
"ImageProducerWidget",
"Form",
nullptr));
262 actionCopyFullFilePath->setText(QApplication::translate(
"ImageProducerWidget",
"Copy Full File Path",
nullptr));
263 actionOpenFolder->setText(QApplication::translate(
"ImageProducerWidget",
"Show in Folder",
nullptr));
264 actionSetFileDate->setText(QApplication::translate(
"ImageProducerWidget",
"Set Creation Time...",
nullptr));
265 filenameLabel->setText(QApplication::translate(
"ImageProducerWidget",
"TextLabel",
nullptr));
266 label_2->setText(QApplication::translate(
"ImageProducerWidget",
"Comments:",
nullptr));
267 notesTextEdit->setPlainText(QString());
268 label->setText(QApplication::translate(
"ImageProducerWidget",
"Resolution",
nullptr));
269 resolutionLabel->setText(QApplication::translate(
"ImageProducerWidget",
"x",
nullptr));
270 durationLabel->setText(QApplication::translate(
"ImageProducerWidget",
"Duration",
nullptr));
271 #ifndef QT_NO_TOOLTIP 272 defaultDurationButton->setToolTip(QApplication::translate(
"ImageProducerWidget",
"Make the current duration value the default value",
nullptr));
273 #endif // QT_NO_TOOLTIP 274 defaultDurationButton->setText(QApplication::translate(
"ImageProducerWidget",
"Set Default",
nullptr));
275 aspectRatioLabel->setText(QApplication::translate(
"ImageProducerWidget",
"Pixel aspect ratio",
nullptr));
276 label_4->setText(QApplication::translate(
"ImageProducerWidget",
":",
nullptr));
277 sequenceCheckBox->setText(QApplication::translate(
"ImageProducerWidget",
"Image sequence",
nullptr));
278 label_3->setText(QApplication::translate(
"ImageProducerWidget",
"Repeat",
nullptr));
279 repeatSpinBox->setSuffix(QApplication::translate(
"ImageProducerWidget",
" frames",
nullptr));
280 label_5->setText(QApplication::translate(
"ImageProducerWidget",
"per picture",
nullptr));
281 resetButton->setText(QApplication::translate(
"ImageProducerWidget",
"Reset",
nullptr));
282 #ifndef QT_NO_TOOLTIP 283 menuButton->setToolTip(QApplication::translate(
"ImageProducerWidget",
"Display a menu of additional actions",
nullptr));
284 #endif // QT_NO_TOOLTIP 285 menuButton->setText(QString());
291 class ImageProducerWidget:
public Ui_ImageProducerWidget {};
296 #endif // UI_IMAGEPRODUCERWIDGET_H