Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/UIElements/TextDialog.cpp

    r5a7243 r2ededc2  
    1010#include "UIElements/TextDialog.hpp"
    1111
    12 #include "World.hpp"
    13 #include "periodentafel.hpp"
    1412#include "atom.hpp"
    1513#include "molecule.hpp"
     
    4745void TextDialog::queryVector(const char* title, Vector *target,const double *const cellSize, bool check) {
    4846  registerQuery(new VectorTextQuery(title,target,cellSize,check));
    49 }
    50 
    51 void TextDialog::queryElement(const char* title, element **target){
    52   registerQuery(new ElementTextQuery(title,target));
    5347}
    5448
     
    119113
    120114bool TextDialog::VectorTextQuery::handle() {
    121  Log() << Verbose(0) << getTitle();
    122115 tmp->AskPosition(cellSize,check);
    123  return true;
    124116}
    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.