Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 18:7c767d41bcee | 19:46d8f5add6f0 |
|---|---|
| 93 } | 93 } |
| 94 | 94 |
| 95 return false; | 95 return false; |
| 96 } | 96 } |
| 97 | 97 |
| 98 int | |
| 99 PropertyStack::getContainerIndex(PropertyContainer *pc) const | |
| 100 { | |
| 101 for (size_t i = 0; i < m_client->getPropertyContainerCount(); ++i) { | |
| 102 PropertyContainer *container = m_client->getPropertyContainer(i); | |
| 103 if (pc == container) return i; | |
| 104 } | |
| 105 | |
| 106 return false; | |
| 107 } | |
| 108 | |
| 98 void | 109 void |
| 99 PropertyStack::propertyContainerAdded(PropertyContainer *) | 110 PropertyStack::propertyContainerAdded(PropertyContainer *) |
| 100 { | 111 { |
| 101 if (sender() != m_client) return; | 112 if (sender() != m_client) return; |
| 102 repopulate(); | 113 repopulate(); |
