Changes in src/UIElements/TextDialog.cpp [5a7243:2ededc2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/UIElements/TextDialog.cpp ¶
r5a7243 r2ededc2 10 10 #include "UIElements/TextDialog.hpp" 11 11 12 #include "World.hpp"13 #include "periodentafel.hpp"14 12 #include "atom.hpp" 15 13 #include "molecule.hpp" … … 47 45 void TextDialog::queryVector(const char* title, Vector *target,const double *const cellSize, bool check) { 48 46 registerQuery(new VectorTextQuery(title,target,cellSize,check)); 49 }50 51 void TextDialog::queryElement(const char* title, element **target){52 registerQuery(new ElementTextQuery(title,target));53 47 } 54 48 … … 119 113 120 114 bool TextDialog::VectorTextQuery::handle() { 121 Log() << Verbose(0) << getTitle();122 115 tmp->AskPosition(cellSize,check); 123 return true;124 116 } 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.