comparison 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
comparison
equal deleted inserted replaced
210:748985c7e2c1 211:e2baee498ec8
32 Q_OBJECT 32 Q_OBJECT
33 33
34 public: 34 public:
35 Overview(QWidget *parent = 0); 35 Overview(QWidget *parent = 0);
36 36
37 void registerView(View *widget); 37 void registerView(View *view);
38 void unregisterView(View *widget); 38 void unregisterView(View *view);
39 39
40 virtual QString getPropertyContainerIconName() const { return "panner"; } 40 virtual QString getPropertyContainerIconName() const { return "panner"; }
41 41
42 public slots: 42 public slots:
43 virtual void modelChanged(size_t startFrame, size_t endFrame); 43 virtual void modelChanged(size_t startFrame, size_t endFrame);
44 virtual void modelReplaced(); 44 virtual void modelReplaced();
45 45
46 virtual void viewManagerCentreFrameChanged(void *, unsigned long, bool); 46 virtual void globalCentreFrameChanged(unsigned long);
47 virtual void viewCentreFrameChanged(View *, unsigned long);
47 virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool); 48 virtual void viewManagerZoomLevelChanged(void *, unsigned long, bool);
48 virtual void viewManagerPlaybackFrameChanged(unsigned long); 49 virtual void viewManagerPlaybackFrameChanged(unsigned long);
49 50
50 protected: 51 protected:
51 virtual void paintEvent(QPaintEvent *e); 52 virtual void paintEvent(QPaintEvent *e);
60 QPoint m_clickPos; 61 QPoint m_clickPos;
61 QPoint m_mousePos; 62 QPoint m_mousePos;
62 bool m_clickedInRange; 63 bool m_clickedInRange;
63 size_t m_dragCentreFrame; 64 size_t m_dragCentreFrame;
64 65
65 typedef std::set<void *> WidgetSet; 66 typedef std::set<View *> ViewSet;
66 WidgetSet m_widgets; 67 ViewSet m_views;
67 }; 68 };
68 69
69 #endif 70 #endif
70 71