Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
1793:5da79d7501f9 | 1794:2f828631c9be |
---|---|
244 LayerFactory::LayerType layer; | 244 LayerFactory::LayerType layer; |
245 Model *sourceModel; | 245 Model *sourceModel; |
246 int channel; | 246 int channel; |
247 }; | 247 }; |
248 | 248 |
249 QString shortcutFor(LayerFactory::LayerType, bool isPaneMenu); | |
250 void updateLayerShortcutsFor(Model *); | |
251 | |
249 typedef std::map<QAction *, LayerConfiguration> PaneActionMap; | 252 typedef std::map<QAction *, LayerConfiguration> PaneActionMap; |
250 PaneActionMap m_paneActions; | 253 PaneActionMap m_paneActions; |
251 | 254 |
252 typedef std::map<QAction *, LayerConfiguration> LayerActionMap; | 255 typedef std::map<QAction *, LayerConfiguration> LayerActionMap; |
253 LayerActionMap m_layerActions; | 256 LayerActionMap m_layerActions; |