/* * 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. */ /* * TextDialog.cpp * * Created on: Jan 5, 2010 * Author: crueger */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" #include "TextUI/TextDialog.hpp" #include "TextUI/Query/TextQuery.hpp" using namespace std; TextDialog::TextDialog() { } TextDialog::~TextDialog() { } void TextDialog::queryEmpty(const char* title, std::string description){ registerQuery(new EmptyTextQuery(title,description)); } void TextDialog::queryBoolean(Parameter ¶m, const char* title, std::string description){ registerQuery(new BooleanTextQuery(param, title,description)); } void TextDialog::queryInt(Parameter ¶m, const char* title, std::string description){ registerQuery(new IntTextQuery(param, title,description)); } void TextDialog::queryInts(Parameter > ¶m, const char* title, std::string description){ registerQuery(new IntsTextQuery(param, title,description)); } void TextDialog::queryUnsignedInt(Parameter ¶m, const char* title, std::string description){ registerQuery(new UnsignedIntTextQuery(param, title,description)); } void TextDialog::queryUnsignedInts(Parameter > ¶m, const char* title, std::string description){ registerQuery(new UnsignedIntsTextQuery(param, title,description)); } void TextDialog::queryDouble(Parameter ¶m, const char* title, std::string description){ registerQuery(new DoubleTextQuery(param, title,description)); } void TextDialog::queryDoubles(Parameter > ¶m, const char* title, std::string description){ registerQuery(new DoublesTextQuery(param, title,description)); } void TextDialog::queryString(Parameter ¶m, const char* title, std::string description){ registerQuery(new StringTextQuery(param, title,description)); } void TextDialog::queryStrings(Parameter > ¶m, const char* title, std::string description){ registerQuery(new StringsTextQuery(param, title,description)); } void TextDialog::queryAtom(Parameter ¶m, const char* title, std::string description) { registerQuery(new AtomTextQuery(param, title,description)); } void TextDialog::queryAtoms(Parameter > ¶m, const char* title, std::string description) { registerQuery(new AtomsTextQuery(param, title,description)); } void TextDialog::queryMolecule(Parameter ¶m, const char* title, std::string description) { registerQuery(new MoleculeTextQuery(param, title,description)); } void TextDialog::queryMolecules(Parameter > ¶m, const char* title, std::string description) { registerQuery(new MoleculesTextQuery(param, title,description)); } void TextDialog::queryVector(Parameter ¶m, const char* title, bool check, std::string description) { registerQuery(new VectorTextQuery(param, title,check,description)); } void TextDialog::queryVectors(Parameter > ¶m, const char* title, bool check, std::string description) { registerQuery(new VectorsTextQuery(param, title,check,description)); } void TextDialog::queryRealSpaceMatrix(Parameter ¶m, const char* title, std::string description) { registerQuery(new RealSpaceMatrixTextQuery(param, title,description)); } void TextDialog::queryElement(Parameter ¶m, const char* title, std::string description){ registerQuery(new ElementTextQuery(param, title,description)); } void TextDialog::queryElements(Parameter > ¶m, const char* title, std::string description){ registerQuery(new ElementsTextQuery(param, title,description)); } void TextDialog::queryFile(Parameter ¶m, const char* title, std::string description){ registerQuery(new FileTextQuery(param, title,description)); } void TextDialog::queryFiles(Parameter > ¶m, const char* title, std::string description){ registerQuery(new FilesTextQuery(param, title,description)); } void TextDialog::queryRandomNumberDistribution_Parameters(Parameter ¶m, const char* title, std::string description){ registerQuery(new RandomNumberDistribution_ParametersTextQuery(param, title,description)); } /************************** Query Infrastructure ************************/ /* ---> shifted to folder Query */ /************************************************************************/