comparison base/View.h @ 36:935a2419a77c

* Refactor Layer classes so as no longer to store a single View pointer; instead they need to be able to draw themselves on any View on demand. Layers with caches (e.g. spectrogram) will need to be further refactored so as to maintain a per-View cache * Begin refactoring MainWindow by pulling out the document stuff (set of layers, models etc) into a Document class. Not yet in use. This revision is fairly unstable.
author Chris Cannam
date Thu, 02 Mar 2006 16:58:49 +0000
parents aaf73f7309f2
children a6b2128eed56
comparison
equal deleted inserted replaced
35:0164c8d3023b 36:935a2419a77c
153 * However, if the user has selected the pane itself more recently 153 * However, if the user has selected the pane itself more recently
154 * than any of the layers on it, this function will return 0. It 154 * than any of the layers on it, this function will return 0. It
155 * will also return 0 if there are no layers. 155 * will also return 0 if there are no layers.
156 */ 156 */
157 virtual Layer *getSelectedLayer(); 157 virtual Layer *getSelectedLayer();
158 virtual const Layer *getSelectedLayer() const;
158 159
159 virtual void setViewManager(ViewManager *m); 160 virtual void setViewManager(ViewManager *m);
160 161
161 virtual void setFollowGlobalPan(bool f); 162 virtual void setFollowGlobalPan(bool f);
162 virtual bool getFollowGlobalPan() const { return m_followPan; } 163 virtual bool getFollowGlobalPan() const { return m_followPan; }
165 virtual bool getFollowGlobalZoom() const { return m_followZoom; } 166 virtual bool getFollowGlobalZoom() const { return m_followZoom; }
166 167
167 virtual void setLightBackground(bool lb) { m_lightBackground = lb; } 168 virtual void setLightBackground(bool lb) { m_lightBackground = lb; }
168 virtual bool hasLightBackground() const { return m_lightBackground; } 169 virtual bool hasLightBackground() const { return m_lightBackground; }
169 170
170 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) { 171 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const {
171 return false; 172 return false;
172 } 173 }
173 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) { 174 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const {
174 return false; 175 return false;
175 } 176 }
176 177
177 enum PlaybackFollowMode { 178 enum PlaybackFollowMode {
178 PlaybackScrollContinuous, 179 PlaybackScrollContinuous,