Changeset 73faf4 for src/UIElements/Dialog.cpp
- Timestamp:
- May 8, 2017, 2:00:47 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- c8165c
- Parents:
- ce254c (diff), cb6357 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/UIElements/Dialog.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
rce254c r73faf4 134 134 queryEmpty(param, title, description); 135 135 }*/ 136 template <> 137 void Dialog::query<Vector>(Parameter<Vector> ¶m, const std::string title, const std::string description) 138 { 139 queryVector(param, title, description); 140 } 141 template <> 142 void Dialog::query< std::vector<Vector> >(Parameter< std::vector<Vector> > ¶m, const std::string title, const std::string description) 143 { 144 queryVectors(param, title, description); 145 } 146 147 static const std::string concatenateStrings(const std::vector<std::string> &_strings) 148 { 149 std::stringstream output; 150 for (std::vector<std::string>::const_iterator iter = _strings.begin(); 151 iter != _strings.end(); ++iter) 152 output << *iter << " "; 153 return output.str(); 154 } 155 156 bool Dialog::TQuery< std::vector<Vector> >::isValid() 157 { 158 return param.isValidAsString(concatenateStrings(temp)); 159 } 160 void Dialog::TQuery< std::vector<Vector> >::setResult() 161 { 162 param.setAsString(concatenateStrings(temp)); 163 } 136 164 137 165 /** With the following boost::preprocessor code we generate template
Note:
See TracChangeset
for help on using the changeset viewer.
