| 286 | } // KnobGuiTable::createWidget |
| 287 | |
| 288 | std::string |
| 289 | KnobGuiTablePrivate::encodeTable(const KnobTablePtr& knob) const |
| 290 | { |
| 291 | std::stringstream ss; |
| 292 | |
| 293 | for (Variables::const_iterator it = items.begin(); it != items.end(); ++it) { |
| 294 | // In order to use XML tags, the text inside the tags has to be escaped. |
| 295 | for (std::size_t c = 0; c < it->items.size(); ++c) { |
| 296 | std::string label = knob->getColumnLabel(c); |
| 297 | ss << "<" << label << ">"; |
| 298 | ss << Project::escapeXML( it->items[c]->text().toStdString() ); |
| 299 | ss << "</" << label << ">"; |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | return ss.str(); |
| 304 | } |
| 305 | |
| 306 | void |
| 307 | KnobGuiTablePrivate::createItem(const KnobTablePtr& knob, |
no test coverage detected