Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 171:cd58be60e5f2
* Add QuickTime file reader class -- totally untested, shouldn't even compile
author | Chris Cannam |
---|---|
date | Mon, 06 Aug 2007 14:37:59 +0000 |
parents | ca825d1a4a6b |
children | c1980ed39d2e |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Aug 06 10:20:54 2007 +0000 +++ b/main/MainWindow.cpp Mon Aug 06 14:37:59 2007 +0000 @@ -841,6 +841,19 @@ 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())); + action->setCheckable(true); + action->setChecked(m_viewManager->getGlobalDarkBackground()); + menu->addAction(action); + + menu->addSeparator(); + + */ + action = new QAction(tr("Show &Zoom Wheels"), this); action->setShortcut(tr("Z")); action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); @@ -3523,6 +3536,14 @@ } void +MainWindow::toggleDarkBackground() +{ + if (!m_viewManager) return; + m_viewManager->setGlobalDarkBackground + (!m_viewManager->getGlobalDarkBackground()); +} + +void MainWindow::preferenceChanged(PropertyContainer::PropertyName name) { if (name == "Property Box Layout") {