comparison view/Pane.h @ 1537:4f8c72adbf43

Clarify naming of some view-related methods. Rename LayerGeometryProvider::getValueExtents to getVisibleExtentsForUnit, and View::getTextLabelHeight to getTextLabelYCoord. Add View::getVisibleExtentsForAnyUnit to be used to determine which unit to adopt in a new e.g. box layer.
author Chris Cannam
date Tue, 15 Oct 2019 11:40:56 +0100
parents 235e08aa2d5d
children 0f36e0eca6b0
comparison
equal deleted inserted replaced
1536:5a215033b853 1537:4f8c72adbf43
103 103
104 void zoomToRegion(QRect r); 104 void zoomToRegion(QRect r);
105 105
106 void mouseEnteredWidget(); 106 void mouseEnteredWidget();
107 void mouseLeftWidget(); 107 void mouseLeftWidget();
108
109 bool getTopLayerDisplayExtents(double &valueMin, double &valueMax,
110 double &displayMin, double &displayMax,
111 QString *unit = 0);
112 108
113 protected slots: 109 protected slots:
114 void playbackScheduleTimerElapsed(); 110 void playbackScheduleTimerElapsed();
115 111
116 protected: 112 protected:
152 void updateHeadsUpDisplay(); 148 void updateHeadsUpDisplay();
153 void updateVerticalPanner(); 149 void updateVerticalPanner();
154 150
155 bool canTopLayerMoveVertical(); 151 bool canTopLayerMoveVertical();
156 bool setTopLayerDisplayExtents(double displayMin, double displayMax); 152 bool setTopLayerDisplayExtents(double displayMin, double displayMax);
153 bool getTopLayerDisplayExtents(double &valueMin, double &valueMax,
154 double &displayMin, double &displayMax,
155 QString *unit = 0);
157 156
158 void dragTopLayer(QMouseEvent *e); 157 void dragTopLayer(QMouseEvent *e);
159 void dragExtendSelection(QMouseEvent *e); 158 void dragExtendSelection(QMouseEvent *e);
160 void updateContextHelp(const QPoint *pos); 159 void updateContextHelp(const QPoint *pos);
161 void edgeScrollMaybe(int x); 160 void edgeScrollMaybe(int x);