Mercurial > hg > svgui
diff widgets/PropertyStack.cpp @ 197:6b023411087b
* Work on harmonising colour and scale ranges between types of layer
* Add normalize options to colour 3d plot layer
author | Chris Cannam |
---|---|
date | Thu, 01 Feb 2007 14:31:28 +0000 |
parents | 53835534a9d3 |
children | 6969f21da18a |
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp Wed Jan 31 12:13:47 2007 +0000 +++ b/widgets/PropertyStack.cpp Thu Feb 01 14:31:28 2007 +0000 @@ -54,6 +54,9 @@ connect(m_client, SIGNAL(propertyContainerPropertyChanged(PropertyContainer *)), this, SLOT(propertyContainerPropertyChanged(PropertyContainer *))); + connect(m_client, SIGNAL(propertyContainerPropertyRangeChanged(PropertyContainer *)), + this, SLOT(propertyContainerPropertyRangeChanged(PropertyContainer *))); + connect(m_client, SIGNAL(propertyContainerNameChanged(PropertyContainer *)), this, SLOT(propertyContainerNameChanged(PropertyContainer *))); @@ -157,6 +160,16 @@ } void +PropertyStack::propertyContainerPropertyRangeChanged(PropertyContainer *pc) +{ + for (unsigned int i = 0; i < m_boxes.size(); ++i) { + if (pc == m_boxes[i]->getContainer()) { + m_boxes[i]->propertyContainerPropertyRangeChanged(pc); + } + } +} + +void PropertyStack::propertyContainerNameChanged(PropertyContainer *pc) { if (sender() != m_client) return;