comparison layer/Layer.h @ 260:6d113226bb4c

* a bit more work on measurement tool mode * use arrow cursors on thumbwheels and panner in pane HUD
author Chris Cannam
date Thu, 14 Jun 2007 15:20:49 +0000
parents e175ade2d6b0
children 4ed1446ad604
comparison
equal deleted inserted replaced
259:2d891e02c5ce 260:6d113226bb4c
316 float /* max */) { 316 float /* max */) {
317 return false; 317 return false;
318 } 318 }
319 319
320 /** 320 /**
321 * Return the value and unit at the given x coordinate in the
322 * given view. This is for descriptive purposes using the
323 * measurement tool. The default implementation works correctly
324 * if the layer hasTimeXAxis().
325 */
326 virtual bool getXScaleValue(View *v, int x,
327 float &value, QString &unit) const;
328
329 /**
330 * Return the value and unit at the given y coordinate in the
331 * given view.
332 */
333 virtual bool getYScaleValue(View *, int /* y */,
334 float &/* value */, QString &/* unit */) const {
335 return false;
336 }
337
338 /**
321 * Get the number of vertical zoom steps available for this layer. 339 * Get the number of vertical zoom steps available for this layer.
322 * If vertical zooming is not available, return 0. The meaning of 340 * If vertical zooming is not available, return 0. The meaning of
323 * "zooming" is entirely up to the layer -- changing the zoom 341 * "zooming" is entirely up to the layer -- changing the zoom
324 * level may cause the layer to reset its display extents or 342 * level may cause the layer to reset its display extents or
325 * change another property such as display gain. However, layers 343 * change another property such as display gain. However, layers