Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
196:22c99c8aa1e0 | 197:6b023411087b |
---|---|
448 m_progressBars[layer]->setMinimumWidth(80); | 448 m_progressBars[layer]->setMinimumWidth(80); |
449 m_progressBars[layer]->hide(); | 449 m_progressBars[layer]->hide(); |
450 | 450 |
451 connect(layer, SIGNAL(layerParametersChanged()), | 451 connect(layer, SIGNAL(layerParametersChanged()), |
452 this, SLOT(layerParametersChanged())); | 452 this, SLOT(layerParametersChanged())); |
453 connect(layer, SIGNAL(layerParameterRangesChanged()), | |
454 this, SLOT(layerParameterRangesChanged())); | |
453 connect(layer, SIGNAL(layerNameChanged()), | 455 connect(layer, SIGNAL(layerNameChanged()), |
454 this, SLOT(layerNameChanged())); | 456 this, SLOT(layerNameChanged())); |
455 connect(layer, SIGNAL(modelChanged()), | 457 connect(layer, SIGNAL(modelChanged()), |
456 this, SLOT(modelChanged())); | 458 this, SLOT(modelChanged())); |
457 connect(layer, SIGNAL(modelCompletionChanged()), | 459 connect(layer, SIGNAL(modelCompletionChanged()), |
485 } | 487 } |
486 break; | 488 break; |
487 } | 489 } |
488 } | 490 } |
489 | 491 |
492 disconnect(layer, SIGNAL(layerParametersChanged()), | |
493 this, SLOT(layerParametersChanged())); | |
494 disconnect(layer, SIGNAL(layerParameterRangesChanged()), | |
495 this, SLOT(layerParameterRangesChanged())); | |
496 disconnect(layer, SIGNAL(layerNameChanged()), | |
497 this, SLOT(layerNameChanged())); | |
498 disconnect(layer, SIGNAL(modelChanged()), | |
499 this, SLOT(modelChanged())); | |
500 disconnect(layer, SIGNAL(modelCompletionChanged()), | |
501 this, SLOT(modelCompletionChanged())); | |
502 disconnect(layer, SIGNAL(modelChanged(size_t, size_t)), | |
503 this, SLOT(modelChanged(size_t, size_t))); | |
504 disconnect(layer, SIGNAL(modelReplaced()), | |
505 this, SLOT(modelReplaced())); | |
506 | |
490 update(); | 507 update(); |
491 | 508 |
492 emit propertyContainerRemoved(layer); | 509 emit propertyContainerRemoved(layer); |
493 } | 510 } |
494 | 511 |
729 update(); | 746 update(); |
730 | 747 |
731 if (layer) { | 748 if (layer) { |
732 emit propertyContainerPropertyChanged(layer); | 749 emit propertyContainerPropertyChanged(layer); |
733 } | 750 } |
751 } | |
752 | |
753 void | |
754 View::layerParameterRangesChanged() | |
755 { | |
756 Layer *layer = dynamic_cast<Layer *>(sender()); | |
757 if (layer) emit propertyContainerPropertyRangeChanged(layer); | |
734 } | 758 } |
735 | 759 |
736 void | 760 void |
737 View::layerNameChanged() | 761 View::layerNameChanged() |
738 { | 762 { |