Changes in src/UIElements/Dialog.cpp [36166d:cd8e55]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
r36166d rcd8e55 10 10 #include "Dialog.hpp" 11 11 12 #include "verbose.hpp"13 12 #include "atom.hpp" 14 13 #include "element.hpp" 15 14 #include "molecule.hpp" 16 15 #include "vector.hpp" 17 #include "Matrix.hpp"18 #include "Box.hpp"19 16 20 17 using namespace std; … … 131 128 } 132 129 130 // Strings Queries 131 132 Dialog::StringsQuery::StringsQuery(string title,vector<string> *_target, std::string _description) : 133 Query(title, _description), target(_target) 134 {} 135 136 Dialog::StringsQuery::~StringsQuery() {}; 137 138 void Dialog::StringsQuery::setResult() { 139 *target = tmp; 140 } 141 133 142 // Double Queries 134 143 … … 176 185 // Vector Queries 177 186 178 Dialog::VectorQuery::VectorQuery(std::string title,Vector *_target, bool _check, std::string _description) :187 Dialog::VectorQuery::VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check, std::string _description) : 179 188 Query(title, _description), 189 cellSize(_cellSize), 180 190 check(_check), 181 191 target(_target) … … 195 205 // Box Queries 196 206 197 Dialog::BoxQuery::BoxQuery(std::string title, Box*_cellSize, std::string _description) :207 Dialog::BoxQuery::BoxQuery(std::string title, double ** const _cellSize, std::string _description) : 198 208 Query(title, _description), 199 209 target(_cellSize) … … 208 218 209 219 void Dialog::BoxQuery::setResult() { 210 (*target)= ReturnFullMatrixforSymmetric(tmp); 220 for (int i=0;i<6;i++) { 221 (*target)[i] = tmp[i]; 222 } 211 223 } 212 224
Note:
See TracChangeset
for help on using the changeset viewer.