/* * 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. */ /* * CommandLineDialog.cpp * * Created on: May 8, 2010 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" #include "CommandLineUI/CommandLineDialog.hpp" #include "CommandLineUI/Query/CommandLineQuery.hpp" using namespace std; CommandLineDialog::CommandLineDialog() { } CommandLineDialog::~CommandLineDialog() { } void CommandLineDialog::queryEmpty(const char* title, std::string _description){ registerQuery(new EmptyCommandLineQuery(title, _description)); } void CommandLineDialog::queryInt(Parameter ¶m, const char* title, std::string _description){ registerQuery(new IntCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryInts(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new IntsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryUnsignedInt(Parameter ¶m, const char* title, std::string _description){ registerQuery(new UnsignedIntCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryUnsignedInts(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new UnsignedIntsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryBoolean(Parameter ¶m, const char* title, std::string _description){ registerQuery(new BooleanCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryDouble(Parameter ¶m, const char* title, std::string _description){ registerQuery(new DoubleCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryDoubles(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new DoublesCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryString(Parameter ¶m, const char* title, std::string _description){ registerQuery(new StringCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryStrings(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new StringsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryAtom(Parameter ¶m, const char* title, std::string _description) { registerQuery(new AtomCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryAtoms(Parameter > ¶m, const char* title, std::string _description) { registerQuery(new AtomsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryMolecule(Parameter ¶m, const char* title, std::string _description) { registerQuery(new MoleculeCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryMolecules(Parameter > ¶m, const char* title, std::string _description) { registerQuery(new MoleculesCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryVector(Parameter ¶m, const char* title, std::string _description) { registerQuery(new VectorCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryVectors(Parameter > ¶m, const char* title, std::string _description) { registerQuery(new VectorsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryRealSpaceMatrix(Parameter ¶m, const char* title, std::string _description) { registerQuery(new RealSpaceMatrixCommandLineQuery(param, title,_description)); } void CommandLineDialog::queryElement(Parameter ¶m, const char* title, std::string _description){ registerQuery(new ElementCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryElements(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new ElementsCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryFile(Parameter ¶m, const char* title, std::string _description){ registerQuery(new FileCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryFiles(Parameter > ¶m, const char* title, std::string _description){ registerQuery(new FilesCommandLineQuery(param, title, _description)); } void CommandLineDialog::queryRandomNumberDistribution_Parameters(Parameter ¶m, const char* title, std::string _description){ registerQuery(new RandomNumberDistribution_ParametersCommandLineQuery(param, title, _description)); } /************************** Query Infrastructure ************************/ /* ---> shifted to folder Query */ /************************************************************************/