comparison layer/Layer.h @ 771:a964151832a7

Merge from branch tony_integration
author Chris Cannam
date Wed, 14 May 2014 09:54:34 +0100
parents dd64efa0dac8
children 1d526ba11a24
comparison
equal deleted inserted replaced
768:8b614632568c 771:a964151832a7
129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); } 129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
130 130
131 virtual int getVerticalScaleWidth(View *, bool detailed, 131 virtual int getVerticalScaleWidth(View *, bool detailed,
132 QPainter &) const = 0; 132 QPainter &) const = 0;
133 133
134 virtual void paintVerticalScale(View *, bool detailed, 134 virtual void paintVerticalScale(View *, bool /* detailed */,
135 QPainter &, QRect) const { } 135 QPainter &, QRect) const { }
136 136
137 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */, 137 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,
138 std::vector<QRect> &) const { 138 std::vector<QRect> &) const {
139 return false; 139 return false;
148 148
149 virtual QString getFeatureDescription(View *, QPoint &) const { 149 virtual QString getFeatureDescription(View *, QPoint &) const {
150 return ""; 150 return "";
151 } 151 }
152 152
153 virtual QString getLabelPreceding(size_t frame) const { 153 virtual QString getLabelPreceding(size_t /* frame */) const {
154 return ""; 154 return "";
155 } 155 }
156 156
157 enum SnapType { 157 enum SnapType {
158 SnapLeft, 158 SnapLeft,
227 227
228 virtual void editStart(View *, QMouseEvent *) { } 228 virtual void editStart(View *, QMouseEvent *) { }
229 virtual void editDrag(View *, QMouseEvent *) { } 229 virtual void editDrag(View *, QMouseEvent *) { }
230 virtual void editEnd(View *, QMouseEvent *) { } 230 virtual void editEnd(View *, QMouseEvent *) { }
231 231
232 virtual void splitStart(View *, QMouseEvent *) { }
233 virtual void splitEnd(View *, QMouseEvent *) { }
234 virtual void addNote(View *, QMouseEvent *) { };
235
232 // Measurement rectangle (or equivalent). Unlike draw and edit, 236 // Measurement rectangle (or equivalent). Unlike draw and edit,
233 // the base Layer class can provide working implementations of 237 // the base Layer class can provide working implementations of
234 // these for most situations. 238 // these for most situations.
235 // 239 //
236 virtual void measureStart(View *, QMouseEvent *); 240 virtual void measureStart(View *, QMouseEvent *);