Changes in src/UIElements/Dialog.cpp [9eb71b3:cb5231]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
r9eb71b3 rcb5231 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.