Mercurial > hg > svgui
comparison view/LayerGeometryProvider.h @ 919:a5488775f880 osx-retina
Pass proxy to layer for painting
author | Chris Cannam |
---|---|
date | Wed, 18 Mar 2015 13:52:07 +0000 |
parents | 4fe7a09be0fe |
children | 0be17aafa935 |
comparison
equal
deleted
inserted
replaced
918:4fe7a09be0fe | 919:a5488775f880 |
---|---|
55 /** | 55 /** |
56 * Return the closest frame to the given pixel x-coordinate. | 56 * Return the closest frame to the given pixel x-coordinate. |
57 */ | 57 */ |
58 virtual sv_frame_t getFrameForX(int x) const = 0; | 58 virtual sv_frame_t getFrameForX(int x) const = 0; |
59 | 59 |
60 virtual sv_frame_t getModelsStartFrame() const = 0; | |
61 virtual sv_frame_t getModelsEndFrame() const = 0; | |
62 | |
60 /** | 63 /** |
61 * Return the pixel y-coordinate corresponding to a given | 64 * Return the pixel y-coordinate corresponding to a given |
62 * frequency, if the frequency range is as specified. This does | 65 * frequency, if the frequency range is as specified. This does |
63 * not imply any policy about layer frequency ranges, but it might | 66 * not imply any policy about layer frequency ranges, but it might |
64 * be useful for layers to match theirs up if desired. | 67 * be useful for layers to match theirs up if desired. |
104 virtual QColor getBackground() const = 0; | 107 virtual QColor getBackground() const = 0; |
105 | 108 |
106 virtual ViewManager *getViewManager() const = 0; | 109 virtual ViewManager *getViewManager() const = 0; |
107 | 110 |
108 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const = 0; | 111 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const = 0; |
112 virtual bool shouldShowFeatureLabels() const = 0; | |
109 | 113 |
110 enum TextStyle { | 114 enum TextStyle { |
111 BoxedText, | 115 BoxedText, |
112 OutlinedText, | 116 OutlinedText, |
113 OutlinedItalicText | 117 OutlinedItalicText |