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/QLineEdit>
21 #include <QtWidgets/QPlainTextEdit>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QSpacerItem>
24 #include <QtWidgets/QSpinBox>
25 #include <QtWidgets/QVBoxLayout>
26 #include <QtWidgets/QWidget>
27 #include "widgets/timespinbox.h"
31 class Ui_ImageProducerWidget
34 QAction *actionCopyFullFilePath;
35 QAction *actionOpenFolder;
36 QAction *actionSetFileDate;
37 QVBoxLayout *verticalLayout;
38 QLineEdit *filenameLabel;
40 QPlainTextEdit *notesTextEdit;
41 QFormLayout *formLayout;
43 QHBoxLayout *horizontalLayout_3;
44 QLabel *resolutionLabel;
45 QLabel *durationLabel;
46 QHBoxLayout *horizontalLayout_6;
47 TimeSpinBox *durationSpinBox;
48 QPushButton *defaultDurationButton;
49 QLabel *aspectRatioLabel;
50 QHBoxLayout *horizontalLayout_2;
51 QSpinBox *aspectNumSpinBox;
53 QSpinBox *aspectDenSpinBox;
54 QCheckBox *sequenceCheckBox;
56 QHBoxLayout *horizontalLayout_4;
57 QSpinBox *repeatSpinBox;
59 QHBoxLayout *horizontalLayout;
60 QPushButton *resetButton;
61 QPushButton *menuButton;
62 QSpacerItem *horizontalSpacer;
63 QSpacerItem *verticalSpacer;
65 void setupUi(QWidget *ImageProducerWidget)
67 if (ImageProducerWidget->objectName().isEmpty())
68 ImageProducerWidget->setObjectName(QString::fromUtf8(
"ImageProducerWidget"));
69 ImageProducerWidget->resize(366, 356);
70 actionCopyFullFilePath =
new QAction(ImageProducerWidget);
71 actionCopyFullFilePath->setObjectName(QString::fromUtf8(
"actionCopyFullFilePath"));
72 actionOpenFolder =
new QAction(ImageProducerWidget);
73 actionOpenFolder->setObjectName(QString::fromUtf8(
"actionOpenFolder"));
74 actionSetFileDate =
new QAction(ImageProducerWidget);
75 actionSetFileDate->setObjectName(QString::fromUtf8(
"actionSetFileDate"));
76 verticalLayout =
new QVBoxLayout(ImageProducerWidget);
77 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
78 filenameLabel =
new QLineEdit(ImageProducerWidget);
79 filenameLabel->setObjectName(QString::fromUtf8(
"filenameLabel"));
80 filenameLabel->setAlignment(Qt::AlignCenter);
82 verticalLayout->addWidget(filenameLabel);
84 label_2 =
new QLabel(ImageProducerWidget);
85 label_2->setObjectName(QString::fromUtf8(
"label_2"));
87 verticalLayout->addWidget(label_2);
89 notesTextEdit =
new QPlainTextEdit(ImageProducerWidget);
90 notesTextEdit->setObjectName(QString::fromUtf8(
"notesTextEdit"));
91 notesTextEdit->setMaximumSize(QSize(16777215, 60));
92 notesTextEdit->setFocusPolicy(Qt::StrongFocus);
93 notesTextEdit->setTabChangesFocus(
true);
95 verticalLayout->addWidget(notesTextEdit);
97 formLayout =
new QFormLayout();
98 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
99 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
100 formLayout->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
101 label =
new QLabel(ImageProducerWidget);
102 label->setObjectName(QString::fromUtf8(
"label"));
104 formLayout->setWidget(0, QFormLayout::LabelRole, label);
106 horizontalLayout_3 =
new QHBoxLayout();
107 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
108 resolutionLabel =
new QLabel(ImageProducerWidget);
109 resolutionLabel->setObjectName(QString::fromUtf8(
"resolutionLabel"));
110 resolutionLabel->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
112 horizontalLayout_3->addWidget(resolutionLabel);
115 formLayout->setLayout(0, QFormLayout::FieldRole, horizontalLayout_3);
117 durationLabel =
new QLabel(ImageProducerWidget);
118 durationLabel->setObjectName(QString::fromUtf8(
"durationLabel"));
119 durationLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
121 formLayout->setWidget(2, QFormLayout::LabelRole, durationLabel);
123 horizontalLayout_6 =
new QHBoxLayout();
124 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
125 durationSpinBox =
new TimeSpinBox(ImageProducerWidget);
126 durationSpinBox->setObjectName(QString::fromUtf8(
"durationSpinBox"));
127 durationSpinBox->setMaximumSize(QSize(150, 16777215));
128 durationSpinBox->setFocusPolicy(Qt::ClickFocus);
129 durationSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
130 durationSpinBox->setAccelerated(
true);
131 durationSpinBox->setKeyboardTracking(
false);
132 durationSpinBox->setMinimum(1);
133 durationSpinBox->setMaximum(2147483647);
135 horizontalLayout_6->addWidget(durationSpinBox);
137 defaultDurationButton =
new QPushButton(ImageProducerWidget);
138 defaultDurationButton->setObjectName(QString::fromUtf8(
"defaultDurationButton"));
140 horizontalLayout_6->addWidget(defaultDurationButton);
143 formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayout_6);
145 aspectRatioLabel =
new QLabel(ImageProducerWidget);
146 aspectRatioLabel->setObjectName(QString::fromUtf8(
"aspectRatioLabel"));
147 aspectRatioLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
149 formLayout->setWidget(3, QFormLayout::LabelRole, aspectRatioLabel);
151 horizontalLayout_2 =
new QHBoxLayout();
152 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
153 aspectNumSpinBox =
new QSpinBox(ImageProducerWidget);
154 aspectNumSpinBox->setObjectName(QString::fromUtf8(
"aspectNumSpinBox"));
155 aspectNumSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
156 aspectNumSpinBox->setKeyboardTracking(
false);
157 aspectNumSpinBox->setMinimum(1);
158 aspectNumSpinBox->setMaximum(1000);
159 aspectNumSpinBox->setValue(1);
161 horizontalLayout_2->addWidget(aspectNumSpinBox);
163 label_4 =
new QLabel(ImageProducerWidget);
164 label_4->setObjectName(QString::fromUtf8(
"label_4"));
166 horizontalLayout_2->addWidget(label_4);
168 aspectDenSpinBox =
new QSpinBox(ImageProducerWidget);
169 aspectDenSpinBox->setObjectName(QString::fromUtf8(
"aspectDenSpinBox"));
170 aspectDenSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
171 aspectDenSpinBox->setKeyboardTracking(
false);
172 aspectDenSpinBox->setMinimum(1);
173 aspectDenSpinBox->setMaximum(1000);
174 aspectDenSpinBox->setValue(1);
176 horizontalLayout_2->addWidget(aspectDenSpinBox);
179 formLayout->setLayout(3, QFormLayout::FieldRole, horizontalLayout_2);
181 sequenceCheckBox =
new QCheckBox(ImageProducerWidget);
182 sequenceCheckBox->setObjectName(QString::fromUtf8(
"sequenceCheckBox"));
184 formLayout->setWidget(4, QFormLayout::SpanningRole, sequenceCheckBox);
186 label_3 =
new QLabel(ImageProducerWidget);
187 label_3->setObjectName(QString::fromUtf8(
"label_3"));
189 formLayout->setWidget(5, QFormLayout::LabelRole, label_3);
191 horizontalLayout_4 =
new QHBoxLayout();
192 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
193 repeatSpinBox =
new QSpinBox(ImageProducerWidget);
194 repeatSpinBox->setObjectName(QString::fromUtf8(
"repeatSpinBox"));
195 repeatSpinBox->setEnabled(
false);
196 repeatSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
197 repeatSpinBox->setKeyboardTracking(
false);
198 repeatSpinBox->setMinimum(1);
199 repeatSpinBox->setMaximum(999);
200 repeatSpinBox->setValue(50);
202 horizontalLayout_4->addWidget(repeatSpinBox);
204 label_5 =
new QLabel(ImageProducerWidget);
205 label_5->setObjectName(QString::fromUtf8(
"label_5"));
207 horizontalLayout_4->addWidget(label_5);
210 formLayout->setLayout(5, QFormLayout::FieldRole, horizontalLayout_4);
213 verticalLayout->addLayout(formLayout);
215 horizontalLayout =
new QHBoxLayout();
216 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
217 resetButton =
new QPushButton(ImageProducerWidget);
218 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
220 horizontalLayout->addWidget(resetButton);
222 menuButton =
new QPushButton(ImageProducerWidget);
223 menuButton->setObjectName(QString::fromUtf8(
"menuButton"));
225 QString iconThemeName = QString::fromUtf8(
"format-justify-fill");
226 if (QIcon::hasThemeIcon(iconThemeName)) {
227 icon = QIcon::fromTheme(iconThemeName);
229 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/format-justify-fill.png"), QSize(), QIcon::Normal, QIcon::Off);
231 menuButton->setIcon(icon);
233 horizontalLayout->addWidget(menuButton);
235 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
237 horizontalLayout->addItem(horizontalSpacer);
240 verticalLayout->addLayout(horizontalLayout);
242 verticalSpacer =
new QSpacerItem(20, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
244 verticalLayout->addItem(verticalSpacer);
246 QWidget::setTabOrder(filenameLabel, notesTextEdit);
247 QWidget::setTabOrder(notesTextEdit, defaultDurationButton);
248 QWidget::setTabOrder(defaultDurationButton, aspectNumSpinBox);
249 QWidget::setTabOrder(aspectNumSpinBox, aspectDenSpinBox);
250 QWidget::setTabOrder(aspectDenSpinBox, sequenceCheckBox);
251 QWidget::setTabOrder(sequenceCheckBox, repeatSpinBox);
252 QWidget::setTabOrder(repeatSpinBox, resetButton);
253 QWidget::setTabOrder(resetButton, menuButton);
255 retranslateUi(ImageProducerWidget);
257 QMetaObject::connectSlotsByName(ImageProducerWidget);
260 void retranslateUi(QWidget *ImageProducerWidget)
262 ImageProducerWidget->setWindowTitle(QCoreApplication::translate(
"ImageProducerWidget",
"Form",
nullptr));
263 actionCopyFullFilePath->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Copy Full File Path",
nullptr));
264 actionOpenFolder->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Show in Folder",
nullptr));
265 actionSetFileDate->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Set Creation Time...",
nullptr));
266 label_2->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Comments:",
nullptr));
267 notesTextEdit->setPlainText(QString());
268 label->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Resolution",
nullptr));
269 resolutionLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"x",
nullptr));
270 durationLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Duration",
nullptr));
271 #if QT_CONFIG(tooltip)
272 defaultDurationButton->setToolTip(QCoreApplication::translate(
"ImageProducerWidget",
"Make the current duration value the default value",
nullptr));
273 #endif // QT_CONFIG(tooltip)
274 defaultDurationButton->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Set Default",
nullptr));
275 aspectRatioLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Pixel aspect ratio",
nullptr));
276 label_4->setText(QCoreApplication::translate(
"ImageProducerWidget",
":",
nullptr));
277 sequenceCheckBox->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Image sequence",
nullptr));
278 label_3->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Repeat",
nullptr));
279 repeatSpinBox->setSuffix(QCoreApplication::translate(
"ImageProducerWidget",
" frames",
nullptr));
280 label_5->setText(QCoreApplication::translate(
"ImageProducerWidget",
"per picture",
nullptr));
281 resetButton->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Reset",
nullptr));
282 #if QT_CONFIG(tooltip)
283 menuButton->setToolTip(QCoreApplication::translate(
"ImageProducerWidget",
"Display a menu of additional actions",
nullptr));
284 #endif // QT_CONFIG(tooltip)
285 menuButton->setText(QString());
291 class ImageProducerWidget:
public Ui_ImageProducerWidget {};
296 #endif // UI_IMAGEPRODUCERWIDGET_H