diff base/Layer.h @ 24:bb9291d84810

* Add ffwd/rewind * Abstract out MultiSelection
author Chris Cannam
date Wed, 08 Feb 2006 17:59:16 +0000
parents 6ace4286ba06
children 090c22aa726a
line wrap: on
line diff
--- a/base/Layer.h	Mon Feb 06 17:24:52 2006 +0000
+++ b/base/Layer.h	Wed Feb 08 17:59:16 2006 +0000
@@ -194,6 +194,15 @@
      */
     virtual void setProperties(const QXmlAttributes &) = 0;
 
+    /**
+     * Indicate that a layer is not currently visible and is not
+     * expected to become visible in the near future (for example
+     * because the user has explicitly removed or hidden it).  The
+     * layer may respond by (for example) freeing any cache memory it
+     * is using, until next time its paint method is called.
+     */
+    virtual void setLayerDormant() { }
+
 signals:
     void modelChanged();
     void modelCompletionChanged();