Changes in src/UIElements/TextDialog.cpp [2ededc2:7aa000]
- File:
-
- 1 edited
-
src/UIElements/TextDialog.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextDialog.cpp
r2ededc2 r7aa000 31 31 } 32 32 33 void TextDialog::queryDouble(const char* title, double* target){34 registerQuery(new DoubleTextQuery(title,target));35 }36 37 33 void TextDialog::queryString(const char* title, string* target){ 38 34 registerQuery(new StringTextQuery(title,target)); … … 41 37 void TextDialog::queryMolecule(const char* title, molecule **target, MoleculeListClass *molecules) { 42 38 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));47 39 } 48 40 … … 73 65 } 74 66 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 87 67 TextDialog::MoleculeTextQuery::MoleculeTextQuery(string title, molecule **_target, MoleculeListClass *_molecules) : 88 68 Dialog::MoleculeQuery(title,_target,_molecules) … … 104 84 return (idxOfMol!=-1); 105 85 } 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.
