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/QPlainTextEdit>
18#include <QtWidgets/QPushButton>
19#include <QtWidgets/QScrollArea>
20#include <QtWidgets/QSpacerItem>
21#include <QtWidgets/QVBoxLayout>
22#include <QtWidgets/QWidget>
23#include "widgets/servicepresetwidget.h"
27class Ui_HtmlGeneratorWidget
30 QVBoxLayout *verticalLayout;
32 QScrollArea *scrollArea;
33 QWidget *scrollAreaWidgetContents;
34 QVBoxLayout *verticalLayout_2;
35 ServicePresetWidget *preset;
37 QVBoxLayout *textVerticalLayout;
38 QHBoxLayout *line1HorizontalLayout;
40 QLineEdit *line1LineEdit;
41 QHBoxLayout *line2HorizontalLayout;
43 QLineEdit *line2LineEdit;
44 QHBoxLayout *line3HorizontalLayout;
46 QLineEdit *line3LineEdit;
47 QPushButton *bodyToggleButton;
48 QVBoxLayout *bodyVerticalLayout;
49 QHBoxLayout *bodyHorizontalLayout;
50 QPushButton *colorButton;
52 QPushButton *pushButton;
53 QLabel *bodySpacerLabel;
54 QPlainTextEdit *bodyTextEdit;
55 QPushButton *cssToggleButton;
56 QVBoxLayout *cssVerticalLayout;
57 QPlainTextEdit *cssTextEdit;
58 QPushButton *javascriptToggleButton;
59 QVBoxLayout *javascriptVerticalLayout;
60 QPlainTextEdit *javascriptTextEdit;
61 QSpacerItem *verticalSpacer;
62 QHBoxLayout *horizontalLayout;
63 QSpacerItem *horizontalSpacer;
64 QPushButton *imageButton;
65 QPushButton *videoButton;
66 QSpacerItem *horizontalSpacer_2;
68 void setupUi(QWidget *HtmlGeneratorWidget)
70 if (HtmlGeneratorWidget->objectName().isEmpty())
71 HtmlGeneratorWidget->setObjectName(
"HtmlGeneratorWidget");
72 HtmlGeneratorWidget->resize(597, 815);
73 verticalLayout =
new QVBoxLayout(HtmlGeneratorWidget);
74 verticalLayout->setObjectName(
"verticalLayout");
75 label_2 =
new QLabel(HtmlGeneratorWidget);
76 label_2->setObjectName(
"label_2");
79 label_2->setFont(font);
80 label_2->setAlignment(Qt::AlignmentFlag::AlignCenter);
82 verticalLayout->addWidget(label_2);
84 scrollArea =
new QScrollArea(HtmlGeneratorWidget);
85 scrollArea->setObjectName(
"scrollArea");
86 scrollArea->setFrameShape(QFrame::Shape::NoFrame);
87 scrollArea->setWidgetResizable(
true);
88 scrollAreaWidgetContents =
new QWidget();
89 scrollAreaWidgetContents->setObjectName(
"scrollAreaWidgetContents");
90 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 575, 728));
91 verticalLayout_2 =
new QVBoxLayout(scrollAreaWidgetContents);
92 verticalLayout_2->setSpacing(3);
93 verticalLayout_2->setObjectName(
"verticalLayout_2");
94 verticalLayout_2->setContentsMargins(6, 6, 6, 0);
95 preset =
new ServicePresetWidget(scrollAreaWidgetContents);
96 preset->setObjectName(
"preset");
98 verticalLayout_2->addWidget(preset);
100 textLabel =
new QLabel(scrollAreaWidgetContents);
101 textLabel->setObjectName(
"textLabel");
102 textLabel->setFont(font);
103 textLabel->setVisible(
false);
105 verticalLayout_2->addWidget(textLabel);
107 textVerticalLayout =
new QVBoxLayout();
108 textVerticalLayout->setObjectName(
"textVerticalLayout");
109 textVerticalLayout->setContentsMargins(20, 0, 0, 0);
110 line1HorizontalLayout =
new QHBoxLayout();
111 line1HorizontalLayout->setObjectName(
"line1HorizontalLayout");
112 line1Label =
new QLabel(scrollAreaWidgetContents);
113 line1Label->setObjectName(
"line1Label");
115 line1HorizontalLayout->addWidget(line1Label);
117 line1LineEdit =
new QLineEdit(scrollAreaWidgetContents);
118 line1LineEdit->setObjectName(
"line1LineEdit");
120 line1HorizontalLayout->addWidget(line1LineEdit);
123 textVerticalLayout->addLayout(line1HorizontalLayout);
125 line2HorizontalLayout =
new QHBoxLayout();
126 line2HorizontalLayout->setObjectName(
"line2HorizontalLayout");
127 line2Label =
new QLabel(scrollAreaWidgetContents);
128 line2Label->setObjectName(
"line2Label");
130 line2HorizontalLayout->addWidget(line2Label);
132 line2LineEdit =
new QLineEdit(scrollAreaWidgetContents);
133 line2LineEdit->setObjectName(
"line2LineEdit");
135 line2HorizontalLayout->addWidget(line2LineEdit);
138 textVerticalLayout->addLayout(line2HorizontalLayout);
140 line3HorizontalLayout =
new QHBoxLayout();
141 line3HorizontalLayout->setObjectName(
"line3HorizontalLayout");
142 line3Label =
new QLabel(scrollAreaWidgetContents);
143 line3Label->setObjectName(
"line3Label");
145 line3HorizontalLayout->addWidget(line3Label);
147 line3LineEdit =
new QLineEdit(scrollAreaWidgetContents);
148 line3LineEdit->setObjectName(
"line3LineEdit");
150 line3HorizontalLayout->addWidget(line3LineEdit);
153 textVerticalLayout->addLayout(line3HorizontalLayout);
156 verticalLayout_2->addLayout(textVerticalLayout);
158 bodyToggleButton =
new QPushButton(scrollAreaWidgetContents);
159 bodyToggleButton->setObjectName(
"bodyToggleButton");
160 bodyToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
161 bodyToggleButton->setCheckable(
true);
162 bodyToggleButton->setChecked(
false);
163 bodyToggleButton->setFlat(
true);
165 verticalLayout_2->addWidget(bodyToggleButton);
167 bodyVerticalLayout =
new QVBoxLayout();
168 bodyVerticalLayout->setObjectName(
"bodyVerticalLayout");
169 bodyVerticalLayout->setContentsMargins(20, 0, 0, 0);
170 bodyHorizontalLayout =
new QHBoxLayout();
171 bodyHorizontalLayout->setObjectName(
"bodyHorizontalLayout");
172 colorButton =
new QPushButton(scrollAreaWidgetContents);
173 colorButton->setObjectName(
"colorButton");
175 bodyHorizontalLayout->addWidget(colorButton);
177 colorLabel =
new QLabel(scrollAreaWidgetContents);
178 colorLabel->setObjectName(
"colorLabel");
179 QSizePolicy sizePolicy(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::Preferred);
180 sizePolicy.setHorizontalStretch(1);
181 sizePolicy.setVerticalStretch(0);
182 sizePolicy.setHeightForWidth(colorLabel->sizePolicy().hasHeightForWidth());
183 colorLabel->setSizePolicy(sizePolicy);
184 colorLabel->setTextInteractionFlags(Qt::TextInteractionFlag::LinksAccessibleByMouse|Qt::TextInteractionFlag::TextSelectableByKeyboard|Qt::TextInteractionFlag::TextSelectableByMouse);
186 bodyHorizontalLayout->addWidget(colorLabel);
188 pushButton =
new QPushButton(scrollAreaWidgetContents);
189 pushButton->setObjectName(
"pushButton");
191 bodyHorizontalLayout->addWidget(pushButton);
193 bodySpacerLabel =
new QLabel(scrollAreaWidgetContents);
194 bodySpacerLabel->setObjectName(
"bodySpacerLabel");
195 QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Preferred);
196 sizePolicy1.setHorizontalStretch(2);
197 sizePolicy1.setVerticalStretch(0);
198 sizePolicy1.setHeightForWidth(bodySpacerLabel->sizePolicy().hasHeightForWidth());
199 bodySpacerLabel->setSizePolicy(sizePolicy1);
200 bodySpacerLabel->setText(QString::fromUtf8(
""));
202 bodyHorizontalLayout->addWidget(bodySpacerLabel);
205 bodyVerticalLayout->addLayout(bodyHorizontalLayout);
207 bodyTextEdit =
new QPlainTextEdit(scrollAreaWidgetContents);
208 bodyTextEdit->setObjectName(
"bodyTextEdit");
210 bodyVerticalLayout->addWidget(bodyTextEdit);
213 verticalLayout_2->addLayout(bodyVerticalLayout);
215 cssToggleButton =
new QPushButton(scrollAreaWidgetContents);
216 cssToggleButton->setObjectName(
"cssToggleButton");
217 cssToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
218 cssToggleButton->setCheckable(
true);
219 cssToggleButton->setChecked(
false);
220 cssToggleButton->setFlat(
true);
222 verticalLayout_2->addWidget(cssToggleButton);
224 cssVerticalLayout =
new QVBoxLayout();
225 cssVerticalLayout->setObjectName(
"cssVerticalLayout");
226 cssVerticalLayout->setContentsMargins(20, 0, 0, 0);
227 cssTextEdit =
new QPlainTextEdit(scrollAreaWidgetContents);
228 cssTextEdit->setObjectName(
"cssTextEdit");
230 cssVerticalLayout->addWidget(cssTextEdit);
233 verticalLayout_2->addLayout(cssVerticalLayout);
235 javascriptToggleButton =
new QPushButton(scrollAreaWidgetContents);
236 javascriptToggleButton->setObjectName(
"javascriptToggleButton");
237 javascriptToggleButton->setStyleSheet(QString::fromUtf8(
"QPushButton { text-align: left; font-weight: bold; }"));
238 javascriptToggleButton->setCheckable(
true);
239 javascriptToggleButton->setChecked(
false);
240 javascriptToggleButton->setFlat(
true);
242 verticalLayout_2->addWidget(javascriptToggleButton);
244 javascriptVerticalLayout =
new QVBoxLayout();
245 javascriptVerticalLayout->setObjectName(
"javascriptVerticalLayout");
246 javascriptVerticalLayout->setContentsMargins(20, 0, 0, 0);
247 javascriptTextEdit =
new QPlainTextEdit(scrollAreaWidgetContents);
248 javascriptTextEdit->setObjectName(
"javascriptTextEdit");
250 javascriptVerticalLayout->addWidget(javascriptTextEdit);
253 verticalLayout_2->addLayout(javascriptVerticalLayout);
255 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
257 verticalLayout_2->addItem(verticalSpacer);
259 scrollArea->setWidget(scrollAreaWidgetContents);
261 verticalLayout->addWidget(scrollArea);
263 horizontalLayout =
new QHBoxLayout();
264 horizontalLayout->setObjectName(
"horizontalLayout");
265 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
267 horizontalLayout->addItem(horizontalSpacer);
269 imageButton =
new QPushButton(HtmlGeneratorWidget);
270 imageButton->setObjectName(
"imageButton");
272 horizontalLayout->addWidget(imageButton);
274 videoButton =
new QPushButton(HtmlGeneratorWidget);
275 videoButton->setObjectName(
"videoButton");
277 horizontalLayout->addWidget(videoButton);
279 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);
281 horizontalLayout->addItem(horizontalSpacer_2);
284 verticalLayout->addLayout(horizontalLayout);
287 retranslateUi(HtmlGeneratorWidget);
289 QMetaObject::connectSlotsByName(HtmlGeneratorWidget);
292 void retranslateUi(QWidget *HtmlGeneratorWidget)
294 HtmlGeneratorWidget->setWindowTitle(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Form",
nullptr));
295 label_2->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"HTML",
nullptr));
296 textLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Text",
nullptr));
297 line1Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 1",
nullptr));
298 line2Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 2",
nullptr));
299 line3Label->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Line 3",
nullptr));
300#if QT_CONFIG(tooltip)
301 bodyToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the Body section",
nullptr));
303 bodyToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 Body",
nullptr));
304 colorButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Background color...",
nullptr));
305 colorLabel->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"#00000000",
nullptr));
306#if QT_CONFIG(tooltip)
307 pushButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to set color to transparent",
nullptr));
309 pushButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Transparent",
nullptr));
310 bodyTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Do not include <html>, <head>, or <body> here",
nullptr));
311#if QT_CONFIG(tooltip)
312 cssToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the CSS section",
nullptr));
314 cssToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 CSS",
nullptr));
315 cssTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste stylesheets here",
nullptr));
316#if QT_CONFIG(tooltip)
317 javascriptToggleButton->setToolTip(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Click to expand or collapse the JavaScript section",
nullptr));
319 javascriptToggleButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"\342\226\266 JavaScript",
nullptr));
320 javascriptTextEdit->setPlaceholderText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Type or paste JavaScript code here",
nullptr));
321 imageButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Image...",
nullptr));
322 videoButton->setText(QCoreApplication::translate(
"HtmlGeneratorWidget",
"Generate Video...",
nullptr));
328 class HtmlGeneratorWidget:
public Ui_HtmlGeneratorWidget {};