/*
* Project: MoleCuilder
* Description: creates and alters molecular systems
* Copyright (C) 2010-2012 University of Bonn. All rights reserved.
*
*
* This file is part of MoleCuilder.
*
* MoleCuilder is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* MoleCuilder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MoleCuilder. If not, see .
*/
/*
* 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 &_param, const char* title, std::string description){
registerQuery(new BooleanTextQuery(_param, title,description));
}
void TextDialog::queryInt(Parameter &_param, const char* title, std::string description){
registerQuery(new IntTextQuery(_param, title,description));
}
void TextDialog::queryInts(Parameter > &_param, const char* title, std::string description){
registerQuery(new IntsTextQuery(_param, title,description));
}
void TextDialog::queryUnsignedInt(Parameter &_param, const char* title, std::string description){
registerQuery(new UnsignedIntTextQuery(_param, title,description));
}
void TextDialog::queryUnsignedInts(Parameter > &_param, const char* title, std::string description){
registerQuery(new UnsignedIntsTextQuery(_param, title,description));
}
void TextDialog::queryDouble(Parameter &_param, const char* title, std::string description){
registerQuery(new DoubleTextQuery(_param, title,description));
}
void TextDialog::queryDoubles(Parameter > &_param, const char* title, std::string description){
registerQuery(new DoublesTextQuery(_param, title,description));
}
void TextDialog::queryString(Parameter &_param, const char* title, std::string description){
registerQuery(new StringTextQuery(_param, title,description));
}
void TextDialog::queryStrings(Parameter > &_param, const char* title, std::string description){
registerQuery(new StringsTextQuery(_param, title,description));
}
void TextDialog::queryAtom(Parameter &_param, const char* title, std::string description) {
registerQuery(new AtomTextQuery(_param, title,description));
}
void TextDialog::queryAtoms(Parameter > &_param, const char* title, std::string description) {
registerQuery(new AtomsTextQuery(_param, title,description));
}
void TextDialog::queryMolecule(Parameter &_param, const char* title, std::string description) {
registerQuery(new MoleculeTextQuery(_param, title,description));
}
void TextDialog::queryMolecules(Parameter > &_param, const char* title, std::string description) {
registerQuery(new MoleculesTextQuery(_param, title,description));
}
void TextDialog::queryVector(Parameter &_param, const char* title, std::string description) {
registerQuery(new VectorTextQuery(_param, title,description));
}
void TextDialog::queryVectors(Parameter > &_param, const char* title, std::string description) {
registerQuery(new VectorsTextQuery(_param, title,description));
}
void TextDialog::queryRealSpaceMatrix(Parameter &_param, const char* title, std::string description) {
registerQuery(new RealSpaceMatrixTextQuery(_param, title,description));
}
void TextDialog::queryElement(Parameter &_param, const char* title, std::string description){
registerQuery(new ElementTextQuery(_param, title,description));
}
void TextDialog::queryElements(Parameter > &_param, const char* title, std::string description){
registerQuery(new ElementsTextQuery(_param, title,description));
}
void TextDialog::queryFile(Parameter &_param, const char* title, std::string description){
registerQuery(new FileTextQuery(_param, title,description));
}
void TextDialog::queryFiles(Parameter > &_param, const char* title, std::string description){
registerQuery(new FilesTextQuery(_param, title,description));
}
void TextDialog::queryRandomNumberDistribution_Parameters(Parameter &_param, const char* title, std::string description){
registerQuery(new RandomNumberDistribution_ParametersTextQuery(_param, title,description));
}
/************************** Query Infrastructure ************************/
/* ---> shifted to folder Query */
/************************************************************************/