Mercurial > hg > svgui
comparison layer/WaveformLayer.h @ 947:e53a87a5efb2
Allow layers to be loaded without models if their layer class explicitly says it's OK (otherwise default template won't load, as it has an empty waveform layer)
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 10:10:26 +0100 |
parents | 4a578a360011 |
children | e3c7da3d896e |
comparison
equal
deleted
inserted
replaced
944:78c152e4db95 | 947:e53a87a5efb2 |
---|---|
200 | 200 |
201 virtual int getVerticalZoomSteps(int &defaultStep) const; | 201 virtual int getVerticalZoomSteps(int &defaultStep) const; |
202 virtual int getCurrentVerticalZoomStep() const; | 202 virtual int getCurrentVerticalZoomStep() const; |
203 virtual void setVerticalZoomStep(int); | 203 virtual void setVerticalZoomStep(int); |
204 | 204 |
205 virtual bool canExistWithoutModel() const { return true; } | |
206 | |
205 protected: | 207 protected: |
206 int dBscale(double sample, int m) const; | 208 int dBscale(double sample, int m) const; |
207 | 209 |
208 const RangeSummarisableTimeValueModel *m_model; // I do not own this | 210 const RangeSummarisableTimeValueModel *m_model; // I do not own this |
209 | 211 |