Mercurial > hg > sonic-visualiser
comparison document/Document.cpp @ 172:c1980ed39d2e
* continue to pick "new" colours for coloured layers even when all colours
have been used at least once, rather than sticking on the last one
* some messing about with application palette settings
* when replacing an audio file, retain the previous playback settings for
any layers that depended on the old file
* re-check plugin program setting when a parameter changes -- so a plugin
can decide to reset the program if the parameters no longer match those
for the current program
* fix failure to update check-boxes for toggled plugin parameters when their
parameters are changed by program changes
author | Chris Cannam |
---|---|
date | Thu, 09 Aug 2007 14:40:03 +0000 |
parents | 107ca17594c8 |
children | 98ba77e0d897 |
comparison
equal
deleted
inserted
replaced
171:cd58be60e5f2 | 172:c1980ed39d2e |
---|---|
513 | 513 |
514 if (model && model != m_mainModel) { | 514 if (model && model != m_mainModel) { |
515 m_models[model].refcount ++; | 515 m_models[model].refcount ++; |
516 } | 516 } |
517 | 517 |
518 if (model && previousModel) { | |
519 PlayParameterRepository::getInstance()->copyParameters | |
520 (previousModel, model); | |
521 } | |
522 | |
518 LayerFactory::getInstance()->setModel(layer, model); | 523 LayerFactory::getInstance()->setModel(layer, model); |
519 | 524 |
520 if (previousModel) { | 525 if (previousModel) { |
521 releaseModel(previousModel); | 526 releaseModel(previousModel); |
522 } | 527 } |