comparison transform/TransformFactory.cpp @ 1166:4607603c46d0

Show warning to the user when plugin population has problems
author Chris Cannam
date Tue, 19 Jan 2016 12:32:30 +0000
parents 205250c5d2a2
children 6877f4200912
comparison
equal deleted inserted replaced
1165:d57f9344db19 1166:4607603c46d0
395 395
396 m_transforms[identifier] = desc; 396 m_transforms[identifier] = desc;
397 } 397 }
398 398
399 m_transformsPopulated = true; 399 m_transformsPopulated = true;
400 }
401
402 QString
403 TransformFactory::getPluginPopulationWarning()
404 {
405 FeatureExtractionPluginFactory *vfactory =
406 FeatureExtractionPluginFactory::instance("vamp");
407 QString warningMessage;
408 if (vfactory) {
409 warningMessage = vfactory->getPluginPopulationWarning();
410 }
411 return warningMessage;
400 } 412 }
401 413
402 void 414 void
403 TransformFactory::populateFeatureExtractionPlugins(TransformDescriptionMap &transforms) 415 TransformFactory::populateFeatureExtractionPlugins(TransformDescriptionMap &transforms)
404 { 416 {