diff view/View.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 5b7472db612b
children 6969f21da18a
line wrap: on
line diff
--- a/view/View.cpp	Wed Jan 31 12:13:47 2007 +0000
+++ b/view/View.cpp	Thu Feb 01 14:31:28 2007 +0000
@@ -450,6 +450,8 @@
     
     connect(layer, SIGNAL(layerParametersChanged()),
 	    this,    SLOT(layerParametersChanged()));
+    connect(layer, SIGNAL(layerParameterRangesChanged()),
+	    this,    SLOT(layerParameterRangesChanged()));
     connect(layer, SIGNAL(layerNameChanged()),
 	    this,    SLOT(layerNameChanged()));
     connect(layer, SIGNAL(modelChanged()),
@@ -487,6 +489,21 @@
 	}
     }
     
+    disconnect(layer, SIGNAL(layerParametersChanged()),
+               this,    SLOT(layerParametersChanged()));
+    disconnect(layer, SIGNAL(layerParameterRangesChanged()),
+               this,    SLOT(layerParameterRangesChanged()));
+    disconnect(layer, SIGNAL(layerNameChanged()),
+               this,    SLOT(layerNameChanged()));
+    disconnect(layer, SIGNAL(modelChanged()),
+               this,    SLOT(modelChanged()));
+    disconnect(layer, SIGNAL(modelCompletionChanged()),
+               this,    SLOT(modelCompletionChanged()));
+    disconnect(layer, SIGNAL(modelChanged(size_t, size_t)),
+               this,    SLOT(modelChanged(size_t, size_t)));
+    disconnect(layer, SIGNAL(modelReplaced()),
+               this,    SLOT(modelReplaced()));
+
     update();
 
     emit propertyContainerRemoved(layer);
@@ -734,6 +751,13 @@
 }
 
 void
+View::layerParameterRangesChanged()
+{
+    Layer *layer = dynamic_cast<Layer *>(sender());
+    if (layer) emit propertyContainerPropertyRangeChanged(layer);
+}
+
+void
 View::layerNameChanged()
 {
     Layer *layer = dynamic_cast<Layer *>(sender());