diff layer/FlexiNoteLayer.h @ 649:2ad082c5a090 tonioni

boundary actions and note delete consolidated
author gyorgyf
date Sun, 16 Jun 2013 20:40:05 +0100
parents ba76130ed7e5
children 76c5dfe333ee
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.h	Sat Jun 15 19:52:06 2013 +0100
+++ b/layer/FlexiNoteLayer.h	Sun Jun 16 20:40:05 2013 +0100
@@ -88,6 +88,14 @@
         LogScale,
         MIDIRangeScale
     };
+    
+    //GF: Tonioni: context sensitive note edit actions (denoted clockwise from top).
+    enum EditMode {
+        dragNote,
+        rightBoundary,
+        splitNote,
+        leftBoundary
+    };
 
     void setVerticalScale(VerticalScale scale);
     VerticalScale getVerticalScale() const { return m_verticalScale; }
@@ -158,6 +166,7 @@
     FlexiNoteModel::Point m_editingPoint;
     FlexiNoteModel::EditCommand *m_editingCommand;
     VerticalScale m_verticalScale;
+    EditMode m_editMode;
 
     typedef std::set<FlexiNoteModel::Point, FlexiNoteModel::Point::Comparator> FlexiNoteSet;
     FlexiNoteSet m_pendingNoteOns;