comparison transform/TransformFactory.cpp @ 55:ca1e3f5657d5

* Simplify maker names in plugin menu * Make sure derived models have a name (based on the transform) * Don't start deriving a model from a derived model until the derived model is ready * Tidy up completion management in writable wave file model * Make writable models save/reload correctly from session file (i.e. regenerating from the original transform) * Same for dense 3d models -- don't save the data, just the transform details * Add a comment describing the SV file format
author Chris Cannam
date Fri, 13 Oct 2006 12:51:05 +0000
parents ec77936c268e
children f7cb156508cc
comparison
equal deleted inserted replaced
54:ec77936c268e 55:ca1e3f5657d5
662 if (!t) return 0; 662 if (!t) return 0;
663 663
664 connect(t, SIGNAL(finished()), this, SLOT(transformFinished())); 664 connect(t, SIGNAL(finished()), this, SLOT(transformFinished()));
665 665
666 t->start(); 666 t->start();
667 return t->detachOutputModel(); 667 Model *model = t->detachOutputModel();
668
669 if (model) {
670 QString imn = inputModel->objectName();
671 QString trn = getTransformFriendlyName(name);
672 if (imn != "") {
673 if (trn != "") {
674 model->setObjectName(tr("%1: %2").arg(imn).arg(trn));
675 } else {
676 model->setObjectName(imn);
677 }
678 } else if (trn != "") {
679 model->setObjectName(trn);
680 }
681 }
682
683 return model;
668 } 684 }
669 685
670 void 686 void
671 TransformFactory::transformFinished() 687 TransformFactory::transformFinished()
672 { 688 {