diff base/StorageAdviser.h @ 411:52303ec15cd2

* Permit holding Shift while dragging an instant or other edited thing, to override the initial drag resistance (for #1928943 sticky time instants) * better handling of updates during progressive decode load * ready() signal from model (used by vect)
author Chris Cannam
date Mon, 19 May 2008 17:23:11 +0000
parents aa8dbac62024
children cc27f35aa75c
line wrap: on
line diff
--- a/base/StorageAdviser.h	Fri May 16 13:27:07 2008 +0000
+++ b/base/StorageAdviser.h	Mon May 19 17:23:11 2008 +0000
@@ -78,9 +78,17 @@
      */
     static void notifyDoneAllocation(AllocationArea area, int size);
 
+    /**
+     * Force all subsequent recommendations to use the (perhaps
+     * partial) specification given here.  If NoRecommendation given
+     * here, this will reset to the default free behaviour.
+     */
+    static void setFixedRecommendation(Recommendation recommendation);
+
 private:
     static long m_discPlanned;
     static long m_memoryPlanned;
+    static Recommendation m_baseRecommendation;
 };
 
 #endif