9 #ifndef UI_PQBACKGROUNDEDITORWIDGET_H 10 #define UI_PQBACKGROUNDEDITORWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QSpacerItem> 19 #include <QtWidgets/QStackedWidget> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 44 void setupUi(QWidget *BackgroundEditorWidget)
46 if (BackgroundEditorWidget->objectName().isEmpty())
47 BackgroundEditorWidget->setObjectName(QString::fromUtf8(
"BackgroundEditorWidget"));
48 BackgroundEditorWidget->resize(262, 135);
49 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
50 sizePolicy.setHorizontalStretch(0);
51 sizePolicy.setVerticalStretch(0);
52 sizePolicy.setHeightForWidth(BackgroundEditorWidget->sizePolicy().hasHeightForWidth());
53 BackgroundEditorWidget->setSizePolicy(sizePolicy);
54 mainLayout =
new QVBoxLayout(BackgroundEditorWidget);
55 mainLayout->setObjectName(QString::fromUtf8(
"mainLayout"));
56 BackgroundType =
new QComboBox(BackgroundEditorWidget);
57 BackgroundType->addItem(QString());
58 BackgroundType->addItem(QString());
59 BackgroundType->addItem(QString());
60 BackgroundType->addItem(QString());
61 BackgroundType->setObjectName(QString::fromUtf8(
"BackgroundType"));
63 mainLayout->addWidget(BackgroundType);
65 stackedWidget =
new QStackedWidget(BackgroundEditorWidget);
66 stackedWidget->setObjectName(QString::fromUtf8(
"stackedWidget"));
67 page_1 =
new QWidget();
68 page_1->setObjectName(QString::fromUtf8(
"page_1"));
69 page1Layout =
new QGridLayout(page_1);
70 page1Layout->setObjectName(QString::fromUtf8(
"page1Layout"));
72 Color->setObjectName(QString::fromUtf8(
"Color"));
73 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
74 sizePolicy1.setHorizontalStretch(0);
75 sizePolicy1.setVerticalStretch(0);
76 sizePolicy1.setHeightForWidth(Color->sizePolicy().hasHeightForWidth());
77 Color->setSizePolicy(sizePolicy1);
79 page1Layout->addWidget(Color, 0, 0, 1, 1);
81 RestoreDefaultColor =
new QPushButton(page_1);
82 RestoreDefaultColor->setObjectName(QString::fromUtf8(
"RestoreDefaultColor"));
83 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
84 sizePolicy2.setHorizontalStretch(0);
85 sizePolicy2.setVerticalStretch(0);
86 sizePolicy2.setHeightForWidth(RestoreDefaultColor->sizePolicy().hasHeightForWidth());
87 RestoreDefaultColor->setSizePolicy(sizePolicy2);
88 RestoreDefaultColor->setMaximumSize(QSize(16777215, 16777215));
90 page1Layout->addWidget(RestoreDefaultColor, 0, 1, 1, 1);
93 Color2->setObjectName(QString::fromUtf8(
"Color2"));
94 sizePolicy1.setHeightForWidth(Color2->sizePolicy().hasHeightForWidth());
95 Color2->setSizePolicy(sizePolicy1);
97 page1Layout->addWidget(Color2, 1, 0, 1, 1);
99 RestoreDefaultColor2 =
new QPushButton(page_1);
100 RestoreDefaultColor2->setObjectName(QString::fromUtf8(
"RestoreDefaultColor2"));
101 sizePolicy2.setHeightForWidth(RestoreDefaultColor2->sizePolicy().hasHeightForWidth());
102 RestoreDefaultColor2->setSizePolicy(sizePolicy2);
103 RestoreDefaultColor2->setMinimumSize(QSize(0, 0));
104 RestoreDefaultColor2->setMaximumSize(QSize(16777215, 16777215));
106 page1Layout->addWidget(RestoreDefaultColor2, 1, 1, 1, 1);
108 verticalSpacer =
new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
110 page1Layout->addItem(verticalSpacer, 2, 0, 1, 1);
112 page1Layout->setColumnStretch(0, 1);
113 stackedWidget->addWidget(page_1);
114 page_3 =
new QWidget();
115 page_3->setObjectName(QString::fromUtf8(
"page_3"));
116 page3Layout =
new QVBoxLayout(page_3);
117 page3Layout->setObjectName(QString::fromUtf8(
"page3Layout"));
118 EnvLighting =
new QCheckBox(page_3);
119 EnvLighting->setObjectName(QString::fromUtf8(
"EnvLighting"));
121 page3Layout->addWidget(EnvLighting);
123 verticalSpacer_2 =
new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
125 page3Layout->addItem(verticalSpacer_2);
127 stackedWidget->addWidget(page_3);
129 mainLayout->addWidget(stackedWidget);
134 stackedWidget->setCurrentIndex(1);
137 QMetaObject::connectSlotsByName(BackgroundEditorWidget);
142 BackgroundType->setItemText(0, QCoreApplication::translate(
"BackgroundEditorWidget",
"Single color",
nullptr));
143 BackgroundType->setItemText(1, QCoreApplication::translate(
"BackgroundEditorWidget",
"Gradient",
nullptr));
144 BackgroundType->setItemText(2, QCoreApplication::translate(
"BackgroundEditorWidget",
"Image",
nullptr));
145 BackgroundType->setItemText(3, QCoreApplication::translate(
"BackgroundEditorWidget",
"Skybox",
nullptr));
147 Color->setText(QCoreApplication::translate(
"BackgroundEditorWidget",
"Color",
nullptr));
148 RestoreDefaultColor->setText(QCoreApplication::translate(
"BackgroundEditorWidget",
"Restore Default",
nullptr));
149 Color2->setText(QCoreApplication::translate(
"BackgroundEditorWidget",
"Color 2",
nullptr));
150 RestoreDefaultColor2->setText(QCoreApplication::translate(
"BackgroundEditorWidget",
"Restore Default",
nullptr));
151 EnvLighting->setText(QCoreApplication::translate(
"BackgroundEditorWidget",
"Use As Environment Lighting",
nullptr));
152 (void)BackgroundEditorWidget;
163 #endif // UI_PQBACKGROUNDEDITORWIDGET_H