comparison 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
comparison
equal deleted inserted replaced
65:7f608ec9a061 66:e9eac9368e29
78 }; 78 };
79 79
80 void setPlotStyle(PlotStyle style); 80 void setPlotStyle(PlotStyle style);
81 PlotStyle getPlotStyle() const { return m_plotStyle; } 81 PlotStyle getPlotStyle() const { return m_plotStyle; }
82 82
83 enum VerticalScale {
84 LinearScale,
85 LogScale,
86 PlusMinusOneScale,
87 FrequencyScale
88 };
89
90 void setVerticalScale(VerticalScale scale);
91 VerticalScale getVerticalScale() const { return m_verticalScale; }
92
83 virtual bool isLayerScrollable(const View *v) const; 93 virtual bool isLayerScrollable(const View *v) const;
84 94
85 virtual bool isLayerEditable() const { return true; } 95 virtual bool isLayerEditable() const { return true; }
86 96
87 virtual int getCompletion() const { return m_model->getCompletion(); } 97 virtual int getCompletion() const { return m_model->getCompletion(); }
102 SparseTimeValueModel::Point m_originalPoint; 112 SparseTimeValueModel::Point m_originalPoint;
103 SparseTimeValueModel::Point m_editingPoint; 113 SparseTimeValueModel::Point m_editingPoint;
104 SparseTimeValueModel::EditCommand *m_editingCommand; 114 SparseTimeValueModel::EditCommand *m_editingCommand;
105 QColor m_colour; 115 QColor m_colour;
106 PlotStyle m_plotStyle; 116 PlotStyle m_plotStyle;
117 VerticalScale m_verticalScale;
107 }; 118 };
108 119
109 #endif 120 #endif
110 121