comparison view/Pane.h @ 188:dd573e090eed

* Add range input dialog * Make Panner support middle-click/ctrl-left-click to reset and emit doubleClicked when doubleClicked instead of resetting * Use range input dialog to enter new values for panner on double-click
author Chris Cannam
date Fri, 12 Jan 2007 21:52:56 +0000
parents 42118892f428
children 5b7472db612b
comparison
equal deleted inserted replaced
187:e7cf6044c2a0 188:dd573e090eed
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 virtual void verticalPannerMoved(float x, float y, float w, float h);
66 virtual void editVerticalPannerExtents();
66 67
67 virtual void propertyContainerSelected(View *, PropertyContainer *pc); 68 virtual void propertyContainerSelected(View *, PropertyContainer *pc);
68 69
69 protected: 70 protected:
70 virtual void paintEvent(QPaintEvent *e); 71 virtual void paintEvent(QPaintEvent *e);
86 void updateHeadsUpDisplay(); 87 void updateHeadsUpDisplay();
87 void updateVerticalPanner(); 88 void updateVerticalPanner();
88 89
89 bool canTopLayerMoveVertical(); 90 bool canTopLayerMoveVertical();
90 bool getTopLayerDisplayExtents(float &valueMin, float &valueMax, 91 bool getTopLayerDisplayExtents(float &valueMin, float &valueMax,
91 float &displayMin, float &displayMax); 92 float &displayMin, float &displayMax,
93 QString *unit = 0);
92 bool setTopLayerDisplayExtents(float displayMin, float displayMax); 94 bool setTopLayerDisplayExtents(float displayMin, float displayMax);
93 95
94 void dragTopLayer(QMouseEvent *e); 96 void dragTopLayer(QMouseEvent *e);
95 void dragExtendSelection(QMouseEvent *e); 97 void dragExtendSelection(QMouseEvent *e);
96 void zoomToRegion(int x0, int y0, int x1, int y1); 98 void zoomToRegion(int x0, int y0, int x1, int y1);