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