diff 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
line wrap: on
line diff
--- a/document/Document.h	Mon Oct 22 14:24:31 2007 +0000
+++ b/document/Document.h	Wed Oct 24 15:21:38 2007 +0000
@@ -217,6 +217,17 @@
      */
     void deleteLayer(Layer *, bool force = false);
 
+    /**
+     * If model is suitable for alignment, align it against the main
+     * model and store the alignment in the model.
+     */
+    void alignModel(Model *);
+
+    /**
+     * Realign all models if the main model has changed.  Is this wise?
+     */
+    void alignModels();
+
     /*
      * Every model that is in use by a layer in the document must be
      * found in either m_mainModel or m_models.  We own and control