changeset 179:6a0d54f3f21a

* Press X to toggle the property boxes
author Chris Cannam
date Tue, 14 Nov 2006 16:06:00 +0000
parents 05015e717a0d
children 29f01de27db4
files view/PaneStack.cpp view/PaneStack.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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
     };