Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.cpp

    r36166d rcd8e55  
    1010#include "Dialog.hpp"
    1111
    12 #include "verbose.hpp"
    1312#include "atom.hpp"
    1413#include "element.hpp"
    1514#include "molecule.hpp"
    1615#include "vector.hpp"
    17 #include "Matrix.hpp"
    18 #include "Box.hpp"
    1916
    2017using namespace std;
     
    131128}
    132129
     130// Strings Queries
     131
     132Dialog::StringsQuery::StringsQuery(string title,vector<string> *_target, std::string _description) :
     133    Query(title, _description), target(_target)
     134{}
     135
     136Dialog::StringsQuery::~StringsQuery() {};
     137
     138void Dialog::StringsQuery::setResult() {
     139  *target = tmp;
     140}
     141
    133142// Double Queries
    134143
     
    176185// Vector Queries
    177186
    178 Dialog::VectorQuery::VectorQuery(std::string title,Vector *_target,bool _check, std::string _description) :
     187Dialog::VectorQuery::VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check, std::string _description) :
    179188  Query(title, _description),
     189  cellSize(_cellSize),
    180190  check(_check),
    181191  target(_target)
     
    195205// Box Queries
    196206
    197 Dialog::BoxQuery::BoxQuery(std::string title, Box* _cellSize, std::string _description) :
     207Dialog::BoxQuery::BoxQuery(std::string title, double ** const _cellSize, std::string _description) :
    198208  Query(title, _description),
    199209  target(_cellSize)
     
    208218
    209219void Dialog::BoxQuery::setResult() {
    210   (*target)= ReturnFullMatrixforSymmetric(tmp);
     220  for (int i=0;i<6;i++) {
     221    (*target)[i] = tmp[i];
     222  }
    211223}
    212224
Note: See TracChangeset for help on using the changeset viewer.