12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QComboBox>
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QGroupBox>
19 #include <QtWidgets/QHBoxLayout>
20 #include <QtWidgets/QHeaderView>
21 #include <QtWidgets/QLabel>
22 #include <QtWidgets/QMainWindow>
23 #include <QtWidgets/QMenu>
24 #include <QtWidgets/QMenuBar>
25 #include <QtWidgets/QPushButton>
26 #include <QtWidgets/QSlider>
27 #include <QtWidgets/QSpacerItem>
28 #include <QtWidgets/QStatusBar>
29 #include <QtWidgets/QToolBar>
30 #include <QtWidgets/QVBoxLayout>
31 #include <QtWidgets/QWidget>
32 #include "moleculerenderer.h"
40 QAction *actionLoad_Data;
41 QWidget *centralWidget;
42 QHBoxLayout *horizontalLayout;
44 QVBoxLayout *verticalLayout_2;
46 QVBoxLayout *verticalLayout;
48 QSlider *horizontalSlider;
50 QVBoxLayout *verticalLayout_3;
52 QSlider *horizontalSlider_2;
54 QSlider *horizontalSlider_3;
55 QGroupBox *groupBox_2;
56 QVBoxLayout *verticalLayout_4;
59 QGroupBox *groupBox_3;
60 QVBoxLayout *verticalLayout_5;
62 QSlider *horizontalSlider_4;
64 QSlider *horizontalSlider_5;
66 QSlider *horizontalSlider_6;
68 QSlider *horizontalSlider_7;
69 QGroupBox *groupBox_4;
70 QGridLayout *gridLayout;
73 QSlider *horizontalSlider_8;
74 QSpacerItem *verticalSpacer;
75 QPushButton *pushButton;
78 QToolBar *mainToolBar;
79 QStatusBar *statusBar;
81 void setupUi(QMainWindow *AO4OMClass)
83 if (AO4OMClass->objectName().isEmpty())
84 AO4OMClass->setObjectName(QStringLiteral(
"AO4OMClass"));
85 AO4OMClass->resize(1163, 757);
86 actionExit =
new QAction(AO4OMClass);
87 actionExit->setObjectName(QStringLiteral(
"actionExit"));
88 actionLoad_Data =
new QAction(AO4OMClass);
89 actionLoad_Data->setObjectName(QStringLiteral(
"actionLoad_Data"));
90 centralWidget =
new QWidget(AO4OMClass);
91 centralWidget->setObjectName(QStringLiteral(
"centralWidget"));
92 horizontalLayout =
new QHBoxLayout(centralWidget);
93 horizontalLayout->setSpacing(6);
94 horizontalLayout->setContentsMargins(11, 11, 11, 11);
95 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
97 moleculeRenderer->setObjectName(QStringLiteral(
"moleculeRenderer"));
98 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
99 sizePolicy.setHorizontalStretch(1);
100 sizePolicy.setVerticalStretch(1);
101 sizePolicy.setHeightForWidth(moleculeRenderer->sizePolicy().hasHeightForWidth());
102 moleculeRenderer->setSizePolicy(sizePolicy);
103 moleculeRenderer->setMinimumSize(QSize(400, 400));
105 horizontalLayout->addWidget(moleculeRenderer);
107 verticalLayout_2 =
new QVBoxLayout();
108 verticalLayout_2->setSpacing(6);
109 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
110 atomScale =
new QGroupBox(centralWidget);
111 atomScale->setObjectName(QStringLiteral(
"atomScale"));
112 atomScale->setFocusPolicy(Qt::WheelFocus);
113 verticalLayout =
new QVBoxLayout(atomScale);
114 verticalLayout->setSpacing(6);
115 verticalLayout->setContentsMargins(11, 11, 11, 11);
116 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
117 label =
new QLabel(atomScale);
118 label->setObjectName(QStringLiteral(
"label"));
119 label->setAlignment(Qt::AlignCenter);
121 verticalLayout->addWidget(label);
123 horizontalSlider =
new QSlider(atomScale);
124 horizontalSlider->setObjectName(QStringLiteral(
"horizontalSlider"));
125 horizontalSlider->setMinimumSize(QSize(90, 0));
126 horizontalSlider->setMinimum(1);
127 horizontalSlider->setMaximum(300);
128 horizontalSlider->setValue(100);
129 horizontalSlider->setOrientation(Qt::Horizontal);
131 verticalLayout->addWidget(horizontalSlider);
134 verticalLayout_2->addWidget(atomScale);
136 groupBox =
new QGroupBox(centralWidget);
137 groupBox->setObjectName(QStringLiteral(
"groupBox"));
138 verticalLayout_3 =
new QVBoxLayout(groupBox);
139 verticalLayout_3->setSpacing(6);
140 verticalLayout_3->setContentsMargins(11, 11, 11, 11);
141 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
142 label_2 =
new QLabel(groupBox);
143 label_2->setObjectName(QStringLiteral(
"label_2"));
145 verticalLayout_3->addWidget(label_2);
147 horizontalSlider_2 =
new QSlider(groupBox);
148 horizontalSlider_2->setObjectName(QStringLiteral(
"horizontalSlider_2"));
149 horizontalSlider_2->setMinimumSize(QSize(0, 0));
150 horizontalSlider_2->setMaximum(100);
151 horizontalSlider_2->setValue(20);
152 horizontalSlider_2->setOrientation(Qt::Horizontal);
154 verticalLayout_3->addWidget(horizontalSlider_2);
156 label_3 =
new QLabel(groupBox);
157 label_3->setObjectName(QStringLiteral(
"label_3"));
159 verticalLayout_3->addWidget(label_3);
161 horizontalSlider_3 =
new QSlider(groupBox);
162 horizontalSlider_3->setObjectName(QStringLiteral(
"horizontalSlider_3"));
163 horizontalSlider_3->setMaximum(100);
164 horizontalSlider_3->setSliderPosition(20);
165 horizontalSlider_3->setOrientation(Qt::Horizontal);
167 verticalLayout_3->addWidget(horizontalSlider_3);
170 verticalLayout_2->addWidget(groupBox);
172 groupBox_2 =
new QGroupBox(centralWidget);
173 groupBox_2->setObjectName(QStringLiteral(
"groupBox_2"));
174 verticalLayout_4 =
new QVBoxLayout(groupBox_2);
175 verticalLayout_4->setSpacing(6);
176 verticalLayout_4->setContentsMargins(11, 11, 11, 11);
177 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
178 label_4 =
new QLabel(groupBox_2);
179 label_4->setObjectName(QStringLiteral(
"label_4"));
181 verticalLayout_4->addWidget(label_4);
183 comboBox =
new QComboBox(groupBox_2);
184 comboBox->setObjectName(QStringLiteral(
"comboBox"));
186 verticalLayout_4->addWidget(comboBox);
189 verticalLayout_2->addWidget(groupBox_2);
191 groupBox_3 =
new QGroupBox(centralWidget);
192 groupBox_3->setObjectName(QStringLiteral(
"groupBox_3"));
193 verticalLayout_5 =
new QVBoxLayout(groupBox_3);
194 verticalLayout_5->setSpacing(6);
195 verticalLayout_5->setContentsMargins(11, 11, 11, 11);
196 verticalLayout_5->setObjectName(QStringLiteral(
"verticalLayout_5"));
197 label_5 =
new QLabel(groupBox_3);
198 label_5->setObjectName(QStringLiteral(
"label_5"));
200 verticalLayout_5->addWidget(label_5);
202 horizontalSlider_4 =
new QSlider(groupBox_3);
203 horizontalSlider_4->setObjectName(QStringLiteral(
"horizontalSlider_4"));
204 horizontalSlider_4->setMaximum(100);
205 horizontalSlider_4->setValue(50);
206 horizontalSlider_4->setOrientation(Qt::Horizontal);
208 verticalLayout_5->addWidget(horizontalSlider_4);
210 label_6 =
new QLabel(groupBox_3);
211 label_6->setObjectName(QStringLiteral(
"label_6"));
213 verticalLayout_5->addWidget(label_6);
215 horizontalSlider_5 =
new QSlider(groupBox_3);
216 horizontalSlider_5->setObjectName(QStringLiteral(
"horizontalSlider_5"));
217 horizontalSlider_5->setMaximum(100);
218 horizontalSlider_5->setValue(60);
219 horizontalSlider_5->setOrientation(Qt::Horizontal);
221 verticalLayout_5->addWidget(horizontalSlider_5);
223 label_7 =
new QLabel(groupBox_3);
224 label_7->setObjectName(QStringLiteral(
"label_7"));
226 verticalLayout_5->addWidget(label_7);
228 horizontalSlider_6 =
new QSlider(groupBox_3);
229 horizontalSlider_6->setObjectName(QStringLiteral(
"horizontalSlider_6"));
230 horizontalSlider_6->setMinimum(1);
231 horizontalSlider_6->setMaximum(100);
232 horizontalSlider_6->setValue(30);
233 horizontalSlider_6->setOrientation(Qt::Horizontal);
235 verticalLayout_5->addWidget(horizontalSlider_6);
237 label_8 =
new QLabel(groupBox_3);
238 label_8->setObjectName(QStringLiteral(
"label_8"));
240 verticalLayout_5->addWidget(label_8);
242 horizontalSlider_7 =
new QSlider(groupBox_3);
243 horizontalSlider_7->setObjectName(QStringLiteral(
"horizontalSlider_7"));
244 horizontalSlider_7->setMaximum(100);
245 horizontalSlider_7->setValue(50);
246 horizontalSlider_7->setOrientation(Qt::Horizontal);
248 verticalLayout_5->addWidget(horizontalSlider_7);
251 verticalLayout_2->addWidget(groupBox_3);
253 groupBox_4 =
new QGroupBox(centralWidget);
254 groupBox_4->setObjectName(QStringLiteral(
"groupBox_4"));
255 gridLayout =
new QGridLayout(groupBox_4);
256 gridLayout->setSpacing(6);
257 gridLayout->setContentsMargins(11, 11, 11, 11);
258 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
259 label_9 =
new QLabel(groupBox_4);
260 label_9->setObjectName(QStringLiteral(
"label_9"));
262 gridLayout->addWidget(label_9, 0, 0, 1, 1);
264 label_10 =
new QLabel(groupBox_4);
265 label_10->setObjectName(QStringLiteral(
"label_10"));
266 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
268 gridLayout->addWidget(label_10, 0, 1, 1, 1);
270 horizontalSlider_8 =
new QSlider(groupBox_4);
271 horizontalSlider_8->setObjectName(QStringLiteral(
"horizontalSlider_8"));
272 horizontalSlider_8->setMaximum(100);
273 horizontalSlider_8->setOrientation(Qt::Horizontal);
275 gridLayout->addWidget(horizontalSlider_8, 1, 0, 1, 2);
278 verticalLayout_2->addWidget(groupBox_4);
280 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
282 verticalLayout_2->addItem(verticalSpacer);
284 pushButton =
new QPushButton(centralWidget);
285 pushButton->setObjectName(QStringLiteral(
"pushButton"));
287 verticalLayout_2->addWidget(pushButton);
290 horizontalLayout->addLayout(verticalLayout_2);
292 AO4OMClass->setCentralWidget(centralWidget);
293 menuBar =
new QMenuBar(AO4OMClass);
294 menuBar->setObjectName(QStringLiteral(
"menuBar"));
295 menuBar->setGeometry(QRect(0, 0, 1163, 21));
296 menuMenu =
new QMenu(menuBar);
297 menuMenu->setObjectName(QStringLiteral(
"menuMenu"));
298 AO4OMClass->setMenuBar(menuBar);
299 mainToolBar =
new QToolBar(AO4OMClass);
300 mainToolBar->setObjectName(QStringLiteral(
"mainToolBar"));
301 AO4OMClass->addToolBar(Qt::TopToolBarArea, mainToolBar);
302 statusBar =
new QStatusBar(AO4OMClass);
303 statusBar->setObjectName(QStringLiteral(
"statusBar"));
304 AO4OMClass->setStatusBar(statusBar);
306 menuBar->addAction(menuMenu->menuAction());
307 menuMenu->addAction(actionLoad_Data);
308 menuMenu->addAction(actionExit);
310 retranslateUi(AO4OMClass);
311 QObject::connect(actionExit, SIGNAL(triggered()), AO4OMClass, SLOT(close()));
312 QObject::connect(actionLoad_Data, SIGNAL(triggered()), moleculeRenderer, SLOT(loadData()));
313 QObject::connect(horizontalSlider, SIGNAL(valueChanged(
int)), label, SLOT(setNum(
int)));
314 QObject::connect(pushButton, SIGNAL(clicked()), moleculeRenderer, SLOT(loadData()));
315 QObject::connect(horizontalSlider_2, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inBorderThickness(
int)));
316 QObject::connect(horizontalSlider_3, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inBorderDepth(
int)));
317 QObject::connect(comboBox, SIGNAL(currentIndexChanged(
int)), moleculeRenderer, SLOT(inAOTextureSize(
int)));
318 QObject::connect(horizontalSlider_4, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inLightAO(
int)));
319 QObject::connect(horizontalSlider_5, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inLightDiff(
int)));
320 QObject::connect(horizontalSlider_6, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inLightSpecRad(
int)));
321 QObject::connect(horizontalSlider_7, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inLightSpecPow(
int)));
322 QObject::connect(horizontalSlider, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inAtomScale(
int)));
323 QObject::connect(horizontalSlider_8, SIGNAL(valueChanged(
int)), moleculeRenderer, SLOT(inColorSelect(
int)));
325 comboBox->setCurrentIndex(2);
328 QMetaObject::connectSlotsByName(AO4OMClass);
331 void retranslateUi(QMainWindow *AO4OMClass)
333 AO4OMClass->setWindowTitle(QApplication::translate(
"AO4OMClass",
"AO4OM", 0));
334 actionExit->setText(QApplication::translate(
"AO4OMClass",
"Exit", 0));
335 actionLoad_Data->setText(QApplication::translate(
"AO4OMClass",
"Load Data", 0));
336 atomScale->setTitle(QApplication::translate(
"AO4OMClass",
"Atom Scale in %", 0));
337 label->setText(QApplication::translate(
"AO4OMClass",
"100", 0));
338 groupBox->setTitle(QApplication::translate(
"AO4OMClass",
"Border", 0));
339 label_2->setText(QApplication::translate(
"AO4OMClass",
"Thickness", 0));
340 label_3->setText(QApplication::translate(
"AO4OMClass",
"Depth awareness", 0));
341 groupBox_2->setTitle(QApplication::translate(
"AO4OMClass",
"AO", 0));
342 label_4->setText(QApplication::translate(
"AO4OMClass",
"Texturesize", 0));
344 comboBox->insertItems(0, QStringList()
345 << QApplication::translate(
"AO4OMClass",
"256", 0)
346 << QApplication::translate(
"AO4OMClass",
"512", 0)
347 << QApplication::translate(
"AO4OMClass",
"1024", 0)
348 << QApplication::translate(
"AO4OMClass",
"2048", 0)
349 << QApplication::translate(
"AO4OMClass",
"4096", 0)
351 groupBox_3->setTitle(QApplication::translate(
"AO4OMClass",
"Lighting", 0));
352 label_5->setText(QApplication::translate(
"AO4OMClass",
"AO", 0));
353 label_6->setText(QApplication::translate(
"AO4OMClass",
"Diffus", 0));
354 label_7->setText(QApplication::translate(
"AO4OMClass",
"Specular (radius)", 0));
355 label_8->setText(QApplication::translate(
"AO4OMClass",
"Specular (power)", 0));
356 groupBox_4->setTitle(QApplication::translate(
"AO4OMClass",
"Color", 0));
357 label_9->setText(QApplication::translate(
"AO4OMClass",
"Atom", 0));
358 label_10->setText(QApplication::translate(
"AO4OMClass",
"Chain", 0));
359 pushButton->setText(QApplication::translate(
"AO4OMClass",
"Load Data", 0));
360 menuMenu->setTitle(QApplication::translate(
"AO4OMClass",
"Menu", 0));