# HG changeset patch # User Chris Cannam # Date 1186411079 0 # Node ID cd58be60e5f206e96a8925c1cc67854cac49d0c4 # Parent 4a42776c34cd930034e3fdabb2b86530e9684cc3 * Add QuickTime file reader class -- totally untested, shouldn't even compile diff -r 4a42776c34cd -r cd58be60e5f2 main/MainWindow.cpp --- 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") { diff -r 4a42776c34cd -r cd58be60e5f2 main/MainWindow.h --- a/main/MainWindow.h Mon Aug 06 10:20:54 2007 +0000 +++ b/main/MainWindow.h Mon Aug 06 14:37:59 2007 +0000 @@ -154,6 +154,7 @@ void toggleZoomWheels(); void togglePropertyBoxes(); void toggleStatusBar(); + void toggleDarkBackground(); void play(); void ffwd();