Changes in src/UIElements/TextDialog.cpp [2ededc2:5a7243]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextDialog.cpp
r2ededc2 r5a7243 10 10 #include "UIElements/TextDialog.hpp" 11 11 12 #include "World.hpp" 13 #include "periodentafel.hpp" 12 14 #include "atom.hpp" 13 15 #include "molecule.hpp" … … 45 47 void TextDialog::queryVector(const char* title, Vector *target,const double *const cellSize, bool check) { 46 48 registerQuery(new VectorTextQuery(title,target,cellSize,check)); 49 } 50 51 void TextDialog::queryElement(const char* title, element **target){ 52 registerQuery(new ElementTextQuery(title,target)); 47 53 } 48 54 … … 113 119 114 120 bool TextDialog::VectorTextQuery::handle() { 121 Log() << Verbose(0) << getTitle(); 115 122 tmp->AskPosition(cellSize,check); 123 return true; 116 124 } 125 126 127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) : 128 Dialog::ElementQuery(title,target) 129 {} 130 131 TextDialog::ElementTextQuery::~ElementTextQuery() 132 {} 133 134 bool TextDialog::ElementTextQuery::handle() { 135 int Z; 136 Log() << Verbose(0) << getTitle(); 137 cin >> Z; 138 tmp = World::get()->getPeriode()->FindElement(Z); 139 return tmp; 140 }
Note:
See TracChangeset
for help on using the changeset viewer.