comparison layer/Layer.h @ 552:2e8194a30f40 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 a72ab757b73b
children 4c484636d5ec
comparison
equal deleted inserted replaced
551:c2ba2796cbee 552:2e8194a30f40
31 #include <QPixmap> 31 #include <QPixmap>
32 32
33 #include <map> 33 #include <map>
34 #include <set> 34 #include <set>
35 35
36 #include <iostream>
37
36 class ZoomConstraint; 38 class ZoomConstraint;
37 class Model; 39 class Model;
38 class QPainter; 40 class QPainter;
39 class View; 41 class View;
40 class QMouseEvent; 42 class QMouseEvent;
141 virtual bool nearestMeasurementRectChanged(View *, QPoint prev, 143 virtual bool nearestMeasurementRectChanged(View *, QPoint prev,
142 QPoint now) const; 144 QPoint now) const;
143 145
144 virtual QString getFeatureDescription(View *, QPoint &) const { 146 virtual QString getFeatureDescription(View *, QPoint &) const {
145 return ""; 147 return "";
148 }
149
150 virtual QString getLabelPreceding(size_t frame) const {
151 return "";
146 } 152 }
147 153
148 enum SnapType { 154 enum SnapType {
149 SnapLeft, 155 SnapLeft,
150 SnapRight, 156 SnapRight,