comparison view/View.h @ 211:e2baee498ec8

* Rejig handling of scrolling views. Ensures, among other things, that playing when there is a scroll mode view present (e.g. a spectrum) does not drag any page mode views into scroll mode with it.
author Chris Cannam
date Thu, 01 Mar 2007 11:55:46 +0000
parents 6b023411087b
children 34bbbcb3c01f
comparison
equal deleted inserted replaced
210:748985c7e2c1 211:e2baee498ec8
187 } 187 }
188 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const { 188 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const {
189 return false; 189 return false;
190 } 190 }
191 191
192 enum PlaybackFollowMode {
193 PlaybackScrollContinuous,
194 PlaybackScrollPage,
195 PlaybackIgnore
196 };
197 virtual void setPlaybackFollow(PlaybackFollowMode m); 192 virtual void setPlaybackFollow(PlaybackFollowMode m);
198 virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; } 193 virtual PlaybackFollowMode getPlaybackFollow() const { return m_followPlay; }
199 194
200 typedef PropertyContainer::PropertyName PropertyName; 195 typedef PropertyContainer::PropertyName PropertyName;
201 196
238 void propertyContainerPropertyChanged(PropertyContainer *pc); 233 void propertyContainerPropertyChanged(PropertyContainer *pc);
239 void propertyContainerPropertyRangeChanged(PropertyContainer *pc); 234 void propertyContainerPropertyRangeChanged(PropertyContainer *pc);
240 void propertyContainerNameChanged(PropertyContainer *pc); 235 void propertyContainerNameChanged(PropertyContainer *pc);
241 void propertyChanged(PropertyContainer::PropertyName); 236 void propertyChanged(PropertyContainer::PropertyName);
242 237
243 void centreFrameChanged(void *, unsigned long, bool); 238 void centreFrameChanged(unsigned long frame,
239 bool globalScroll,
240 PlaybackFollowMode followMode);
241
244 void zoomLevelChanged(void *, unsigned long, bool); 242 void zoomLevelChanged(void *, unsigned long, bool);
245 243
246 void contextHelpChanged(const QString &); 244 void contextHelpChanged(const QString &);
247 245
248 public slots: 246 public slots:
252 virtual void modelReplaced(); 250 virtual void modelReplaced();
253 virtual void layerParametersChanged(); 251 virtual void layerParametersChanged();
254 virtual void layerParameterRangesChanged(); 252 virtual void layerParameterRangesChanged();
255 virtual void layerNameChanged(); 253 virtual void layerNameChanged();
256 254
257 virtual void viewManagerCentreFrameChanged(void *, unsigned long, bool); 255 virtual void globalCentreFrameChanged(unsigned long);
256 virtual void viewCentreFrameChanged(View *, unsigned long);
258 virtual void viewManagerPlaybackFrameChanged(unsigned long); 257 virtual void viewManagerPlaybackFrameChanged(unsigned long);
259 virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool); 258 virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool);
260 259
261 virtual void propertyContainerSelected(View *, PropertyContainer *pc); 260 virtual void propertyContainerSelected(View *, PropertyContainer *pc);
262 261