diff 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
line wrap: on
line diff
--- a/view/Pane.h	Thu Oct 19 09:57:27 2006 +0000
+++ b/view/Pane.h	Thu Oct 19 13:05:39 2006 +0000
@@ -62,6 +62,7 @@
     virtual void horizontalThumbwheelMoved(int value);
     virtual void verticalThumbwheelMoved(int value);
     virtual void verticalZoomChanged();
+    virtual void verticalPannerMoved(float x, float y, float w, float h);
 
     virtual void propertyContainerSelected(View *, PropertyContainer *pc);
 
@@ -83,6 +84,16 @@
     bool selectionIsBeingEdited() const;
 
     void updateHeadsUpDisplay();
+    void updateVerticalPanner();
+
+    bool canTopLayerMoveVertical();
+    bool getTopLayerDisplayExtents(float &valueMin, float &valueMax,
+                                   float &displayMin, float &displayMax);
+    bool setTopLayerDisplayExtents(float displayMin, float displayMax);
+
+    void dragTopLayer(QMouseEvent *e);
+    void dragExtendSelection(QMouseEvent *e);
+    void zoomToRegion(int x0, int y0, int x1, int y1);
 
     bool m_identifyFeatures;
     QPoint m_identifyPoint;