9#ifndef UI_HTMLGENERATORWIDGET_H
10#define UI_HTMLGENERATORWIDGET_H
12#include <QtCore/QVariant>
13#include <QtWidgets/QApplication>
14#include <QtWidgets/QHBoxLayout>
15#include <QtWidgets/QLabel>
16#include <QtWidgets/QLineEdit>
17#include <QtWidgets/QListWidget>
18#include <QtWidgets/QPlainTextEdit>
19#include <QtWidgets/QPushButton>
20#include <QtWidgets/QScrollArea>
21#include <QtWidgets/QSpacerItem>
22#include <QtWidgets/QStackedWidget>
23#include <QtWidgets/QVBoxLayout>
24#include <QtWidgets/QWidget>
25#include "widgets/servicepresetwidget.h"
29class Ui_HtmlGeneratorWidget
32 QVBoxLayout *verticalLayout;
34 QStackedWidget *stackedWidget;
36 QVBoxLayout *iconPageLayout;
37 QListWidget *presetIconView;
39 QVBoxLayout *editorPageLayout;
40 QScrollArea *scrollArea;
42 QVBoxLayout *verticalLayout_2;
43 ServicePresetWidget *preset;
45 QVBoxLayout *textVerticalLayout;
46 QHBoxLayout *line1HorizontalLayout;
48 QLineEdit *line1LineEdit;
49 QHBoxLayout *line2HorizontalLayout;
51 QLineEdit *line2LineEdit;
52 QHBoxLayout *line3HorizontalLayout;
54 QLineEdit *line3LineEdit;
55 QPushButton *bodyToggleButton;
56 QVBoxLayout *bodyVerticalLayout;
57 QHBoxLayout *bodyHorizontalLayout;
58 QPushButton *colorButton;
60 QPushButton *pushButton;
61 QLabel *bodySpacerLabel;
62 QPlainTextEdit *bodyTextEdit;
63 QPushButton *cssToggleButton;
64 QVBoxLayout *cssVerticalLayout;
65 QPlainTextEdit *cssTextEdit;
66 QPushButton *javascriptToggleButton;
67 QVBoxLayout *javascriptVerticalLayout;
68 QPlainTextEdit *javascriptTextEdit;
69 QSpacerItem *verticalSpacer;
70 QHBoxLayout *horizontalLayout;
71 QSpacerItem *horizontalSpacer;
72 QPushButton *imageButton;
73 QPushButton *videoButton;
74 QSpacerItem *horizontalSpacer_2;
76 void setupUi(QWidget *HtmlGeneratorWidget)
78 if (HtmlGeneratorWidget->objectName().isEmpty())
79 HtmlGeneratorWidget->setObjectName(
"HtmlGeneratorWidget");
80 HtmlGeneratorWidget->resize(597, 815);
81#if QT_CONFIG(whatsthis)
82 HtmlGeneratorWidget->setWhatsThis(QString::fromUtf8(
"https://forum.shotcut.org/t/image-video-from-html-generator/50214/1"));
84 verticalLayout =
new QVBoxLayout(HtmlGeneratorWidget);
85 verticalLayout->setObjectName(
"verticalLayout");
86 label_2 =
new QLabel(HtmlGeneratorWidget);
87 label_2->setObjectName(
"label_2");
90 label_2->setFont(font);
91 label_2->setAlignment(Qt::AlignmentFlag::AlignCenter);
93 verticalLayout->addWidget(label_2);
95 stackedWidget =
new QStackedWidget(HtmlGeneratorWidget);
96 stackedWidget->setObjectName(
"stackedWidget");
97 iconPage =
new QWidget();
98 iconPage->setObjectName(
"iconPage");
99 iconPageLayout =
new QVBoxLayout(iconPage);
100 iconPageLayout->setObjectName(
"iconPageLayout");
101 iconPageLayout->setContentsMargins(0, 0, 0, 0);
102 presetIconView =
new QListWidget(iconPage);
103 presetIconView->setObjectName(
"presetIconView");
104 presetIconView->setAutoFillBackground(
false);
105 presetIconView->setStyleSheet(QString::fromUtf8(
"QListWidget {\n"
106" background-color: palette(window);\n"
108 presetIconView->setFrameShape(QFrame::Shape::NoFrame);
109 presetIconView->setIconSize(QSize(128, 128));
110 presetIconView->setMovement(QListView::Movement::Static);
111 presetIconView->setResizeMode(QListView::ResizeMode::Adjust);
112 presetIconView->setSpacing(10);
113 presetIconView->setViewMode(QListView::ViewMode::IconMode);
114 presetIconView->setUniformItemSizes(
true);
116 iconPageLayout->addWidget(presetIconView);
118 stackedWidget->addWidget(iconPage);
119 editorPage =
new QWidget();
120 editorPage->setObjectName(
"editorPage");
121 editorPageLayout =
new QVBoxLayout(editorPage);
122 editorPageLayout->setObjectName(
"editorPageLayout");
123 editorPageLayout->setContentsMargins(0, 0, 0, 0);
124 scrollArea =
new QScrollArea(editorPage);
125 scrollArea->setObjectName(
"scrollArea");
126 scrollArea->setFrameShape(QFrame::Shape::NoFrame);
127 scrollArea->setWidgetResizable(
true);
128 HTML =
new QWidget();
129 HTML->setObjectName(
"HTML");
130 HTML->setGeometry(QRect(0, 0, 437, 557));
131 verticalLayout_2 =
new QVBoxLayout(HTML);
132 verticalLayout_2->setSpacing(3);
133 verticalLayout_2->setObjectName(
"verticalLayout_2");
134 verticalLayout_2->setContentsMargins(6, 6, 6, 0);
135 preset =
new ServicePresetWidget(HTML);
136 preset->setObjectName(
"preset");
138 verticalLayout_2->addWidget(preset);
140 textLabel =
new QLabel(HTML);
141 textLabel->setObjectName(
"textLabel");
142 textLabel->setFont(font);
143 textLabel->setVisible(
false);
145 verticalLayout_2->addWidget(textLabel);
147 textVerticalLayout =
new QVBoxLayout();
148 textVerticalLayout->setObjectName(
"textVerticalLayout");
149 textVerticalLayout->setContentsMargins(20, 0, 0, 0);
150 line1HorizontalLayout =
new QHBoxLayout();
151 line1HorizontalLayout->setObjectName(
"line1HorizontalLayout");
152 line1Label =
new QLabel(HTML);
153 line1Label->setObjectName(
"line1Label");
155 line1HorizontalLayout->addWidget(line1Label);
157 line1LineEdit =
new QLineEdit(HTML);
158 line1LineEdit->setObjectName(
"line1LineEdit");
160 line1HorizontalLayout->addWidget(line1LineEdit);
163 textVerticalLayout->addLayout(line1HorizontalLayout);
165 line2HorizontalLayout =
new QHBoxLayout();
166 line2HorizontalLayout->setObjectName(
"line2HorizontalLayout");
167 line2Label =
new QLabel(HTML);
168 line2Label->setObjectName(
"line2Label");
170 line2HorizontalLayout->addWidget(line2Label);
172 line2LineEdit =
new QLineEdit(HTML);
173 line2LineEdit->setObjectName(
"line2LineEdit");
175 line2HorizontalLayout->addWidget(line2LineEdit);
178 textVerticalLayout->addLayout(line2HorizontalLayout);
180 line3HorizontalLayout =
new QHBoxLayout();
181 line3HorizontalLayout->setObjectName(
"line3HorizontalLayout");
182 line3Label =
new QLabel(HTML);
183 line3Label->setObjectName(
"line3Label");
185 line3HorizontalLayout->addWidget(line3Label);
187 line3LineEdit =
new QLineEdit(HTML);
188 line3LineEdit->setObjectName(
"line3LineEdit");
190 line3HorizontalLayout->addWidget(line3LineEdit);
193 textVerticalLayout->addLayout(line3HorizontalLayout);
196 verticalLayout_2->addLayout(textVerticalLayout);
198 bodyToggleButton =
new QPushButton(HTML);
199 bodyToggleButton->setObjectName(
"bodyToggleButton");
200 bodyToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
201 bodyToggleButton->setCheckable(
true);
202 bodyToggleButton->setChecked(
false);
203 bodyToggleButton->setFlat(
true);
205 verticalLayout_2->addWidget(bodyToggleButton);
207 bodyVerticalLayout =
new QVBoxLayout();
208 bodyVerticalLayout->setObjectName(
"bodyVerticalLayout");
209 bodyVerticalLayout->setContentsMargins(20, 0, 0, 0);
210 bodyHorizontalLayout =
new QHBoxLayout();
211 bodyHorizontalLayout->setObjectName(
"bodyHorizontalLayout");
212 colorButton =
new QPushButton(HTML);
213 colorButton->setObjectName(
"colorButton");
215 bodyHorizontalLayout->addWidget(colorButton);
217 colorLabel =
new QLabel(HTML);
218 colorLabel->setObjectName(
"colorLabel");
219 QSizePolicy sizePolicy(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::Preferred);
220 sizePolicy.setHorizontalStretch(1);
221 sizePolicy.setVerticalStretch(0);
222 sizePolicy.setHeightForWidth(colorLabel->sizePolicy().hasHeightForWidth());
223 colorLabel->setSizePolicy(sizePolicy);
224 colorLabel->setTextInteractionFlags(Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse);
226 bodyHorizontalLayout->addWidget(colorLabel);
228 pushButton =
new QPushButton(HTML);
229 pushButton->setObjectName(
"pushButton");
231 bodyHorizontalLayout->addWidget(pushButton);
233 bodySpacerLabel =
new QLabel(HTML);
234 bodySpacerLabel->setObjectName(
"bodySpacerLabel");
235 QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
236 sizePolicy1.setHorizontalStretch(2);
237 sizePolicy1.setVerticalStretch(0);
238 sizePolicy1.setHeightForWidth(bodySpacerLabel->sizePolicy().hasHeightForWidth());
239 bodySpacerLabel->setSizePolicy(sizePolicy1);
240 bodySpacerLabel->setText(QString::fromUtf8(
""));
242 bodyHorizontalLayout->addWidget(bodySpacerLabel);
245 bodyVerticalLayout->addLayout(bodyHorizontalLayout);
247 bodyTextEdit =
new QPlainTextEdit(HTML);
248 bodyTextEdit->setObjectName(
"bodyTextEdit");
250 bodyVerticalLayout->addWidget(bodyTextEdit);
253 verticalLayout_2->addLayout(bodyVerticalLayout);
255 cssToggleButton =
new QPushButton(HTML);
256 cssToggleButton->setObjectName(
"cssToggleButton");
257 cssToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
258 cssToggleButton->setCheckable(
true);
259 cssToggleButton->setChecked(
false);
260 cssToggleButton->setFlat(
true);
262 verticalLayout_2->addWidget(cssToggleButton);
264 cssVerticalLayout =
new QVBoxLayout();
265 cssVerticalLayout->setObjectName(
"cssVerticalLayout");
266 cssVerticalLayout->setContentsMargins(20, 0, 0, 0);
267 cssTextEdit =
new QPlainTextEdit(HTML);
268 cssTextEdit->setObjectName(
"cssTextEdit");
270 cssVerticalLayout->addWidget(cssTextEdit);
273 verticalLayout_2->addLayout(cssVerticalLayout);
275 javascriptToggleButton =
new QPushButton(HTML);
276 javascriptToggleButton->setObjectName(
"javascriptToggleButton");
277 javascriptToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
278 javascriptToggleButton->setCheckable(
true);
279 javascriptToggleButton->setChecked(
false);
280 javascriptToggleButton->setFlat(
true);
282 verticalLayout_2->addWidget(javascriptToggleButton);
284 javascriptVerticalLayout =
new QVBoxLayout();
285 javascriptVerticalLayout->setObjectName(
"javascriptVerticalLayout");
286 javascriptVerticalLayout->setContentsMargins(20, 0, 0, 0);
287 javascriptTextEdit =
new QPlainTextEdit(HTML);
288 javascriptTextEdit->setObjectName(
"javascriptTextEdit");
290 javascriptVerticalLayout->addWidget(javascriptTextEdit);
293 verticalLayout_2->addLayout(javascriptVerticalLayout);
295 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
297 verticalLayout_2->addItem(verticalSpacer);
299 scrollArea->setWidget(HTML);
301 editorPageLayout->addWidget(scrollArea);
303 horizontalLayout =
new QHBoxLayout();
304 horizontalLayout->setObjectName(
"horizontalLayout");
305 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
307 horizontalLayout->addItem(horizontalSpacer);
309 imageButton =
new QPushButton(editorPage);
310 imageButton->setObjectName(
"imageButton");
312 horizontalLayout->addWidget(imageButton);
314 videoButton =
new QPushButton(editorPage);
315 videoButton->setObjectName(
"videoButton");
317 horizontalLayout->addWidget(videoButton);
319 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
321 horizontalLayout->addItem(horizontalSpacer_2);
324 editorPageLayout->addLayout(horizontalLayout);
326 stackedWidget->addWidget(editorPage);
328 verticalLayout->addWidget(stackedWidget);
331 retranslateUi(HtmlGeneratorWidget);
333 stackedWidget->setCurrentIndex(0);
336 QMetaObject::connectSlotsByName(HtmlGeneratorWidget);
339 void retranslateUi(QWidget *HtmlGeneratorWidget)
341 HtmlGeneratorWidget->setWindowTitle(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Form",
nullptr));
342 label_2->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"HTML",
nullptr));
343 textLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Text",
nullptr));
344 line1Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 1",
nullptr));
345 line2Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 2",
nullptr));
346 line3Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 3",
nullptr));
347#if QT_CONFIG(tooltip)
348 bodyToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the Body section",
nullptr));
350 bodyToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 Body",
nullptr));
351 colorButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Background color...",
nullptr));
352 colorLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"#00000000",
nullptr));
353#if QT_CONFIG(tooltip)
354 pushButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to set color to transparent",
nullptr));
356 pushButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Transparent",
nullptr));
357 bodyTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Do not include <html>, <head>, or <body> here",
nullptr));
358#if QT_CONFIG(tooltip)
359 cssToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the CSS section",
nullptr));
361 cssToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 CSS",
nullptr));
362 cssTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste stylesheets here",
nullptr));
363#if QT_CONFIG(tooltip)
364 javascriptToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the JavaScript section",
nullptr));
366 javascriptToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 JavaScript",
nullptr));
367 javascriptTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste JavaScript code here",
nullptr));
368 imageButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Image...",
nullptr));
369 videoButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Video...",
nullptr));
375 class HtmlGeneratorWidget:
public Ui_HtmlGeneratorWidget {};