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 QAction *actionDisableProxy;
38 QAction *actionMakeProxy;
39 QAction *actionDeleteProxy;
40 QAction *actionCopyHashCode;
41 QVBoxLayout *verticalLayout;
42 QLineEdit *filenameLabel;
44 QPlainTextEdit *notesTextEdit;
45 QFormLayout *formLayout;
47 QHBoxLayout *horizontalLayout_3;
48 QLabel *resolutionLabel;
49 QLabel *durationLabel;
50 QHBoxLayout *horizontalLayout_6;
51 TimeSpinBox *durationSpinBox;
52 QPushButton *defaultDurationButton;
53 QLabel *aspectRatioLabel;
54 QHBoxLayout *horizontalLayout_2;
55 QSpinBox *aspectNumSpinBox;
57 QSpinBox *aspectDenSpinBox;
58 QCheckBox *sequenceCheckBox;
60 QHBoxLayout *horizontalLayout_4;
61 QSpinBox *repeatSpinBox;
63 QHBoxLayout *horizontalLayout;
64 QPushButton *resetButton;
65 QPushButton *proxyButton;
66 QPushButton *menuButton;
67 QSpacerItem *horizontalSpacer;
68 QSpacerItem *verticalSpacer;
70 void setupUi(QWidget *ImageProducerWidget)
72 if (ImageProducerWidget->objectName().isEmpty())
73 ImageProducerWidget->setObjectName(QString::fromUtf8(
"ImageProducerWidget"));
74 ImageProducerWidget->resize(366, 356);
75 actionCopyFullFilePath =
new QAction(ImageProducerWidget);
76 actionCopyFullFilePath->setObjectName(QString::fromUtf8(
"actionCopyFullFilePath"));
77 actionOpenFolder =
new QAction(ImageProducerWidget);
78 actionOpenFolder->setObjectName(QString::fromUtf8(
"actionOpenFolder"));
79 actionSetFileDate =
new QAction(ImageProducerWidget);
80 actionSetFileDate->setObjectName(QString::fromUtf8(
"actionSetFileDate"));
81 actionDisableProxy =
new QAction(ImageProducerWidget);
82 actionDisableProxy->setObjectName(QString::fromUtf8(
"actionDisableProxy"));
83 actionDisableProxy->setCheckable(
true);
84 actionMakeProxy =
new QAction(ImageProducerWidget);
85 actionMakeProxy->setObjectName(QString::fromUtf8(
"actionMakeProxy"));
86 actionDeleteProxy =
new QAction(ImageProducerWidget);
87 actionDeleteProxy->setObjectName(QString::fromUtf8(
"actionDeleteProxy"));
88 actionCopyHashCode =
new QAction(ImageProducerWidget);
89 actionCopyHashCode->setObjectName(QString::fromUtf8(
"actionCopyHashCode"));
90 verticalLayout =
new QVBoxLayout(ImageProducerWidget);
91 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
92 filenameLabel =
new QLineEdit(ImageProducerWidget);
93 filenameLabel->setObjectName(QString::fromUtf8(
"filenameLabel"));
94 filenameLabel->setAlignment(Qt::AlignCenter);
96 verticalLayout->addWidget(filenameLabel);
98 label_2 =
new QLabel(ImageProducerWidget);
99 label_2->setObjectName(QString::fromUtf8(
"label_2"));
101 verticalLayout->addWidget(label_2);
103 notesTextEdit =
new QPlainTextEdit(ImageProducerWidget);
104 notesTextEdit->setObjectName(QString::fromUtf8(
"notesTextEdit"));
105 notesTextEdit->setMaximumSize(QSize(16777215, 60));
106 notesTextEdit->setFocusPolicy(Qt::StrongFocus);
107 notesTextEdit->setTabChangesFocus(
true);
109 verticalLayout->addWidget(notesTextEdit);
111 formLayout =
new QFormLayout();
112 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
113 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
114 formLayout->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
115 label =
new QLabel(ImageProducerWidget);
116 label->setObjectName(QString::fromUtf8(
"label"));
118 formLayout->setWidget(0, QFormLayout::LabelRole, label);
120 horizontalLayout_3 =
new QHBoxLayout();
121 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
122 resolutionLabel =
new QLabel(ImageProducerWidget);
123 resolutionLabel->setObjectName(QString::fromUtf8(
"resolutionLabel"));
124 resolutionLabel->setTextInteractionFlags(Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
126 horizontalLayout_3->addWidget(resolutionLabel);
129 formLayout->setLayout(0, QFormLayout::FieldRole, horizontalLayout_3);
131 durationLabel =
new QLabel(ImageProducerWidget);
132 durationLabel->setObjectName(QString::fromUtf8(
"durationLabel"));
133 durationLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
135 formLayout->setWidget(2, QFormLayout::LabelRole, durationLabel);
137 horizontalLayout_6 =
new QHBoxLayout();
138 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
139 durationSpinBox =
new TimeSpinBox(ImageProducerWidget);
140 durationSpinBox->setObjectName(QString::fromUtf8(
"durationSpinBox"));
141 durationSpinBox->setMaximumSize(QSize(150, 16777215));
142 durationSpinBox->setFocusPolicy(Qt::ClickFocus);
143 durationSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
144 durationSpinBox->setAccelerated(
true);
145 durationSpinBox->setKeyboardTracking(
false);
146 durationSpinBox->setMinimum(1);
147 durationSpinBox->setMaximum(2147483647);
149 horizontalLayout_6->addWidget(durationSpinBox);
151 defaultDurationButton =
new QPushButton(ImageProducerWidget);
152 defaultDurationButton->setObjectName(QString::fromUtf8(
"defaultDurationButton"));
154 horizontalLayout_6->addWidget(defaultDurationButton);
157 formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayout_6);
159 aspectRatioLabel =
new QLabel(ImageProducerWidget);
160 aspectRatioLabel->setObjectName(QString::fromUtf8(
"aspectRatioLabel"));
161 aspectRatioLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
163 formLayout->setWidget(3, QFormLayout::LabelRole, aspectRatioLabel);
165 horizontalLayout_2 =
new QHBoxLayout();
166 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
167 aspectNumSpinBox =
new QSpinBox(ImageProducerWidget);
168 aspectNumSpinBox->setObjectName(QString::fromUtf8(
"aspectNumSpinBox"));
169 aspectNumSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
170 aspectNumSpinBox->setKeyboardTracking(
false);
171 aspectNumSpinBox->setMinimum(1);
172 aspectNumSpinBox->setMaximum(1000);
173 aspectNumSpinBox->setValue(1);
175 horizontalLayout_2->addWidget(aspectNumSpinBox);
177 label_4 =
new QLabel(ImageProducerWidget);
178 label_4->setObjectName(QString::fromUtf8(
"label_4"));
180 horizontalLayout_2->addWidget(label_4);
182 aspectDenSpinBox =
new QSpinBox(ImageProducerWidget);
183 aspectDenSpinBox->setObjectName(QString::fromUtf8(
"aspectDenSpinBox"));
184 aspectDenSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
185 aspectDenSpinBox->setKeyboardTracking(
false);
186 aspectDenSpinBox->setMinimum(1);
187 aspectDenSpinBox->setMaximum(1000);
188 aspectDenSpinBox->setValue(1);
190 horizontalLayout_2->addWidget(aspectDenSpinBox);
193 formLayout->setLayout(3, QFormLayout::FieldRole, horizontalLayout_2);
195 sequenceCheckBox =
new QCheckBox(ImageProducerWidget);
196 sequenceCheckBox->setObjectName(QString::fromUtf8(
"sequenceCheckBox"));
198 formLayout->setWidget(4, QFormLayout::SpanningRole, sequenceCheckBox);
200 label_3 =
new QLabel(ImageProducerWidget);
201 label_3->setObjectName(QString::fromUtf8(
"label_3"));
203 formLayout->setWidget(5, QFormLayout::LabelRole, label_3);
205 horizontalLayout_4 =
new QHBoxLayout();
206 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
207 repeatSpinBox =
new QSpinBox(ImageProducerWidget);
208 repeatSpinBox->setObjectName(QString::fromUtf8(
"repeatSpinBox"));
209 repeatSpinBox->setEnabled(
false);
210 repeatSpinBox->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
211 repeatSpinBox->setKeyboardTracking(
false);
212 repeatSpinBox->setMinimum(1);
213 repeatSpinBox->setMaximum(999);
214 repeatSpinBox->setValue(50);
216 horizontalLayout_4->addWidget(repeatSpinBox);
218 label_5 =
new QLabel(ImageProducerWidget);
219 label_5->setObjectName(QString::fromUtf8(
"label_5"));
221 horizontalLayout_4->addWidget(label_5);
224 formLayout->setLayout(5, QFormLayout::FieldRole, horizontalLayout_4);
227 verticalLayout->addLayout(formLayout);
229 horizontalLayout =
new QHBoxLayout();
230 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
231 resetButton =
new QPushButton(ImageProducerWidget);
232 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
234 horizontalLayout->addWidget(resetButton);
236 proxyButton =
new QPushButton(ImageProducerWidget);
237 proxyButton->setObjectName(QString::fromUtf8(
"proxyButton"));
239 horizontalLayout->addWidget(proxyButton);
241 menuButton =
new QPushButton(ImageProducerWidget);
242 menuButton->setObjectName(QString::fromUtf8(
"menuButton"));
244 QString iconThemeName = QString::fromUtf8(
"show-menu");
245 if (QIcon::hasThemeIcon(iconThemeName)) {
246 icon = QIcon::fromTheme(iconThemeName);
248 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/show-menu.png"), QSize(), QIcon::Normal, QIcon::Off);
250 menuButton->setIcon(icon);
252 horizontalLayout->addWidget(menuButton);
254 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
256 horizontalLayout->addItem(horizontalSpacer);
259 verticalLayout->addLayout(horizontalLayout);
261 verticalSpacer =
new QSpacerItem(20, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
263 verticalLayout->addItem(verticalSpacer);
265 QWidget::setTabOrder(filenameLabel, notesTextEdit);
266 QWidget::setTabOrder(notesTextEdit, defaultDurationButton);
267 QWidget::setTabOrder(defaultDurationButton, aspectNumSpinBox);
268 QWidget::setTabOrder(aspectNumSpinBox, aspectDenSpinBox);
269 QWidget::setTabOrder(aspectDenSpinBox, sequenceCheckBox);
270 QWidget::setTabOrder(sequenceCheckBox, repeatSpinBox);
271 QWidget::setTabOrder(repeatSpinBox, resetButton);
272 QWidget::setTabOrder(resetButton, menuButton);
274 retranslateUi(ImageProducerWidget);
276 QMetaObject::connectSlotsByName(ImageProducerWidget);
279 void retranslateUi(QWidget *ImageProducerWidget)
281 ImageProducerWidget->setWindowTitle(QCoreApplication::translate(
"ImageProducerWidget",
"Form",
nullptr));
282 actionCopyFullFilePath->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Copy Full File Path",
nullptr));
283 actionOpenFolder->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Show in Folder",
nullptr));
284 actionSetFileDate->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Set Creation Time...",
nullptr));
285 actionDisableProxy->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Disable Proxy",
nullptr));
286 actionMakeProxy->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Make Proxy",
nullptr));
287 actionDeleteProxy->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Delete Proxy",
nullptr));
288 actionCopyHashCode->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Copy Hash Code",
nullptr));
289 label_2->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Comments:",
nullptr));
290 notesTextEdit->setPlainText(QString());
291 label->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Resolution",
nullptr));
292 resolutionLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"x",
nullptr));
293 durationLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Duration",
nullptr));
294 #if QT_CONFIG(tooltip)
295 defaultDurationButton->setToolTip(QCoreApplication::translate(
"ImageProducerWidget",
"Make the current duration value the default value",
nullptr));
297 defaultDurationButton->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Set Default",
nullptr));
298 aspectRatioLabel->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Pixel aspect ratio",
nullptr));
299 label_4->setText(QCoreApplication::translate(
"ImageProducerWidget",
":",
nullptr));
300 sequenceCheckBox->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Image sequence",
nullptr));
301 label_3->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Repeat",
nullptr));
302 repeatSpinBox->setSuffix(QCoreApplication::translate(
"ImageProducerWidget",
" frames",
nullptr));
303 label_5->setText(QCoreApplication::translate(
"ImageProducerWidget",
"per picture",
nullptr));
304 resetButton->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Reset",
nullptr));
305 proxyButton->setText(QCoreApplication::translate(
"ImageProducerWidget",
"Proxy",
nullptr));
306 #if QT_CONFIG(tooltip)
307 menuButton->setToolTip(QCoreApplication::translate(
"ImageProducerWidget",
"Properties Menu",
nullptr));
309 menuButton->setText(QString());
315 class ImageProducerWidget:
public Ui_ImageProducerWidget {};