comparison framework/Document.h @ 52:43ad8d909e28

* Fix #1815930 new crash, just introduced!
author Chris Cannam
date Fri, 02 Nov 2007 14:12:17 +0000
parents e41af8419d4a
children de2b3c6479c8
comparison
equal deleted inserted replaced
51:e41af8419d4a 52:43ad8d909e28
117 Model *inputModel, 117 Model *inputModel,
118 const PluginTransform::ExecutionContext &context, 118 const PluginTransform::ExecutionContext &context,
119 QString configurationXml); 119 QString configurationXml);
120 120
121 /** 121 /**
122 * Delete the given layer, and also its associated model if no
123 * longer used by any other layer. In general, this should be the
124 * only method used to delete layers -- doing so directly is a bit
125 * of a social gaffe.
126 */
127 void deleteLayer(Layer *, bool force = false);
128
129 /**
122 * Set the main model (the source for playback sample rate, etc) 130 * Set the main model (the source for playback sample rate, etc)
123 * to the given wave file model. This will regenerate any derived 131 * to the given wave file model. This will regenerate any derived
124 * models that were based on the previous main model. 132 * models that were based on the previous main model.
125 */ 133 */
126 void setMainModel(WaveFileModel *); 134 void setMainModel(WaveFileModel *);
226 void modelGenerationFailed(QString transformName); 234 void modelGenerationFailed(QString transformName);
227 void modelRegenerationFailed(QString layerName, QString transformName); 235 void modelRegenerationFailed(QString layerName, QString transformName);
228 236
229 protected: 237 protected:
230 void releaseModel(Model *model); 238 void releaseModel(Model *model);
231
232 /**
233 * Delete the given layer, and also its associated model if no
234 * longer used by any other layer. In general, this should be the
235 * only method used to delete layers -- doing so directly is a bit
236 * of a social gaffe.
237 */
238 void deleteLayer(Layer *, bool force = false);
239 239
240 /** 240 /**
241 * If model is suitable for alignment, align it against the main 241 * If model is suitable for alignment, align it against the main
242 * model and store the alignment in the model. (If the model has 242 * model and store the alignment in the model. (If the model has
243 * an alignment already for the current main model, leave it 243 * an alignment already for the current main model, leave it