Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 298:226cb289bdf4
* Layer tree view updating when visibility / audibility changed (and layers
updating when they are changed in view) -- still some problems when a model
is loaded while the tree is visible
* FFTW_MEASURE throughout -- it does turn out to make an appreciable
difference sometimes
author | Chris Cannam |
---|---|
date | Thu, 16 Aug 2007 16:47:07 +0000 |
parents | 4ca7562dd246 |
children | 25e72328a897 0895517bb2d1 |
comparison
equal
deleted
inserted
replaced
297:860f9ada4327 | 298:226cb289bdf4 |
---|---|
180 } | 180 } |
181 | 181 |
182 void | 182 void |
183 PropertyStack::propertyContainerPropertyChanged(PropertyContainer *pc) | 183 PropertyStack::propertyContainerPropertyChanged(PropertyContainer *pc) |
184 { | 184 { |
185 Layer *layer = dynamic_cast<Layer *>(pc); | |
185 for (unsigned int i = 0; i < m_boxes.size(); ++i) { | 186 for (unsigned int i = 0; i < m_boxes.size(); ++i) { |
186 if (pc == m_boxes[i]->getContainer()) { | 187 if (pc == m_boxes[i]->getContainer()) { |
187 m_boxes[i]->propertyContainerPropertyChanged(pc); | 188 m_boxes[i]->propertyContainerPropertyChanged(pc); |
189 if (layer) { | |
190 m_boxes[i]->layerVisibilityChanged | |
191 (!layer->isLayerDormant(m_client)); | |
192 } | |
188 } | 193 } |
189 } | 194 } |
190 } | 195 } |
191 | 196 |
192 void | 197 void |