comparison view/Pane.h @ 174:96b8a790730a

* Wire up the Panner widget in the pane, and do some tidying in Pane
author Chris Cannam
date Thu, 19 Oct 2006 13:05:39 +0000
parents d0b95a8cac96
children 42118892f428
comparison
equal deleted inserted replaced
173:9c40dc10c88c 174:96b8a790730a
60 virtual void zoomLevelChanged(); 60 virtual void zoomLevelChanged();
61 61
62 virtual void horizontalThumbwheelMoved(int value); 62 virtual void horizontalThumbwheelMoved(int value);
63 virtual void verticalThumbwheelMoved(int value); 63 virtual void verticalThumbwheelMoved(int value);
64 virtual void verticalZoomChanged(); 64 virtual void verticalZoomChanged();
65 virtual void verticalPannerMoved(float x, float y, float w, float h);
65 66
66 virtual void propertyContainerSelected(View *, PropertyContainer *pc); 67 virtual void propertyContainerSelected(View *, PropertyContainer *pc);
67 68
68 protected: 69 protected:
69 virtual void paintEvent(QPaintEvent *e); 70 virtual void paintEvent(QPaintEvent *e);
81 bool editSelectionDrag(QMouseEvent *e); 82 bool editSelectionDrag(QMouseEvent *e);
82 bool editSelectionEnd(QMouseEvent *e); 83 bool editSelectionEnd(QMouseEvent *e);
83 bool selectionIsBeingEdited() const; 84 bool selectionIsBeingEdited() const;
84 85
85 void updateHeadsUpDisplay(); 86 void updateHeadsUpDisplay();
87 void updateVerticalPanner();
88
89 bool canTopLayerMoveVertical();
90 bool getTopLayerDisplayExtents(float &valueMin, float &valueMax,
91 float &displayMin, float &displayMax);
92 bool setTopLayerDisplayExtents(float displayMin, float displayMax);
93
94 void dragTopLayer(QMouseEvent *e);
95 void dragExtendSelection(QMouseEvent *e);
96 void zoomToRegion(int x0, int y0, int x1, int y1);
86 97
87 bool m_identifyFeatures; 98 bool m_identifyFeatures;
88 QPoint m_identifyPoint; 99 QPoint m_identifyPoint;
89 QPoint m_clickPos; 100 QPoint m_clickPos;
90 QPoint m_mousePos; 101 QPoint m_mousePos;