Mercurial > hg > svgui
comparison view/View.h @ 1354:40b9a495a0e0
Use zoom constraints more consistently, including the new RelativelyFine one
author | Chris Cannam |
---|---|
date | Wed, 10 Oct 2018 14:33:10 +0100 |
parents | 13d9b422f7fe |
children | 93eaff6f206d |
comparison
equal
deleted
inserted
replaced
1353:86429ff00f05 | 1354:40b9a495a0e0 |
---|---|
455 | 455 |
456 sv_samplerate_t getModelsSampleRate() const; | 456 sv_samplerate_t getModelsSampleRate() const; |
457 bool areLayersScrollable() const; | 457 bool areLayersScrollable() const; |
458 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const; | 458 LayerList getScrollableBackLayers(bool testChanged, bool &changed) const; |
459 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const; | 459 LayerList getNonScrollableFrontLayers(bool testChanged, bool &changed) const; |
460 | |
460 ZoomLevel getZoomConstraintLevel(ZoomLevel level, | 461 ZoomLevel getZoomConstraintLevel(ZoomLevel level, |
461 ZoomConstraint::RoundingDirection dir = | 462 ZoomConstraint::RoundingDirection dir = |
462 ZoomConstraint::RoundNearest) const; | 463 ZoomConstraint::RoundNearest) const; |
463 | 464 |
465 // These three are slow, intended for indexing GUI thumbwheel stuff | |
466 int countZoomLevels() const; | |
467 int getZoomLevelIndex(ZoomLevel level) const; | |
468 ZoomLevel getZoomLevelByIndex(int ix) const; | |
469 | |
464 // True if the top layer(s) use colours for meaningful things. If | 470 // True if the top layer(s) use colours for meaningful things. If |
465 // this is the case, selections will be shown using unfilled boxes | 471 // this is the case, selections will be shown using unfilled boxes |
466 // rather than with a translucent fill. | 472 // rather than with a translucent fill. |
467 bool areLayerColoursSignificant() const; | 473 bool areLayerColoursSignificant() const; |
468 | 474 |