# HG changeset patch # User lbajardsilogic # Date 1184062122 0 # Node ID c70c6b99d8715db3a65dbd27516280f131ce6efc # Parent ca3a5912fd782fd6e2f6931099beb286b003aaa9 inform the PaneStack that a new current layer is selected in the PropertyStack diff -r ca3a5912fd78 -r c70c6b99d871 sv/main/MainWindow.cpp --- 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); } diff -r ca3a5912fd78 -r c70c6b99d871 widgets/MultiPaneLayerContainer.cpp --- 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); diff -r ca3a5912fd78 -r c70c6b99d871 widgets/MultiPaneLayerContainer.h --- 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);