comparison layer/FlexiNoteLayer.cpp @ 1537:4f8c72adbf43

Clarify naming of some view-related methods. Rename LayerGeometryProvider::getValueExtents to getVisibleExtentsForUnit, and View::getTextLabelHeight to getTextLabelYCoord. Add View::getVisibleExtentsForAnyUnit to be used to determine which unit to adopt in a new e.g. box layer.
author Chris Cannam
date Tue, 15 Oct 2019 11:40:56 +0100
parents 37df1530519d
children e6362cf5ff1d
comparison
equal deleted inserted replaced
1536:5a215033b853 1537:4f8c72adbf43
673 if (shouldConvertMIDIToHz()) queryUnits = "Hz"; 673 if (shouldConvertMIDIToHz()) queryUnits = "Hz";
674 else queryUnits = getScaleUnits(); 674 else queryUnits = getScaleUnits();
675 675
676 if (shouldAutoAlign()) { 676 if (shouldAutoAlign()) {
677 677
678 if (!v->getValueExtents(queryUnits, min, max, log)) { 678 if (!v->getVisibleExtentsForUnit(queryUnits, min, max, log)) {
679 679
680 auto model = ModelById::getAs<NoteModel>(m_model); 680 auto model = ModelById::getAs<NoteModel>(m_model);
681 min = model->getValueMinimum(); 681 min = model->getValueMinimum();
682 max = model->getValueMaximum(); 682 max = model->getValueMaximum();
683 683