comparison view/View.h @ 1539:bfacecf7ea7e

Overhaul choice of layer to show scale, in Pane::drawVerticalScale, making it call out to the same logic used by View::getVisibleExtentsForUnit when appropriate. Also refuse to accept scale from dormant top layer.
author Chris Cannam
date Tue, 15 Oct 2019 14:53:25 +0100
parents 4f8c72adbf43
children ae2d5f8ff005
comparison
equal deleted inserted replaced
1538:0ca4ca37809e 1539:bfacecf7ea7e
500 sv_samplerate_t getModelsSampleRate() const; 500 sv_samplerate_t getModelsSampleRate() const;
501 bool areLayersScrollable() const; 501 bool areLayersScrollable() const;
502 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const; 502 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const;
503 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const; 503 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const;
504 504
505 Layer *getScaleProvidingLayerForUnit(QString unit) const;
506
505 ZoomLevel getZoomConstraintLevel(ZoomLevel level, 507 ZoomLevel getZoomConstraintLevel(ZoomLevel level,
506 ZoomConstraint::RoundingDirection dir = 508 ZoomConstraint::RoundingDirection dir =
507 ZoomConstraint::RoundNearest) const; 509 ZoomConstraint::RoundNearest) const;
508 510
509 // These three are slow, intended for indexing GUI thumbwheel stuff 511 // These three are slow, intended for indexing GUI thumbwheel stuff