Mercurial > hg > sonic-visualiser
diff 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 |
line wrap: on
line diff
--- a/transform/TransformFactory.cpp Thu Oct 12 14:56:28 2006 +0000 +++ b/transform/TransformFactory.cpp Fri Oct 13 12:51:05 2006 +0000 @@ -664,7 +664,23 @@ connect(t, SIGNAL(finished()), this, SLOT(transformFinished())); t->start(); - return t->detachOutputModel(); + Model *model = t->detachOutputModel(); + + if (model) { + QString imn = inputModel->objectName(); + QString trn = getTransformFriendlyName(name); + if (imn != "") { + if (trn != "") { + model->setObjectName(tr("%1: %2").arg(imn).arg(trn)); + } else { + model->setObjectName(imn); + } + } else if (trn != "") { + model->setObjectName(trn); + } + } + + return model; } void