Mercurial > hg > svgui
diff view/Overview.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 | 5b7472db612b |
children | cd81066ac7ad |
line wrap: on
line diff
--- a/view/Overview.h Wed Feb 28 11:20:14 2007 +0000 +++ b/view/Overview.h Thu Mar 01 11:55:46 2007 +0000 @@ -34,8 +34,8 @@ public: Overview(QWidget *parent = 0); - void registerView(View *widget); - void unregisterView(View *widget); + void registerView(View *view); + void unregisterView(View *view); virtual QString getPropertyContainerIconName() const { return "panner"; } @@ -43,7 +43,8 @@ virtual void modelChanged(size_t startFrame, size_t endFrame); virtual void modelReplaced(); - virtual void viewManagerCentreFrameChanged(void *, unsigned long, bool); + virtual void globalCentreFrameChanged(unsigned long); + virtual void viewCentreFrameChanged(View *, unsigned long); virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool); virtual void viewManagerPlaybackFrameChanged(unsigned long); @@ -62,8 +63,8 @@ bool m_clickedInRange; size_t m_dragCentreFrame; - typedef std::set<void *> WidgetSet; - WidgetSet m_widgets; + typedef std::set<View *> ViewSet; + ViewSet m_views; }; #endif