diff view/Pane.cpp @ 650:12d570c27d85 tonioni

split drag delete
author matthiasm
date Sun, 16 Jun 2013 00:16:37 +0100
parents ba76130ed7e5
children
line wrap: on
line diff
--- a/view/Pane.cpp	Sat Jun 15 19:52:06 2013 +0100
+++ b/view/Pane.cpp	Sun Jun 16 00:16:37 2013 +0100
@@ -1387,7 +1387,7 @@
         std::cerr << "mouse pressed in note edit mode" << std::endl;
         Layer *layer = getSelectedLayer();
         if (layer && layer->isLayerEditable()) {
-            layer->splitStart(this, e); 
+            layer->multiStart(this, e); 
         }
 
     } else if (mode == ViewManager::EditMode) {
@@ -1491,7 +1491,7 @@
         //GF: handle mouse release for NoteEditMode (note: works but will need to re-think this a bit later)
         Layer *layer = getSelectedLayer();
         if (layer && layer->isLayerEditable()) {
-            layer->splitEnd(this, e);
+            layer->multiEnd(this, e);
             update(); }
 
         if (m_editing) {
@@ -1722,6 +1722,14 @@
         }
 
         update();
+    } else if (mode == ViewManager::NoteEditMode) {
+
+        Layer *layer = getTopLayer();
+        if (layer) {
+            layer->multiDrag(this, e);
+        }
+
+        update();
     }
 }
 
@@ -2463,7 +2471,7 @@
 
     // GF: NoteEditMode uses the same default cursor as EditMode, but it will change in a context sensitive manner.
     case ViewManager::NoteEditMode:
-    setCursor(Qt::UpArrowCursor);
+        setCursor(Qt::UpArrowCursor);
     break;
 
 /*