Mercurial > hg > svcore
comparison data/model/RegionModel.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 | 080d8bdd8762 |
comparison
equal
deleted
inserted
replaced
617:24f06d34ac99 | 618:b1dc68507e46 |
---|---|
140 * TabularModel methods. | 140 * TabularModel methods. |
141 */ | 141 */ |
142 | 142 |
143 virtual int getColumnCount() const | 143 virtual int getColumnCount() const |
144 { | 144 { |
145 return 6; | 145 return 5; |
146 } | 146 } |
147 | 147 |
148 virtual QString getHeading(int column) const | 148 virtual QString getHeading(int column) const |
149 { | 149 { |
150 switch (column) { | 150 switch (column) { |
195 return command->finish(); | 195 return command->finish(); |
196 } | 196 } |
197 | 197 |
198 virtual SortType getSortType(int column) const | 198 virtual SortType getSortType(int column) const |
199 { | 199 { |
200 if (column == 5) return SortAlphabetical; | 200 if (column == 4) return SortAlphabetical; |
201 return SortNumeric; | 201 return SortNumeric; |
202 } | 202 } |
203 | 203 |
204 virtual void addPoint(const Point &point) | 204 virtual void addPoint(const Point &point) |
205 { | 205 { |