# HG changeset patch # User Chris Cannam # Date 1186670403 0 # Node ID c1980ed39d2e9e5bf18431ca35b47ea3fd8544d0 # Parent cd58be60e5f206e96a8925c1cc67854cac49d0c4 * 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 diff -r cd58be60e5f2 -r c1980ed39d2e document/Document.cpp --- a/document/Document.cpp Mon Aug 06 14:37:59 2007 +0000 +++ b/document/Document.cpp Thu Aug 09 14:40:03 2007 +0000 @@ -515,6 +515,11 @@ m_models[model].refcount ++; } + if (model && previousModel) { + PlayParameterRepository::getInstance()->copyParameters + (previousModel, model); + } + LayerFactory::getInstance()->setModel(layer, model); if (previousModel) { diff -r cd58be60e5f2 -r c1980ed39d2e main/MainWindow.cpp --- a/main/MainWindow.cpp Mon Aug 06 14:37:59 2007 +0000 +++ b/main/MainWindow.cpp Thu Aug 09 14:40:03 2007 +0000 @@ -211,9 +211,9 @@ m_panLayer = new WaveformLayer; m_panLayer->setChannelMode(WaveformLayer::MergeChannels); - m_panLayer->setBaseColour(Qt::darkGreen); m_panLayer->setAggressiveCacheing(true); m_overview->addLayer(m_panLayer); + m_panLayer->setBaseColour(ColourDatabase::getInstance()->getColourIndex(Qt::darkGreen)); m_playSource = new AudioCallbackPlaySource(m_viewManager); @@ -841,8 +841,6 @@ menu->addSeparator(); - /* Doesn't quite work well enough - action = new QAction(tr("Use Dar&k Background"), this); action->setStatusTip(tr("Switch between light and dark background colour schemes")); connect(action, SIGNAL(triggered()), this, SLOT(toggleDarkBackground())); @@ -852,8 +850,6 @@ menu->addSeparator(); - */ - action = new QAction(tr("Show &Zoom Wheels"), this); action->setShortcut(tr("Z")); action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically"));