Mercurial > hg > sonic-visualiser
diff main/MainWindow.h @ 1794:2f828631c9be
Update pane and layer menu shortcuts so that the waveform/spectrogram/etc shortcuts (Shift+G etc) always refer to the source model that is in the currently selected pane. This is a potentially confusing backward-incompatible change, but is also quite clearly how it ought to work...
author | Chris Cannam |
---|---|
date | Thu, 26 Apr 2018 15:09:52 +0100 |
parents | 893f556cd5c9 |
children | dc275d7d9aa6 |
line wrap: on
line diff
--- a/main/MainWindow.h Thu Apr 26 09:27:24 2018 +0100 +++ b/main/MainWindow.h Thu Apr 26 15:09:52 2018 +0100 @@ -246,6 +246,9 @@ int channel; }; + QString shortcutFor(LayerFactory::LayerType, bool isPaneMenu); + void updateLayerShortcutsFor(Model *); + typedef std::map<QAction *, LayerConfiguration> PaneActionMap; PaneActionMap m_paneActions;