only used for Natron internal plugins (ViewerGroup, Dot, DiskCache, BackDrop, Roto) see also AppManager::getPluginBinary(), OFX::Host::PluginCache::getPluginById()
| 426 | // see also AppManager::getPluginBinary(), OFX::Host::PluginCache::getPluginById() |
| 427 | // |
| 428 | Plugin* |
| 429 | AppManagerPrivate::findPluginById(const QString& newId, |
| 430 | int major, |
| 431 | int minor) const |
| 432 | { |
| 433 | for (PluginsMap::const_iterator it = _plugins.begin(); it != _plugins.end(); ++it) { |
| 434 | for (PluginVersionsOrdered::const_reverse_iterator itver = it->second.rbegin(); |
| 435 | itver != it->second.rend(); |
| 436 | ++itver) { |
| 437 | if ( ( (*itver)->getPluginID() == newId ) && |
| 438 | ( (*itver)->getMajorVersion() == major ) && |
| 439 | ( (*itver)->getMinorVersion() == minor ) ) { |
| 440 | return (*itver); |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | return 0; |
| 446 | } |
| 447 | |
| 448 | void |
| 449 | AppManagerPrivate::declareSettingsToPython() |
no test coverage detected