comparison layer/FlexiNoteLayer.h @ 658:050404ae7799 tonioni

toggle button for boundary constraints and note recalculation
author gyorgyf
date Thu, 20 Jun 2013 10:58:40 +0100
parents 902c7c9d77ea
children 8663a831838f
comparison
equal deleted inserted replaced
657:ac26de7b727a 658:050404ae7799
94 DragNote, 94 DragNote,
95 RightBoundary, 95 RightBoundary,
96 SplitNote, 96 SplitNote,
97 LeftBoundary 97 LeftBoundary
98 }; 98 };
99
100 void setIntelligentActions(bool on) { m_intelligentActions=on; }
99 101
100 void setVerticalScale(VerticalScale scale); 102 void setVerticalScale(VerticalScale scale);
101 VerticalScale getVerticalScale() const { return m_verticalScale; } 103 VerticalScale getVerticalScale() const { return m_verticalScale; }
102 104
103 virtual bool isLayerScrollable(const View *v) const; 105 virtual bool isLayerScrollable(const View *v) const;
159 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const; 161 void getRelativeMousePosition(View *v, FlexiNoteModel::Point &note, int x, int y, bool &closeToLeft, bool &closeToRight, bool &closeToTop, bool &closeToBottom) const;
160 void updateNoteValue(View *v, FlexiNoteModel::Point &note) const; 162 void updateNoteValue(View *v, FlexiNoteModel::Point &note) const;
161 163
162 FlexiNoteModel *m_model; 164 FlexiNoteModel *m_model;
163 bool m_editing; 165 bool m_editing;
166 bool m_intelligentActions;
164 int m_dragPointX; 167 int m_dragPointX;
165 int m_dragPointY; 168 int m_dragPointY;
166 int m_dragStartX; 169 int m_dragStartX;
167 int m_dragStartY; 170 int m_dragStartY;
168 FlexiNoteModel::Point m_originalPoint; 171 FlexiNoteModel::Point m_originalPoint;