comparison framework/Document.h @ 77:0535c49069ba

* Various fixes to object lifetime management, particularly in the spectrum layer and for notification of main model deletion. The main purpose of this is to improve the behaviour of the spectrum, but I think it may also help with #1840922 Various crashes in Layer Summary window.
author Chris Cannam
date Wed, 23 Jan 2008 15:43:27 +0000
parents 4aa40182321f
children 58bfaaed07ed
comparison
equal deleted inserted replaced
76:2da0999dac1d 77:0535c49069ba
141 */ 141 */
142 const WaveFileModel *getMainModel() const { return m_mainModel; } 142 const WaveFileModel *getMainModel() const { return m_mainModel; }
143 143
144 std::vector<Model *> getTransformInputModels(); 144 std::vector<Model *> getTransformInputModels();
145 145
146 bool isKnownModel(const Model *) const;
147
146 /** 148 /**
147 * Add a derived model associated with the given transform, 149 * Add a derived model associated with the given transform,
148 * running the transform and returning the resulting model. 150 * running the transform and returning the resulting model.
149 */ 151 */
150 Model *addDerivedModel(const Transform &transform, 152 Model *addDerivedModel(const Transform &transform,