comparison transform/TransformFactory.cpp @ 462:957e6a5c8495

* Add More Info URL to plugin finder
author Chris Cannam
date Thu, 23 Oct 2008 16:30:48 +0000
parents 2019d89ebcf9
children 70b333085952
comparison
equal deleted inserted replaced
461:2019d89ebcf9 462:957e6a5c8495
549 // continue; 549 // continue;
550 // } 550 // }
551 551
552 QString description = desc.getPluginDescription(); 552 QString description = desc.getPluginDescription();
553 QString maker = desc.getPluginMaker(); 553 QString maker = desc.getPluginMaker();
554 QString infoUrl = desc.getPluginInfoURL();
554 555
555 QStringList oids = desc.getOutputIds(); 556 QStringList oids = desc.getOutputIds();
556 557
557 for (QStringList::const_iterator j = oids.begin(); j != oids.end(); ++j) { 558 for (QStringList::const_iterator j = oids.begin(); j != oids.end(); ++j) {
558 559
579 td.name = name; 580 td.name = name;
580 } else if (name != "") { 581 } else if (name != "") {
581 td.name = tr("%1: %2").arg(name).arg(oname); 582 td.name = tr("%1: %2").arg(name).arg(oname);
582 } 583 }
583 584
585 QString longDescription = description;
586 //!!! basically duplicated from above
587 if (longDescription == "") {
588 if (oids.size() == 1) {
589 longDescription = tr("Extract features using \"%1\" plugin (from %2)")
590 .arg(name).arg(maker);
591 } else {
592 longDescription = tr("Extract features using \"%1\" output of \"%2\" plugin (from %3)")
593 .arg(oname).arg(name).arg(maker);
594 }
595 } else {
596 if (oids.size() == 1) {
597 longDescription = tr("%1 using \"%2\" plugin (from %3)")
598 .arg(longDescription).arg(name).arg(maker);
599 } else {
600 longDescription = tr("%1 using \"%2\" output of \"%3\" plugin (from %4)")
601 .arg(longDescription).arg(oname).arg(name).arg(maker);
602 }
603 }
604
584 td.friendlyName = name; //!!!??? 605 td.friendlyName = name; //!!!???
585 td.description = description; 606 td.description = description;
586 td.longDescription = ""; //!!! 607 td.longDescription = longDescription;
587 td.maker = maker; 608 td.maker = maker;
609 td.infoUrl = infoUrl;
588 td.units = ""; 610 td.units = "";
589 td.configurable = false; 611 td.configurable = false;
590 612
591 m_uninstalledTransforms[tid] = td; 613 m_uninstalledTransforms[tid] = td;
614
615 if (td.infoUrl != "") {
616 if (m_transforms.find(tid) != m_transforms.end()) {
617 if (m_transforms[tid].infoUrl == "") {
618 m_transforms[tid].infoUrl = td.infoUrl;
619 }
620 }
621 }
592 } 622 }
593 } 623 }
594 624
595 m_uninstalledTransformsPopulated = true; 625 m_uninstalledTransformsPopulated = true;
596 626