comparison layer/Layer.h @ 594:5fa210337bee integration_library

Merge from branch "sonification"
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 18:56:28 +0100
parents a13aa5320221
children
comparison
equal deleted inserted replaced
593:aaa3be825207 594:5fa210337bee
127 127
128 virtual QString getLayerPresentationName() const; 128 virtual QString getLayerPresentationName() const;
129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); } 129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
130 130
131 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 131 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
132
133 //virtual int getHorizontalScaleHeight(View *, QPainter &) const { return 0; } //this causes the application to crash at startup?
134
132 virtual void paintVerticalScale(View *, QPainter &, QRect) const { } 135 virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
133 136
134 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */, 137 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,
135 std::vector<QRect> &) const { 138 std::vector<QRect> &) const {
136 return false; 139 return false;
245 * double-click). If there is no item or editing is not 248 * double-click). If there is no item or editing is not
246 * supported, return false. 249 * supported, return false.
247 */ 250 */
248 virtual bool editOpen(View *, QMouseEvent *) { return false; } 251 virtual bool editOpen(View *, QMouseEvent *) { return false; }
249 252
253 /**
254 * A click occurred over the layer's scale area. If the layer has
255 * a response to this (e.g. play a note corresponding to frequency
256 * scale), perform it and return true. Return false if this click
257 * is not meaningful to the layer.
258 */
259 virtual bool scaleClicked(const View *, QMouseEvent *) { return false; }
260
250 virtual void moveSelection(Selection, size_t /* newStartFrame */) { } 261 virtual void moveSelection(Selection, size_t /* newStartFrame */) { }
251 virtual void resizeSelection(Selection, Selection /* newSize */) { } 262 virtual void resizeSelection(Selection, Selection /* newSize */) { }
252 virtual void deleteSelection(Selection) { } 263 virtual void deleteSelection(Selection) { }
253 264
254 virtual void copy(View *, Selection, Clipboard & /* to */) { } 265 virtual void copy(View *, Selection, Clipboard & /* to */) { }