# HG changeset patch # User Chris Cannam # Date 1569406146 -3600 # Node ID d3ef60b6ae93f069252cd854d904893ad3f6b72e # Parent 4eafe5a1b655d4f7867f4ae203a653424d23c5c7 With duration and two values, propose a box model (value and extent) diff -r 4eafe5a1b655 -r d3ef60b6ae93 widgets/CSVFormatDialog.cpp --- a/widgets/CSVFormatDialog.cpp Wed Sep 25 09:46:27 2019 +0100 +++ b/widgets/CSVFormatDialog.cpp Wed Sep 25 11:09:06 2019 +0100 @@ -318,6 +318,9 @@ case CSVFormat::TwoDimensionalModelWithDurationAndPitch: s = f->getLayerPresentationName(LayerFactory::Notes); break; + case CSVFormat::TwoDimensionalModelWithDurationAndExtent: + s = f->getLayerPresentationName(LayerFactory::Boxes); + break; case CSVFormat::ThreeDimensionalModel: s = f->getLayerPresentationName(LayerFactory::Colour3DPlot); break; @@ -582,6 +585,8 @@ if (haveStartTime && haveDuration) { if (havePitch) { m_format.setModelType(CSVFormat::TwoDimensionalModelWithDurationAndPitch); + } else if (valueCount == 2) { + m_format.setModelType(CSVFormat::TwoDimensionalModelWithDurationAndExtent); } else { m_format.setModelType(CSVFormat::TwoDimensionalModelWithDuration); }