changeset 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 4a42776c34cd
children c1980ed39d2e
files main/MainWindow.cpp main/MainWindow.h
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
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") {
--- 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();