| 1334 | } |
| 1335 | |
| 1336 | std::vector<std::string> |
| 1337 | Project::getProjectDefaultLayerNames() const |
| 1338 | { |
| 1339 | std::vector<std::string> ret; |
| 1340 | std::list<std::vector<std::string> > pairs; |
| 1341 | |
| 1342 | _imp->defaultLayersList->getTable(&pairs); |
| 1343 | for (std::list<std::vector<std::string> >::iterator it = pairs.begin(); |
| 1344 | it != pairs.end(); ++it) { |
| 1345 | bool found = false; |
| 1346 | for (std::size_t i = 0; i < ret.size(); ++i) { |
| 1347 | if (ret[i] == (*it)[0]) { |
| 1348 | found = true; |
| 1349 | break; |
| 1350 | } |
| 1351 | } |
| 1352 | if (!found) { |
| 1353 | ret.push_back( (*it)[0] ); |
| 1354 | } |
| 1355 | } |
| 1356 | |
| 1357 | return ret; |
| 1358 | } |
| 1359 | |
| 1360 | const std::vector<std::string>& |
| 1361 | Project::getProjectViewNames() const |