Mercurial > hg > svcore
diff data/model/RangeSummarisableTimeValueModel.h @ 319:3ff8f571da09
* Hoist alignment model set/query up to Model, so any models can be aligned
* Add Model::aboutToDelete and aboutToBeDeleted for management of models that
are contained by or referred to by other models instead of only the document
author | Chris Cannam |
---|---|
date | Wed, 24 Oct 2007 15:21:38 +0000 |
parents | 5877d68815c7 |
children | 700cd3350391 6f6ab834449d |
line wrap: on
line diff
--- a/data/model/RangeSummarisableTimeValueModel.h Mon Oct 22 09:45:35 2007 +0000 +++ b/data/model/RangeSummarisableTimeValueModel.h Wed Oct 24 15:21:38 2007 +0000 @@ -21,8 +21,6 @@ #include "DenseTimeValueModel.h" #include "base/ZoomConstraint.h" -class AlignmentModel; - /** * Base class for models containing dense two-dimensional data (value * against time) that may be meaningfully represented in a zoomed view @@ -35,7 +33,7 @@ Q_OBJECT public: - RangeSummarisableTimeValueModel() : m_alignment(0) { } + RangeSummarisableTimeValueModel() { } struct Range { @@ -73,18 +71,6 @@ * block size equal to the distance between start and end frames. */ virtual Range getSummary(size_t channel, size_t start, size_t count) const = 0; - - virtual void setAlignment(AlignmentModel *alignment); // I take ownership - virtual const Model *getAlignmentReference() const; - virtual size_t alignToReference(size_t frame) const; - virtual size_t alignFromReference(size_t referenceFrame) const; - virtual int getAlignmentCompletion() const; - -signals: - void alignmentCompletionChanged(); - -protected: - AlignmentModel *m_alignment; }; #endif