/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2010-2012 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * RandomNumberDistribution_ParametersQtQuery.cpp * * Created on: Jan 06, 2011 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "CodePatterns/MemDebug.hpp" #include "UIElements/Qt4/Query/QtQuery.hpp" #include "UIElements/Qt4/Pipe/RandomNumberDistribution_ParametersQtQueryPipe.hpp" #include "Atom/atom.hpp" #include "World.hpp" QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery(Parameter ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : Dialog::RandomNumberDistribution_ParametersQuery(param, _title), parent(_parent) { thisLayout = new QHBoxLayout(); titleLabel = new QLabel(QString(getTitle().c_str())); // inputBox->insertItem(-1, QString("no distribution")); // for (std::vector::const_iterator iter = distribution(); iter != distribution.end(); ++iter) // inputBox->insertItem((*iter)->getNr(),QString::fromStdString((*iter)->getName())); inputBox = new QTextEdit(); parent->addLayout(thisLayout); thisLayout->addWidget(titleLabel); thisLayout->addWidget(inputBox); okButton = new QPushButton(tr("Ok")); pipe = new RandomNumberDistribution_ParametersQtQueryPipe(tmp,_dialog, inputBox); connect(okButton,SIGNAL(clicked()),pipe,SLOT(update())); } QtDialog::RandomNumberDistribution_ParametersQtQuery::~RandomNumberDistribution_ParametersQtQuery() { delete pipe; } bool QtDialog::RandomNumberDistribution_ParametersQtQuery::handle() { return true; }