changeset 96:c70c6b99d871

inform the PaneStack that a new current layer is selected in the PropertyStack
author lbajardsilogic
date Tue, 10 Jul 2007 10:08:42 +0000
parents ca3a5912fd78
children 486e44e12a5d
files sv/main/MainWindow.cpp widgets/MultiPaneLayerContainer.cpp widgets/MultiPaneLayerContainer.h
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sv/main/MainWindow.cpp	Thu Jul 05 16:31:31 2007 +0000
+++ b/sv/main/MainWindow.cpp	Tue Jul 10 10:08:42 2007 +0000
@@ -5333,6 +5333,8 @@
 	connect(m_paneStack, SIGNAL(paneDeleted(Pane*)),m_multiPaneLayerContainer,SLOT(paneRemoved(Pane*)));
 	connect(m_multiPaneLayerContainer, SIGNAL(removeSelectedItem()), this, SLOT(deleteCurrentLayer())); 
 	connect(this, SIGNAL(newCurrentPane(Pane*)), m_multiPaneLayerContainer, SLOT(currentPaneChanged(Pane*)));
+	connect(m_multiPaneLayerContainer, SIGNAL(propertyContainerSelected(View *, PropertyContainer *)),
+			m_paneStack, SLOT(propertyContainerSelected(View *, PropertyContainer *))); 
 	m_toolBox->insertItem(0,"Layers", m_multiPaneLayerContainer);
 }	
 
--- a/widgets/MultiPaneLayerContainer.cpp	Thu Jul 05 16:31:31 2007 +0000
+++ b/widgets/MultiPaneLayerContainer.cpp	Tue Jul 10 10:08:42 2007 +0000
@@ -27,6 +27,7 @@
 void MultiPaneLayerContainer::addPane(Pane *pane){
 	PropertyStack *propertyStack = new PropertyStack(0, pane);
 	connect(propertyStack, SIGNAL(removeSelectedItem()), this, SIGNAL(removeSelectedItem())); 
+	connect(propertyStack, SIGNAL(propertyContainerSelected(View *, PropertyContainer *)), this, SIGNAL(propertyContainerSelected(View *, PropertyContainer *))); 
 	m_map->insert(pane,propertyStack);
 	m_layout->addWidget(propertyStack);
 	m_layout->setMargin(0);
--- a/widgets/MultiPaneLayerContainer.h	Thu Jul 05 16:31:31 2007 +0000
+++ b/widgets/MultiPaneLayerContainer.h	Tue Jul 10 10:08:42 2007 +0000
@@ -35,6 +35,7 @@
 
 signals:
 		void removeSelectedItem();
+		void propertyContainerSelected(View *client, PropertyContainer *container);
 
 public slots :
 	void currentPaneChanged(Pane *pane);