Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 169:ca825d1a4a6b
* Restore Scale setting which had mistakenly disappeared from spectrum
* Some tweaks to spectrum peaks
* Make spectrum default to 4096/75%... or is that overdoing it?
* Show harmonic cursor even during playback if in measure mode and mouse in
relevant pane
* Avoid crash when trying to measure a non-layer
* Various adjustments to some icons to make them look better in white-on-black
schemes
author | Chris Cannam |
---|---|
date | Fri, 13 Jul 2007 15:54:17 +0000 |
parents | aca2c23f0f09 |
children | cd58be60e5f2 |
comparison
equal
deleted
inserted
replaced
168:aca2c23f0f09 | 169:ca825d1a4a6b |
---|---|
1777 tr("Measure")); | 1777 tr("Measure")); |
1778 action->setCheckable(true); | 1778 action->setCheckable(true); |
1779 action->setShortcut(tr("5")); | 1779 action->setShortcut(tr("5")); |
1780 action->setStatusTip(tr("Make measurements in layer")); | 1780 action->setStatusTip(tr("Make measurements in layer")); |
1781 connect(action, SIGNAL(triggered()), this, SLOT(toolMeasureSelected())); | 1781 connect(action, SIGNAL(triggered()), this, SLOT(toolMeasureSelected())); |
1782 connect(this, SIGNAL(canMeasureLayer(bool)), action, SLOT(setEnabled(bool))); | |
1782 group->addAction(action); | 1783 group->addAction(action); |
1783 m_keyReference->registerShortcut(action); | 1784 m_keyReference->registerShortcut(action); |
1784 m_toolActions[ViewManager::MeasureMode] = action; | 1785 m_toolActions[ViewManager::MeasureMode] = action; |
1785 | 1786 |
1786 // action = toolbar->addAction(il.load("text"), | 1787 // action = toolbar->addAction(il.load("text"), |
1845 (haveCurrentEditableLayer || haveCurrentColour3DPlot)); | 1846 (haveCurrentEditableLayer || haveCurrentColour3DPlot)); |
1846 emit canExportImage(haveMainModel && haveCurrentPane); | 1847 emit canExportImage(haveMainModel && haveCurrentPane); |
1847 emit canDeleteCurrentLayer(haveCurrentLayer); | 1848 emit canDeleteCurrentLayer(haveCurrentLayer); |
1848 emit canRenameLayer(haveCurrentLayer); | 1849 emit canRenameLayer(haveCurrentLayer); |
1849 emit canEditLayer(haveCurrentEditableLayer); | 1850 emit canEditLayer(haveCurrentEditableLayer); |
1851 emit canMeasureLayer(haveCurrentLayer); | |
1850 emit canSelect(haveMainModel && haveCurrentPane); | 1852 emit canSelect(haveMainModel && haveCurrentPane); |
1851 emit canPlay(havePlayTarget); | 1853 emit canPlay(havePlayTarget); |
1852 emit canFfwd(true); | 1854 emit canFfwd(true); |
1853 emit canRewind(true); | 1855 emit canRewind(true); |
1854 emit canPaste(haveCurrentEditableLayer && haveClipboardContents); | 1856 emit canPaste(haveCurrentEditableLayer && haveClipboardContents); |