Mercurial > hg > svgui
diff widgets/Pane.cpp @ 23:ca57f70b0e48
* Add Zero Crossings output from zc plugin (as well as Zero Crossings Count)
* Use brief friendly names for layers instead of full transform descriptions
* Clearer command names for editing commands
* Some efficiencies in drawing dense points in TimeInstantLayer
author | Chris Cannam |
---|---|
date | Tue, 31 Jan 2006 17:19:45 +0000 |
parents | 3a506d25d95a |
children | dcdb21b62dbb |
line wrap: on
line diff
--- a/widgets/Pane.cpp Tue Jan 31 15:57:25 2006 +0000 +++ b/widgets/Pane.cpp Tue Jan 31 17:19:45 2006 +0000 @@ -341,14 +341,14 @@ } else if (mode == ViewManager::DrawMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->drawStart(e); } } else if (mode == ViewManager::EditMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->editStart(e); } } @@ -430,7 +430,7 @@ } else if (mode == ViewManager::DrawMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->drawEnd(e); update(); } @@ -438,7 +438,7 @@ } else if (mode == ViewManager::EditMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->editEnd(e); update(); } @@ -577,14 +577,14 @@ } else if (mode == ViewManager::DrawMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->drawDrag(e); } } else if (mode == ViewManager::EditMode) { Layer *layer = getSelectedLayer(); - if (layer) { + if (layer && layer->isLayerEditable()) { layer->editDrag(e); } }