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 verticalLayout =
new QVBoxLayout(HtmlGeneratorWidget);
82 verticalLayout->setObjectName(
"verticalLayout");
83 label_2 =
new QLabel(HtmlGeneratorWidget);
84 label_2->setObjectName(
"label_2");
87 label_2->setFont(font);
88 label_2->setAlignment(Qt::AlignmentFlag::AlignCenter);
90 verticalLayout->addWidget(label_2);
92 stackedWidget =
new QStackedWidget(HtmlGeneratorWidget);
93 stackedWidget->setObjectName(
"stackedWidget");
94 iconPage =
new QWidget();
95 iconPage->setObjectName(
"iconPage");
96 iconPageLayout =
new QVBoxLayout(iconPage);
97 iconPageLayout->setObjectName(
"iconPageLayout");
98 iconPageLayout->setContentsMargins(0, 0, 0, 0);
99 presetIconView =
new QListWidget(iconPage);
100 presetIconView->setObjectName(
"presetIconView");
101 presetIconView->setAutoFillBackground(
false);
102 presetIconView->setStyleSheet(QString::fromUtf8(
"QListWidget {\n"
103" background-color: palette(window);\n"
105 presetIconView->setFrameShape(QFrame::Shape::NoFrame);
106 presetIconView->setIconSize(QSize(128, 128));
107 presetIconView->setMovement(QListView::Movement::Static);
108 presetIconView->setResizeMode(QListView::ResizeMode::Adjust);
109 presetIconView->setSpacing(10);
110 presetIconView->setViewMode(QListView::ViewMode::IconMode);
111 presetIconView->setUniformItemSizes(
true);
113 iconPageLayout->addWidget(presetIconView);
115 stackedWidget->addWidget(iconPage);
116 editorPage =
new QWidget();
117 editorPage->setObjectName(
"editorPage");
118 editorPageLayout =
new QVBoxLayout(editorPage);
119 editorPageLayout->setObjectName(
"editorPageLayout");
120 editorPageLayout->setContentsMargins(0, 0, 0, 0);
121 scrollArea =
new QScrollArea(editorPage);
122 scrollArea->setObjectName(
"scrollArea");
123 scrollArea->setFrameShape(QFrame::Shape::NoFrame);
124 scrollArea->setWidgetResizable(
true);
125 HTML =
new QWidget();
126 HTML->setObjectName(
"HTML");
127 HTML->setGeometry(QRect(0, 0, 437, 557));
128 verticalLayout_2 =
new QVBoxLayout(HTML);
129 verticalLayout_2->setSpacing(3);
130 verticalLayout_2->setObjectName(
"verticalLayout_2");
131 verticalLayout_2->setContentsMargins(6, 6, 6, 0);
132 preset =
new ServicePresetWidget(HTML);
133 preset->setObjectName(
"preset");
135 verticalLayout_2->addWidget(preset);
137 textLabel =
new QLabel(HTML);
138 textLabel->setObjectName(
"textLabel");
139 textLabel->setFont(font);
140 textLabel->setVisible(
false);
142 verticalLayout_2->addWidget(textLabel);
144 textVerticalLayout =
new QVBoxLayout();
145 textVerticalLayout->setObjectName(
"textVerticalLayout");
146 textVerticalLayout->setContentsMargins(20, 0, 0, 0);
147 line1HorizontalLayout =
new QHBoxLayout();
148 line1HorizontalLayout->setObjectName(
"line1HorizontalLayout");
149 line1Label =
new QLabel(HTML);
150 line1Label->setObjectName(
"line1Label");
152 line1HorizontalLayout->addWidget(line1Label);
154 line1LineEdit =
new QLineEdit(HTML);
155 line1LineEdit->setObjectName(
"line1LineEdit");
157 line1HorizontalLayout->addWidget(line1LineEdit);
160 textVerticalLayout->addLayout(line1HorizontalLayout);
162 line2HorizontalLayout =
new QHBoxLayout();
163 line2HorizontalLayout->setObjectName(
"line2HorizontalLayout");
164 line2Label =
new QLabel(HTML);
165 line2Label->setObjectName(
"line2Label");
167 line2HorizontalLayout->addWidget(line2Label);
169 line2LineEdit =
new QLineEdit(HTML);
170 line2LineEdit->setObjectName(
"line2LineEdit");
172 line2HorizontalLayout->addWidget(line2LineEdit);
175 textVerticalLayout->addLayout(line2HorizontalLayout);
177 line3HorizontalLayout =
new QHBoxLayout();
178 line3HorizontalLayout->setObjectName(
"line3HorizontalLayout");
179 line3Label =
new QLabel(HTML);
180 line3Label->setObjectName(
"line3Label");
182 line3HorizontalLayout->addWidget(line3Label);
184 line3LineEdit =
new QLineEdit(HTML);
185 line3LineEdit->setObjectName(
"line3LineEdit");
187 line3HorizontalLayout->addWidget(line3LineEdit);
190 textVerticalLayout->addLayout(line3HorizontalLayout);
193 verticalLayout_2->addLayout(textVerticalLayout);
195 bodyToggleButton =
new QPushButton(HTML);
196 bodyToggleButton->setObjectName(
"bodyToggleButton");
197 bodyToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
198 bodyToggleButton->setCheckable(
true);
199 bodyToggleButton->setChecked(
false);
200 bodyToggleButton->setFlat(
true);
202 verticalLayout_2->addWidget(bodyToggleButton);
204 bodyVerticalLayout =
new QVBoxLayout();
205 bodyVerticalLayout->setObjectName(
"bodyVerticalLayout");
206 bodyVerticalLayout->setContentsMargins(20, 0, 0, 0);
207 bodyHorizontalLayout =
new QHBoxLayout();
208 bodyHorizontalLayout->setObjectName(
"bodyHorizontalLayout");
209 colorButton =
new QPushButton(HTML);
210 colorButton->setObjectName(
"colorButton");
212 bodyHorizontalLayout->addWidget(colorButton);
214 colorLabel =
new QLabel(HTML);
215 colorLabel->setObjectName(
"colorLabel");
216 QSizePolicy sizePolicy(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::Preferred);
217 sizePolicy.setHorizontalStretch(1);
218 sizePolicy.setVerticalStretch(0);
219 sizePolicy.setHeightForWidth(colorLabel->sizePolicy().hasHeightForWidth());
220 colorLabel->setSizePolicy(sizePolicy);
221 colorLabel->setTextInteractionFlags(Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse);
223 bodyHorizontalLayout->addWidget(colorLabel);
225 pushButton =
new QPushButton(HTML);
226 pushButton->setObjectName(
"pushButton");
228 bodyHorizontalLayout->addWidget(pushButton);
230 bodySpacerLabel =
new QLabel(HTML);
231 bodySpacerLabel->setObjectName(
"bodySpacerLabel");
232 QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
233 sizePolicy1.setHorizontalStretch(2);
234 sizePolicy1.setVerticalStretch(0);
235 sizePolicy1.setHeightForWidth(bodySpacerLabel->sizePolicy().hasHeightForWidth());
236 bodySpacerLabel->setSizePolicy(sizePolicy1);
237 bodySpacerLabel->setText(QString::fromUtf8(
""));
239 bodyHorizontalLayout->addWidget(bodySpacerLabel);
242 bodyVerticalLayout->addLayout(bodyHorizontalLayout);
244 bodyTextEdit =
new QPlainTextEdit(HTML);
245 bodyTextEdit->setObjectName(
"bodyTextEdit");
247 bodyVerticalLayout->addWidget(bodyTextEdit);
250 verticalLayout_2->addLayout(bodyVerticalLayout);
252 cssToggleButton =
new QPushButton(HTML);
253 cssToggleButton->setObjectName(
"cssToggleButton");
254 cssToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
255 cssToggleButton->setCheckable(
true);
256 cssToggleButton->setChecked(
false);
257 cssToggleButton->setFlat(
true);
259 verticalLayout_2->addWidget(cssToggleButton);
261 cssVerticalLayout =
new QVBoxLayout();
262 cssVerticalLayout->setObjectName(
"cssVerticalLayout");
263 cssVerticalLayout->setContentsMargins(20, 0, 0, 0);
264 cssTextEdit =
new QPlainTextEdit(HTML);
265 cssTextEdit->setObjectName(
"cssTextEdit");
267 cssVerticalLayout->addWidget(cssTextEdit);
270 verticalLayout_2->addLayout(cssVerticalLayout);
272 javascriptToggleButton =
new QPushButton(HTML);
273 javascriptToggleButton->setObjectName(
"javascriptToggleButton");
274 javascriptToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
275 javascriptToggleButton->setCheckable(
true);
276 javascriptToggleButton->setChecked(
false);
277 javascriptToggleButton->setFlat(
true);
279 verticalLayout_2->addWidget(javascriptToggleButton);
281 javascriptVerticalLayout =
new QVBoxLayout();
282 javascriptVerticalLayout->setObjectName(
"javascriptVerticalLayout");
283 javascriptVerticalLayout->setContentsMargins(20, 0, 0, 0);
284 javascriptTextEdit =
new QPlainTextEdit(HTML);
285 javascriptTextEdit->setObjectName(
"javascriptTextEdit");
287 javascriptVerticalLayout->addWidget(javascriptTextEdit);
290 verticalLayout_2->addLayout(javascriptVerticalLayout);
292 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
294 verticalLayout_2->addItem(verticalSpacer);
296 scrollArea->setWidget(HTML);
298 editorPageLayout->addWidget(scrollArea);
300 horizontalLayout =
new QHBoxLayout();
301 horizontalLayout->setObjectName(
"horizontalLayout");
302 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
304 horizontalLayout->addItem(horizontalSpacer);
306 imageButton =
new QPushButton(editorPage);
307 imageButton->setObjectName(
"imageButton");
309 horizontalLayout->addWidget(imageButton);
311 videoButton =
new QPushButton(editorPage);
312 videoButton->setObjectName(
"videoButton");
314 horizontalLayout->addWidget(videoButton);
316 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
318 horizontalLayout->addItem(horizontalSpacer_2);
321 editorPageLayout->addLayout(horizontalLayout);
323 stackedWidget->addWidget(editorPage);
325 verticalLayout->addWidget(stackedWidget);
328 retranslateUi(HtmlGeneratorWidget);
330 stackedWidget->setCurrentIndex(0);
333 QMetaObject::connectSlotsByName(HtmlGeneratorWidget);
336 void retranslateUi(QWidget *HtmlGeneratorWidget)
338 HtmlGeneratorWidget->setWindowTitle(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Form",
nullptr));
339 label_2->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"HTML",
nullptr));
340 textLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Text",
nullptr));
341 line1Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 1",
nullptr));
342 line2Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 2",
nullptr));
343 line3Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 3",
nullptr));
344#if QT_CONFIG(tooltip)
345 bodyToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the Body section",
nullptr));
347 bodyToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 Body",
nullptr));
348 colorButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Background color...",
nullptr));
349 colorLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"#00000000",
nullptr));
350#if QT_CONFIG(tooltip)
351 pushButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to set color to transparent",
nullptr));
353 pushButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Transparent",
nullptr));
354 bodyTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Do not include <html>, <head>, or <body> here",
nullptr));
355#if QT_CONFIG(tooltip)
356 cssToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the CSS section",
nullptr));
358 cssToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 CSS",
nullptr));
359 cssTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste stylesheets here",
nullptr));
360#if QT_CONFIG(tooltip)
361 javascriptToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the JavaScript section",
nullptr));
363 javascriptToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 JavaScript",
nullptr));
364 javascriptTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste JavaScript code here",
nullptr));
365 imageButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Image...",
nullptr));
366 videoButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Video...",
nullptr));
372 class HtmlGeneratorWidget:
public Ui_HtmlGeneratorWidget {};