Mercurial > hg > svcore
changeset 76:af2725b5d6fe
* Implement harmonic cursor in spectrogram
* Implement layer export. This doesn't quite do the right thing for the SV
XML layer export yet -- it doesn't include layer display information, so
when imported, it only creates an invisible model. Could also do with
fixing CSV file import so as to work correctly for note and text layers.
author | Chris Cannam |
---|---|
date | Mon, 10 Apr 2006 17:22:59 +0000 |
parents | 163f3428bbe0 |
children | 2beca8ddcdc3 |
files | base/Layer.h base/Model.cpp base/Model.h |
diffstat | 3 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/base/Layer.h Mon Apr 10 13:52:32 2006 +0000 +++ b/base/Layer.h Mon Apr 10 17:22:59 2006 +0000 @@ -78,15 +78,14 @@ virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } virtual void paintVerticalScale(View *, QPainter &, QRect) const { } + virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, + std::vector<QRect> &) const { return false; } + virtual void paintCrosshairs(View *, QPainter &, QPoint) const { } + virtual QString getFeatureDescription(View *, QPoint &) const { return ""; } - //!!! We also need a method (like the vertical scale method) for - //drawing additional scales like a colour scale. That is, unless - //all applicable layers can actually do this from - //paintVerticalScale as well? - enum SnapType { SnapLeft, SnapRight,
--- a/base/Model.cpp Mon Apr 10 13:52:32 2006 +0000 +++ b/base/Model.cpp Mon Apr 10 17:22:59 2006 +0000 @@ -50,8 +50,6 @@ } #ifdef INCLUDE_MOCFILES -#ifdef INCLUDE_MOCFILES #include "Model.moc.cpp" #endif -#endif
--- a/base/Model.h Mon Apr 10 13:52:32 2006 +0000 +++ b/base/Model.h Mon Apr 10 17:22:59 2006 +0000 @@ -96,6 +96,8 @@ virtual QString toXmlString(QString indent = "", QString extraAttributes = "") const; + virtual QString toDelimitedDataString(QString) const { return ""; } + signals: /** * Emitted when a model has been edited (or more data retrieved