Changeset f467c6 for molecuilder/src/UIElements/TextDialog.cpp
- Timestamp:
- Feb 25, 2010, 1:01:36 PM (16 years ago)
- Children:
- d50264
- Parents:
- 1614a17
- File:
-
- 1 edited
-
molecuilder/src/UIElements/TextDialog.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/TextDialog.cpp
r1614a17 rf467c6 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.
