comparison layer/LayerGeometryProvider.h @ 1078:ee01a4062747 spectrogram-minor-refactor

Move drawVisibleText to PaintAssistant
author Chris Cannam
date Thu, 30 Jun 2016 12:40:22 +0100
parents 5144d7185fb5
children 5b4fe7bb9430
comparison
equal deleted inserted replaced
1077:5144d7185fb5 1078:ee01a4062747
151 virtual ViewManager *getViewManager() const = 0; 151 virtual ViewManager *getViewManager() const = 0;
152 152
153 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const = 0; 153 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const = 0;
154 virtual bool shouldShowFeatureLabels() const = 0; 154 virtual bool shouldShowFeatureLabels() const = 0;
155 155
156 enum TextStyle {
157 BoxedText,
158 OutlinedText,
159 OutlinedItalicText
160 };
161
162 virtual void drawVisibleText(QPainter &p, int x, int y,
163 QString text, TextStyle style) const = 0;
164
165 virtual void drawMeasurementRect(QPainter &p, const Layer *, 156 virtual void drawMeasurementRect(QPainter &p, const Layer *,
166 QRect rect, bool focus) const = 0; 157 QRect rect, bool focus) const = 0;
167 158
168 virtual void updatePaintRect(QRect r) = 0; 159 virtual void updatePaintRect(QRect r) = 0;
169 160