Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
170:4a42776c34cd | 171:cd58be60e5f2 |
---|---|
838 overlayGroup->addAction(action); | 838 overlayGroup->addAction(action); |
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 | |
844 /* Doesn't quite work well enough | |
845 | |
846 action = new QAction(tr("Use Dar&k Background"), this); | |
847 action->setStatusTip(tr("Switch between light and dark background colour schemes")); | |
848 connect(action, SIGNAL(triggered()), this, SLOT(toggleDarkBackground())); | |
849 action->setCheckable(true); | |
850 action->setChecked(m_viewManager->getGlobalDarkBackground()); | |
851 menu->addAction(action); | |
852 | |
853 menu->addSeparator(); | |
854 | |
855 */ | |
843 | 856 |
844 action = new QAction(tr("Show &Zoom Wheels"), this); | 857 action = new QAction(tr("Show &Zoom Wheels"), this); |
845 action->setShortcut(tr("Z")); | 858 action->setShortcut(tr("Z")); |
846 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); | 859 action->setStatusTip(tr("Show thumbwheels for zooming horizontally and vertically")); |
847 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); | 860 connect(action, SIGNAL(triggered()), this, SLOT(toggleZoomWheels())); |
3521 | 3534 |
3522 settings.endGroup(); | 3535 settings.endGroup(); |
3523 } | 3536 } |
3524 | 3537 |
3525 void | 3538 void |
3539 MainWindow::toggleDarkBackground() | |
3540 { | |
3541 if (!m_viewManager) return; | |
3542 m_viewManager->setGlobalDarkBackground | |
3543 (!m_viewManager->getGlobalDarkBackground()); | |
3544 } | |
3545 | |
3546 void | |
3526 MainWindow::preferenceChanged(PropertyContainer::PropertyName name) | 3547 MainWindow::preferenceChanged(PropertyContainer::PropertyName name) |
3527 { | 3548 { |
3528 if (name == "Property Box Layout") { | 3549 if (name == "Property Box Layout") { |
3529 if (m_paneStack->getLayoutStyle() != PaneStack::NoPropertyStacks) { | 3550 if (m_paneStack->getLayoutStyle() != PaneStack::NoPropertyStacks) { |
3530 if (Preferences::getInstance()->getPropertyBoxLayout() == | 3551 if (Preferences::getInstance()->getPropertyBoxLayout() == |