12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QCheckBox>
17 #include <QtWidgets/QComboBox>
18 #include <QtWidgets/QFrame>
19 #include <QtWidgets/QGroupBox>
20 #include <QtWidgets/QHeaderView>
21 #include <QtWidgets/QLabel>
22 #include <QtWidgets/QRadioButton>
23 #include <QtWidgets/QSlider>
24 #include <QtWidgets/QWidget>
31 QGroupBox *PointLightBox;
32 QSlider *PointIntensitySlider;
33 QLabel *PointIntensity;
35 QSlider *GlossinessSlider;
36 QCheckBox *ShadowCheckBox;
38 QSlider *BorderWidthSlider;
40 QLabel *BorderVariance;
41 QSlider *BorderVarianceSlider;
42 QGroupBox *AmbientBox;
43 QSlider *AmbientIntensitySlider;
44 QLabel *AmbientIntensity;
45 QRadioButton *AmbientConstantRadioButton;
46 QRadioButton *AmbientOcclusionRadioButton;
47 QComboBox *OcclusionPresetBox;
48 QLabel *OcclusionQuality;
54 QComboBox *PresetComboBox;
57 QComboBox *ColorComboBox;
60 void setupUi(QWidget *Settings)
62 if (Settings->objectName().isEmpty())
63 Settings->setObjectName(QStringLiteral(
"Settings"));
64 Settings->resize(250, 573);
65 PointLightBox =
new QGroupBox(Settings);
66 PointLightBox->setObjectName(QStringLiteral(
"PointLightBox"));
67 PointLightBox->setGeometry(QRect(10, 170, 231, 101));
68 PointIntensitySlider =
new QSlider(PointLightBox);
69 PointIntensitySlider->setObjectName(QStringLiteral(
"PointIntensitySlider"));
70 PointIntensitySlider->setGeometry(QRect(100, 12, 101, 20));
71 PointIntensitySlider->setOrientation(Qt::Horizontal);
72 PointIntensity =
new QLabel(PointLightBox);
73 PointIntensity->setObjectName(QStringLiteral(
"PointIntensity"));
74 PointIntensity->setGeometry(QRect(30, 12, 91, 16));
75 Glossiness =
new QLabel(PointLightBox);
76 Glossiness->setObjectName(QStringLiteral(
"Glossiness"));
77 Glossiness->setGeometry(QRect(30, 42, 91, 16));
78 GlossinessSlider =
new QSlider(PointLightBox);
79 GlossinessSlider->setObjectName(QStringLiteral(
"GlossinessSlider"));
80 GlossinessSlider->setGeometry(QRect(100, 42, 101, 20));
81 GlossinessSlider->setOrientation(Qt::Horizontal);
82 ShadowCheckBox =
new QCheckBox(PointLightBox);
83 ShadowCheckBox->setObjectName(QStringLiteral(
"ShadowCheckBox"));
84 ShadowCheckBox->setGeometry(QRect(30, 70, 101, 17));
85 BorderBox =
new QGroupBox(Settings);
86 BorderBox->setObjectName(QStringLiteral(
"BorderBox"));
87 BorderBox->setGeometry(QRect(10, 480, 231, 71));
88 BorderWidthSlider =
new QSlider(BorderBox);
89 BorderWidthSlider->setObjectName(QStringLiteral(
"BorderWidthSlider"));
90 BorderWidthSlider->setGeometry(QRect(100, 10, 111, 20));
91 BorderWidthSlider->setOrientation(Qt::Horizontal);
92 BorderWidth =
new QLabel(BorderBox);
93 BorderWidth->setObjectName(QStringLiteral(
"BorderWidth"));
94 BorderWidth->setGeometry(QRect(30, 14, 46, 13));
95 BorderVariance =
new QLabel(BorderBox);
96 BorderVariance->setObjectName(QStringLiteral(
"BorderVariance"));
97 BorderVariance->setGeometry(QRect(10, 39, 91, 20));
98 BorderVarianceSlider =
new QSlider(BorderBox);
99 BorderVarianceSlider->setObjectName(QStringLiteral(
"BorderVarianceSlider"));
100 BorderVarianceSlider->setGeometry(QRect(100, 40, 111, 20));
101 BorderVarianceSlider->setOrientation(Qt::Horizontal);
102 AmbientBox =
new QGroupBox(Settings);
103 AmbientBox->setObjectName(QStringLiteral(
"AmbientBox"));
104 AmbientBox->setGeometry(QRect(10, 310, 231, 131));
105 AmbientBox->setFlat(
false);
106 AmbientBox->setCheckable(
false);
107 AmbientIntensitySlider =
new QSlider(AmbientBox);
108 AmbientIntensitySlider->setObjectName(QStringLiteral(
"AmbientIntensitySlider"));
109 AmbientIntensitySlider->setGeometry(QRect(100, 14, 101, 20));
110 AmbientIntensitySlider->setOrientation(Qt::Horizontal);
111 AmbientIntensity =
new QLabel(AmbientBox);
112 AmbientIntensity->setObjectName(QStringLiteral(
"AmbientIntensity"));
113 AmbientIntensity->setGeometry(QRect(30, 14, 91, 16));
114 AmbientConstantRadioButton =
new QRadioButton(AmbientBox);
115 AmbientConstantRadioButton->setObjectName(QStringLiteral(
"AmbientConstantRadioButton"));
116 AmbientConstantRadioButton->setGeometry(QRect(30, 44, 91, 17));
117 AmbientOcclusionRadioButton =
new QRadioButton(AmbientBox);
118 AmbientOcclusionRadioButton->setObjectName(QStringLiteral(
"AmbientOcclusionRadioButton"));
119 AmbientOcclusionRadioButton->setGeometry(QRect(30, 64, 111, 17));
120 OcclusionPresetBox =
new QComboBox(AmbientBox);
121 OcclusionPresetBox->setObjectName(QStringLiteral(
"OcclusionPresetBox"));
122 OcclusionPresetBox->setGeometry(QRect(145, 96, 71, 22));
123 OcclusionQuality =
new QLabel(AmbientBox);
124 OcclusionQuality->setObjectName(QStringLiteral(
"OcclusionQuality"));
125 OcclusionQuality->setGeometry(QRect(12, 98, 131, 16));
126 FileLabel =
new QLabel(Settings);
127 FileLabel->setObjectName(QStringLiteral(
"FileLabel"));
128 FileLabel->setGeometry(QRect(10, 10, 231, 20));
129 line =
new QFrame(Settings);
130 line->setObjectName(QStringLiteral(
"line"));
131 line->setGeometry(QRect(10, 31, 231, 16));
132 line->setFrameShape(QFrame::HLine);
133 line->setFrameShadow(QFrame::Sunken);
134 label =
new QLabel(Settings);
135 label->setObjectName(QStringLiteral(
"label"));
136 label->setGeometry(QRect(10, 280, 91, 31));
137 label_2 =
new QLabel(Settings);
138 label_2->setObjectName(QStringLiteral(
"label_2"));
139 label_2->setGeometry(QRect(10, 150, 61, 16));
140 label_3 =
new QLabel(Settings);
141 label_3->setObjectName(QStringLiteral(
"label_3"));
142 label_3->setGeometry(QRect(10, 53, 46, 13));
143 PresetComboBox =
new QComboBox(Settings);
144 PresetComboBox->setObjectName(QStringLiteral(
"PresetComboBox"));
145 PresetComboBox->setGeometry(QRect(90, 51, 141, 22));
146 label_4 =
new QLabel(Settings);
147 label_4->setObjectName(QStringLiteral(
"label_4"));
148 label_4->setGeometry(QRect(10, 460, 46, 13));
149 label_5 =
new QLabel(Settings);
150 label_5->setObjectName(QStringLiteral(
"label_5"));
151 label_5->setGeometry(QRect(10, 110, 101, 16));
152 ColorComboBox =
new QComboBox(Settings);
153 ColorComboBox->setObjectName(QStringLiteral(
"ColorComboBox"));
154 ColorComboBox->setGeometry(QRect(130, 108, 101, 22));
155 line_2 =
new QFrame(Settings);
156 line_2->setObjectName(QStringLiteral(
"line_2"));
157 line_2->setGeometry(QRect(10, 78, 231, 16));
158 line_2->setFrameShape(QFrame::HLine);
159 line_2->setFrameShadow(QFrame::Sunken);
161 retranslateUi(Settings);
163 QMetaObject::connectSlotsByName(Settings);
166 void retranslateUi(QWidget *Settings)
168 Settings->setWindowTitle(QApplication::translate(
"Settings",
"Settings", 0));
169 PointLightBox->setTitle(QString());
170 PointIntensity->setText(QApplication::translate(
"Settings",
"Intensity", 0));
171 Glossiness->setText(QApplication::translate(
"Settings",
"Glossiness", 0));
172 ShadowCheckBox->setText(QApplication::translate(
"Settings",
"Shadows", 0));
173 BorderBox->setTitle(QString());
174 BorderWidth->setText(QApplication::translate(
"Settings",
"Width", 0));
175 BorderVariance->setText(QApplication::translate(
"Settings",
"Depth Awareness", 0));
176 #ifndef QT_NO_TOOLTIP
177 AmbientBox->setToolTip(QString());
178 #endif // QT_NO_TOOLTIP
179 AmbientBox->setTitle(QString());
180 AmbientIntensity->setText(QApplication::translate(
"Settings",
"Intensity", 0));
181 AmbientConstantRadioButton->setText(QApplication::translate(
"Settings",
"Constant Term", 0));
182 AmbientOcclusionRadioButton->setText(QApplication::translate(
"Settings",
"Ambient Occlusion", 0));
183 OcclusionPresetBox->clear();
184 OcclusionPresetBox->insertItems(0, QStringList()
185 << QApplication::translate(
"Settings",
"Low", 0)
186 << QApplication::translate(
"Settings",
"Medium", 0)
187 << QApplication::translate(
"Settings",
"High", 0)
188 << QApplication::translate(
"Settings",
"Very High", 0)
190 OcclusionQuality->setText(QApplication::translate(
"Settings",
"Ambient Occlusion Quality", 0));
191 FileLabel->setText(QApplication::translate(
"Settings",
"OpenedFile.pdb", 0));
192 label->setText(QApplication::translate(
"Settings",
"<html><head/><body><p><span style=\" font-weight:600;\">Ambient Light</span></p></body></html>", 0));
193 label_2->setText(QApplication::translate(
"Settings",
"<b>Point Light<b>", 0));
194 label_3->setText(QApplication::translate(
"Settings",
"<b>Presets</b>", 0));
195 PresetComboBox->clear();
196 PresetComboBox->insertItems(0, QStringList()
198 << QApplication::translate(
"Settings",
"Combined Lighting", 0)
199 << QApplication::translate(
"Settings",
"Ambient Occlusion Only", 0)
200 << QApplication::translate(
"Settings",
"Direct Lighting Only", 0)
201 << QApplication::translate(
"Settings",
"Shape Perception", 0)
203 label_4->setText(QApplication::translate(
"Settings",
"<b>Borders</b>", 0));
204 label_5->setText(QApplication::translate(
"Settings",
"<b>Atom Color Mode</b>", 0));
205 ColorComboBox->clear();
206 ColorComboBox->insertItems(0, QStringList()
207 << QApplication::translate(
"Settings",
"Per Atom", 0)
208 << QApplication::translate(
"Settings",
"Per Chain", 0)
209 << QApplication::translate(
"Settings",
"No Color", 0)
221 #endif // UI_SETTINGS_H