Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextDialog.cpp

    r2ededc2 r7aa000  
    3131}
    3232
    33 void TextDialog::queryDouble(const char* title, double* target){
    34   registerQuery(new DoubleTextQuery(title,target));
    35 }
    36 
    3733void TextDialog::queryString(const char* title, string* target){
    3834  registerQuery(new StringTextQuery(title,target));
     
    4137void TextDialog::queryMolecule(const char* title, molecule **target, MoleculeListClass *molecules) {
    4238  registerQuery(new MoleculeTextQuery(title,target,molecules));
    43 }
    44 
    45 void TextDialog::queryVector(const char* title, Vector *target,const double *const cellSize, bool check) {
    46   registerQuery(new VectorTextQuery(title,target,cellSize,check));
    4739}
    4840
     
    7365}
    7466
    75 TextDialog::DoubleTextQuery::DoubleTextQuery(string title,double *_target) :
    76     Dialog::DoubleQuery(title,_target)
    77 {}
    78 
    79 TextDialog::DoubleTextQuery::~DoubleTextQuery() {}
    80 
    81 bool TextDialog::DoubleTextQuery::handle() {
    82   Log() << Verbose(0) << getTitle();
    83   cin >> tmp;
    84   return true;
    85 }
    86 
    8767TextDialog::MoleculeTextQuery::MoleculeTextQuery(string title, molecule **_target, MoleculeListClass *_molecules) :
    8868    Dialog::MoleculeQuery(title,_target,_molecules)
     
    10484  return (idxOfMol!=-1);
    10585}
    106 
    107 TextDialog::VectorTextQuery::VectorTextQuery(std::string title, Vector *_target, const double *const _cellSize, bool _check) :
    108     Dialog::VectorQuery(title,_target,_cellSize,_check)
    109 {}
    110 
    111 TextDialog::VectorTextQuery::~VectorTextQuery()
    112 {}
    113 
    114 bool TextDialog::VectorTextQuery::handle() {
    115  tmp->AskPosition(cellSize,check);
    116 }
Note: See TracChangeset for help on using the changeset viewer.