| 1434 | } |
| 1435 | |
| 1436 | std::vector<std::string> |
| 1437 | Project::getProjectDefaultLayerNames() const |
| 1438 | { |
| 1439 | std::vector<std::string> ret; |
| 1440 | std::list<std::vector<std::string> > pairs; |
| 1441 | |
| 1442 | _imp->defaultLayersList->getTable(&pairs); |
| 1443 | for (std::list<std::vector<std::string> >::iterator it = pairs.begin(); |
| 1444 | it != pairs.end(); ++it) { |
| 1445 | bool found = false; |
| 1446 | for (std::size_t i = 0; i < ret.size(); ++i) { |
| 1447 | if (ret[i] == (*it)[0]) { |
| 1448 | found = true; |
| 1449 | break; |
| 1450 | } |
| 1451 | } |
| 1452 | if (!found) { |
| 1453 | ret.push_back( (*it)[0] ); |
| 1454 | } |
| 1455 | } |
| 1456 | |
| 1457 | return ret; |
| 1458 | } |
| 1459 | |
| 1460 | const std::vector<std::string>& |
| 1461 | Project::getProjectViewNames() const |