Mercurial > hg > svgui
diff widgets/Pane.cpp @ 18:7c767d41bcee
* Add basic drag editing of time instants.
Plenty of tuning to do for both this and drawing.
author | Chris Cannam |
---|---|
date | Thu, 26 Jan 2006 18:01:38 +0000 |
parents | 0183ebb725ca |
children | 46d8f5add6f0 |
line wrap: on
line diff
--- a/widgets/Pane.cpp Thu Jan 26 16:15:40 2006 +0000 +++ b/widgets/Pane.cpp Thu Jan 26 18:01:38 2006 +0000 @@ -342,6 +342,13 @@ if (layer) { layer->drawStart(e); } + + } else if (mode == ViewManager::EditMode) { + + Layer *layer = getSelectedLayer(); + if (layer) { + layer->editStart(e); + } } emit paneInteractedWith(); @@ -424,6 +431,14 @@ layer->drawEnd(e); update(); } + + } else if (mode == ViewManager::EditMode) { + + Layer *layer = getSelectedLayer(); + if (layer) { + layer->editEnd(e); + update(); + } } m_clickedInRange = false; @@ -564,6 +579,13 @@ if (layer) { layer->drawDrag(e); } + + } else if (mode == ViewManager::EditMode) { + + Layer *layer = getSelectedLayer(); + if (layer) { + layer->editDrag(e); + } } }