diff layer/TimeValueLayer.h @ 66:e9eac9368e29

* basics of selectable vertical scale in time value layer * clear selection when closing session
author Chris Cannam
date Mon, 27 Mar 2006 16:44:12 +0000
parents 705f05ab42e3
children 193b569a975f
line wrap: on
line diff
--- a/layer/TimeValueLayer.h	Mon Mar 27 15:03:02 2006 +0000
+++ b/layer/TimeValueLayer.h	Mon Mar 27 16:44:12 2006 +0000
@@ -80,6 +80,16 @@
     void setPlotStyle(PlotStyle style);
     PlotStyle getPlotStyle() const { return m_plotStyle; }
 
+    enum VerticalScale {
+        LinearScale,
+        LogScale,
+        PlusMinusOneScale,
+        FrequencyScale
+    };
+    
+    void setVerticalScale(VerticalScale scale);
+    VerticalScale getVerticalScale() const { return m_verticalScale; }
+
     virtual bool isLayerScrollable(const View *v) const;
 
     virtual bool isLayerEditable() const { return true; }
@@ -104,6 +114,7 @@
     SparseTimeValueModel::EditCommand *m_editingCommand;
     QColor m_colour;
     PlotStyle m_plotStyle;
+    VerticalScale m_verticalScale;
 };
 
 #endif