# HG changeset patch # User Chris Cannam # Date 1163520360 0 # Node ID 6a0d54f3f21a57ba5fa74553da1fdb46a3b3475c # Parent 05015e717a0d72be3d0d1bbd941ffd1d7ae52693 * Press X to toggle the property boxes diff -r 05015e717a0d -r 6a0d54f3f21a view/PaneStack.cpp --- a/view/PaneStack.cpp Mon Nov 13 14:48:57 2006 +0000 +++ b/view/PaneStack.cpp Tue Nov 14 16:06:00 2006 +0000 @@ -126,6 +126,7 @@ switch (style) { + case NoPropertyStacks: case SinglePropertyStackLayout: for (i = m_panes.begin(); i != m_panes.end(); ++i) { @@ -133,7 +134,7 @@ i->propertyStack->setParent(m_propertyStackStack); m_propertyStackStack->addWidget(i->propertyStack); } - m_propertyStackStack->show(); + m_propertyStackStack->setVisible(style != NoPropertyStacks); break; case PropertyStackPerPaneLayout: @@ -288,7 +289,7 @@ while (i != m_panes.end()) { if (i->pane == pane) { i->currentIndicator->setPixmap(selectedMap); - if (m_layoutStyle == SinglePropertyStackLayout) { + if (m_layoutStyle != PropertyStackPerPaneLayout) { m_propertyStackStack->setCurrentWidget(i->propertyStack); } found = true; diff -r 05015e717a0d -r 6a0d54f3f21a view/PaneStack.h --- a/view/PaneStack.h Mon Nov 13 14:48:57 2006 +0000 +++ b/view/PaneStack.h Tue Nov 14 16:06:00 2006 +0000 @@ -55,6 +55,7 @@ Pane *getCurrentPane(); enum LayoutStyle { + NoPropertyStacks = 0, SinglePropertyStackLayout = 1, PropertyStackPerPaneLayout = 2 };