Mercurial > hg > sonic-visualiser
comparison document/Document.h @ 201:de783e8ee5f0
* 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 | 29c356da4ae4 |
children |
comparison
equal
deleted
inserted
replaced
200:1871581e4da9 | 201:de783e8ee5f0 |
---|---|
215 * only method used to delete layers -- doing so directly is a bit | 215 * only method used to delete layers -- doing so directly is a bit |
216 * of a social gaffe. | 216 * of a social gaffe. |
217 */ | 217 */ |
218 void deleteLayer(Layer *, bool force = false); | 218 void deleteLayer(Layer *, bool force = false); |
219 | 219 |
220 /** | |
221 * If model is suitable for alignment, align it against the main | |
222 * model and store the alignment in the model. | |
223 */ | |
224 void alignModel(Model *); | |
225 | |
226 /** | |
227 * Realign all models if the main model has changed. Is this wise? | |
228 */ | |
229 void alignModels(); | |
230 | |
220 /* | 231 /* |
221 * Every model that is in use by a layer in the document must be | 232 * Every model that is in use by a layer in the document must be |
222 * found in either m_mainModel or m_models. We own and control | 233 * found in either m_mainModel or m_models. We own and control |
223 * the lifespan of all of these models. | 234 * the lifespan of all of these models. |
224 */ | 235 */ |