diff widgets/PropertyStack.cpp @ 19:46d8f5add6f0

* Introduce potentially-separate read and write ring buffers, so we can swap in a new set when something changes -- thus allowing us to respond quickly when something changes during playback, without losing the long buffers * Some fixes for display & editing
author Chris Cannam
date Fri, 27 Jan 2006 18:04:07 +0000
parents 37b110168acf
children c28ebb4ba4de
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp	Thu Jan 26 18:01:38 2006 +0000
+++ b/widgets/PropertyStack.cpp	Fri Jan 27 18:04:07 2006 +0000
@@ -95,6 +95,17 @@
     return false;
 }
 
+int
+PropertyStack::getContainerIndex(PropertyContainer *pc) const
+{
+    for (size_t i = 0; i < m_client->getPropertyContainerCount(); ++i) {
+	PropertyContainer *container = m_client->getPropertyContainer(i);
+	if (pc == container) return i;
+    }
+
+    return false;
+}
+
 void
 PropertyStack::propertyContainerAdded(PropertyContainer *)
 {