Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.h @ 660:8663a831838f tonioni
instrument is now "click" -- some other minor changes I don't remember
author | matthiasm |
---|---|
date | Thu, 20 Jun 2013 13:47:36 +0100 |
parents | 050404ae7799 |
children | ad12e428785b |
comparison
equal
deleted
inserted
replaced
659:65b966394650 | 660:8663a831838f |
---|---|
54 virtual void editDrag(View *v, QMouseEvent *); | 54 virtual void editDrag(View *v, QMouseEvent *); |
55 virtual void editEnd(View *v, QMouseEvent *); | 55 virtual void editEnd(View *v, QMouseEvent *); |
56 | 56 |
57 virtual void splitStart(View *v, QMouseEvent *); | 57 virtual void splitStart(View *v, QMouseEvent *); |
58 virtual void splitEnd(View *v, QMouseEvent *); | 58 virtual void splitEnd(View *v, QMouseEvent *); |
59 | |
60 virtual void addNote(View *v, QMouseEvent *e); | |
59 | 61 |
60 virtual void mouseMoveEvent(View *v, QMouseEvent *); | 62 virtual void mouseMoveEvent(View *v, QMouseEvent *); |
61 | 63 |
62 virtual bool editOpen(View *v, QMouseEvent *); | 64 virtual bool editOpen(View *v, QMouseEvent *); |
63 | 65 |
94 DragNote, | 96 DragNote, |
95 RightBoundary, | 97 RightBoundary, |
96 SplitNote, | 98 SplitNote, |
97 LeftBoundary | 99 LeftBoundary |
98 }; | 100 }; |
101 | |
102 void setIntelligentActions(bool on) { m_intelligentActions=on; } | |
99 | 103 |
100 void setVerticalScale(VerticalScale scale); | 104 void setVerticalScale(VerticalScale scale); |
101 VerticalScale getVerticalScale() const { return m_verticalScale; } | 105 VerticalScale getVerticalScale() const { return m_verticalScale; } |
102 | 106 |
103 virtual bool isLayerScrollable(const View *v) const; | 107 virtual bool isLayerScrollable(const View *v) const; |
159 void getRelativeMousePosition(View *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; | 163 void getRelativeMousePosition(View *v, FlexiNoteModel::Point ¬e, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; |
160 void updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; | 164 void updateNoteValue(View *v, FlexiNoteModel::Point ¬e) const; |
161 | 165 |
162 FlexiNoteModel *m_model; | 166 FlexiNoteModel *m_model; |
163 bool m_editing; | 167 bool m_editing; |
168 bool m_intelligentActions; | |
164 int m_dragPointX; | 169 int m_dragPointX; |
165 int m_dragPointY; | 170 int m_dragPointY; |
166 int m_dragStartX; | 171 int m_dragStartX; |
167 int m_dragStartY; | 172 int m_dragStartY; |
168 FlexiNoteModel::Point m_originalPoint; | 173 FlexiNoteModel::Point m_originalPoint; |