Mercurial > hg > svapp
comparison framework/Document.h @ 333:0c37405cf579 tonioni
Comment on layer ownership
author | Chris Cannam |
---|---|
date | Wed, 05 Mar 2014 10:37:30 +0000 |
parents | f72d58d1ccb0 |
children | dd07d48d7d4f |
comparison
equal
deleted
inserted
replaced
332:151b7c5864e3 | 333:0c37405cf579 |
---|---|
237 * be set using setModel before this method is called. | 237 * be set using setModel before this method is called. |
238 */ | 238 */ |
239 void addLayerToView(View *, Layer *); | 239 void addLayerToView(View *, Layer *); |
240 | 240 |
241 /** | 241 /** |
242 * Remove the given layer from the given view. | 242 * Remove the given layer from the given view. Ownership of the |
243 * layer is transferred to a command object on the undo stack, and | |
244 * the layer will be deleted when the undo stack is pruned. | |
243 */ | 245 */ |
244 void removeLayerFromView(View *, Layer *); | 246 void removeLayerFromView(View *, Layer *); |
245 | 247 |
246 /** | 248 /** |
247 * Return true if alignment is supported (i.e. if the necessary | 249 * Return true if alignment is supported (i.e. if the necessary |