comparison data/model/IntervalModel.h @ 618:b1dc68507e46 sv-v1.7.1

* Layer data editor window: fix sorting for columns in region model, add Find feature * RDF import: assign names to layers based on event types, if no suitable labels are found in the RDF * Add label to status bar showing the last text that was passed in current layer (so e.g. counting 1, 2, 3, 4 if that's what beats are labelled) * Better layout of text labels for region layers in segmentation mode when they are close together * Give text layer the same method for finding "nearest point" as region and note layers, should improve its editability
author Chris Cannam
date Thu, 22 Oct 2009 15:54:21 +0000
parents d7f3dfe6f9a4
children e22b6e89a7f7
comparison
equal deleted inserted replaced
617:24f06d34ac99 618:b1dc68507e46
115 return command->finish(); 115 return command->finish();
116 } 116 }
117 117
118 virtual bool isColumnTimeValue(int column) const 118 virtual bool isColumnTimeValue(int column) const
119 { 119 {
120 return (column < 2 || column == 3); 120 // NB duration is not a "time value" -- that's for columns
121 // whose sort ordering is exactly that of the frame time
122 return (column < 2);
121 } 123 }
122 }; 124 };
123 125
124 template <typename PointType> 126 template <typename PointType>
125 typename SparseValueModel<PointType>::PointList 127 typename SparseValueModel<PointType>::PointList