Mercurial > hg > sonic-visualiser
comparison main/MainWindow.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 | cd58be60e5f2 |
children | aaf806ce329a |
comparison
equal
deleted
inserted
replaced
171:cd58be60e5f2 | 172:c1980ed39d2e |
---|---|
209 connect(m_overview, SIGNAL(contextHelpChanged(const QString &)), | 209 connect(m_overview, SIGNAL(contextHelpChanged(const QString &)), |
210 this, SLOT(contextHelpChanged(const QString &))); | 210 this, SLOT(contextHelpChanged(const QString &))); |
211 | 211 |
212 m_panLayer = new WaveformLayer; | 212 m_panLayer = new WaveformLayer; |
213 m_panLayer->setChannelMode(WaveformLayer::MergeChannels); | 213 m_panLayer->setChannelMode(WaveformLayer::MergeChannels); |
214 m_panLayer->setBaseColour(Qt::darkGreen); | |
215 m_panLayer->setAggressiveCacheing(true); | 214 m_panLayer->setAggressiveCacheing(true); |
216 m_overview->addLayer(m_panLayer); | 215 m_overview->addLayer(m_panLayer); |
216 m_panLayer->setBaseColour(ColourDatabase::getInstance()->getColourIndex(Qt::darkGreen)); | |
217 | 217 |
218 m_playSource = new AudioCallbackPlaySource(m_viewManager); | 218 m_playSource = new AudioCallbackPlaySource(m_viewManager); |
219 | 219 |
220 connect(m_playSource, SIGNAL(sampleRateMismatch(size_t, size_t, bool)), | 220 connect(m_playSource, SIGNAL(sampleRateMismatch(size_t, size_t, bool)), |
221 this, SLOT(sampleRateMismatch(size_t, size_t, bool))); | 221 this, SLOT(sampleRateMismatch(size_t, size_t, bool))); |
839 m_keyReference->registerShortcut(action); | 839 m_keyReference->registerShortcut(action); |
840 menu->addAction(action); | 840 menu->addAction(action); |
841 | 841 |
842 menu->addSeparator(); | 842 menu->addSeparator(); |
843 | 843 |
844 /* Doesn't quite work well enough | |
845 | |
846 action = new QAction(tr("Use Dar&k Background"), this); | 844 action = new QAction(tr("Use Dar&k Background"), this); |
847 action->setStatusTip(tr("Switch between light and dark background colour schemes")); | 845 action->setStatusTip(tr("Switch between light and dark background colour schemes")); |
848 connect(action, SIGNAL(triggered()), this, SLOT(toggleDarkBackground())); | 846 connect(action, SIGNAL(triggered()), this, SLOT(toggleDarkBackground())); |
849 action->setCheckable(true); | 847 action->setCheckable(true); |
850 action->setChecked(m_viewManager->getGlobalDarkBackground()); | 848 action->setChecked(m_viewManager->getGlobalDarkBackground()); |
851 menu->addAction(action); | 849 menu->addAction(action); |
852 | 850 |
853 menu->addSeparator(); | 851 menu->addSeparator(); |
854 | |
855 */ | |
856 | 852 |
857 action = new QAction(tr("Show &Zoom Wheels"), this); | 853 action = new QAction(tr("Show &Zoom Wheels"), this); |
858 action->setShortcut(tr("Z")); | 854 action->setShortcut(tr("Z")); |
859 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); | 855 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); |
860 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); | 856 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); |