comparison layer/Layer.h @ 187:e7cf6044c2a0

* better icon * support range mappers in thumbwheel * supply range mapper for vertical zoom from spectrogram * fix bug in fftmodel for scaled ffts * make the various widgets all respond to double-click for edit, middle-click for reset, ctrl-left-click for reset
author Chris Cannam
date Fri, 12 Jan 2007 14:49:18 +0000
parents 5f86ae638b04
children 6b023411087b
comparison
equal deleted inserted replaced
186:8dd247c4c5f1 187:e7cf6044c2a0
32 class Model; 32 class Model;
33 class QPainter; 33 class QPainter;
34 class View; 34 class View;
35 class QMouseEvent; 35 class QMouseEvent;
36 class Clipboard; 36 class Clipboard;
37 class RangeMapper;
37 38
38 /** 39 /**
39 * The base class for visual representations of the data found in a 40 * The base class for visual representations of the data found in a
40 * Model. Layers are expected to be able to draw themselves onto a 41 * Model. Layers are expected to be able to draw themselves onto a
41 * View, and may also be editable. 42 * View, and may also be editable.
336 * the layer to reset its display extents or change another 337 * the layer to reset its display extents or change another
337 * property such as display gain. 338 * property such as display gain.
338 */ 339 */
339 virtual void setVerticalZoomStep(int) { } 340 virtual void setVerticalZoomStep(int) { }
340 341
342 /**
343 * Create and return a range mapper for vertical zoom step values.
344 * See the RangeMapper documentation for more details. The
345 * returned value is allocated on the heap and will be deleted by
346 * the caller.
347 */
348 virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; }
349
341 public slots: 350 public slots:
342 void showLayer(View *, bool show); 351 void showLayer(View *, bool show);
343 352
344 signals: 353 signals:
345 void modelChanged(); 354 void modelChanged();