diff layer/TimeValueLayer.h @ 437:755243c67f59

* Add vertical zoom and pan to time-value layer. Still some defects, particularly in logarithmic mode. Now need to get this in note layer as well! * Some fixes to log colouring in segmentation mode of time-value layer.
author Chris Cannam
date Fri, 24 Oct 2008 14:52:40 +0000
parents e1a9e478b7f2
children b3140e9e0665
line wrap: on
line diff
--- a/layer/TimeValueLayer.h	Thu Oct 23 16:30:48 2008 +0000
+++ b/layer/TimeValueLayer.h	Fri Oct 24 14:52:40 2008 +0000
@@ -117,6 +117,12 @@
                                  bool &logarithmic, QString &unit) const;
 
     virtual bool getDisplayExtents(float &min, float &max) const;
+    virtual bool setDisplayExtents(float min, float max);
+
+    virtual int getVerticalZoomSteps(int &defaultStep) const;
+    virtual int getCurrentVerticalZoomStep() const;
+    virtual void setVerticalZoomStep(int);
+    virtual RangeMapper *getNewVerticalZoomRangeMapper() const;
 
     virtual void toXml(QTextStream &stream, QString indent = "",
                        QString extraAttributes = "") const;
@@ -143,6 +149,9 @@
     PlotStyle m_plotStyle;
     VerticalScale m_verticalScale;
 
+    mutable float m_scaleMinimum;
+    mutable float m_scaleMaximum;
+
     void finish(SparseTimeValueModel::EditCommand *command) {
         Command *c = command->finish();
         if (c) CommandHistory::getInstance()->addCommand(c, false);