comparison view/PaneStack.cpp @ 179:6a0d54f3f21a

* Press X to toggle the property boxes
author Chris Cannam
date Tue, 14 Nov 2006 16:06:00 +0000
parents 33929e0c3c6b
children 29f01de27db4
comparison
equal deleted inserted replaced
178:05015e717a0d 179:6a0d54f3f21a
124 124
125 std::vector<PaneRec>::iterator i; 125 std::vector<PaneRec>::iterator i;
126 126
127 switch (style) { 127 switch (style) {
128 128
129 case NoPropertyStacks:
129 case SinglePropertyStackLayout: 130 case SinglePropertyStackLayout:
130 131
131 for (i = m_panes.begin(); i != m_panes.end(); ++i) { 132 for (i = m_panes.begin(); i != m_panes.end(); ++i) {
132 i->layout->removeWidget(i->propertyStack); 133 i->layout->removeWidget(i->propertyStack);
133 i->propertyStack->setParent(m_propertyStackStack); 134 i->propertyStack->setParent(m_propertyStackStack);
134 m_propertyStackStack->addWidget(i->propertyStack); 135 m_propertyStackStack->addWidget(i->propertyStack);
135 } 136 }
136 m_propertyStackStack->show(); 137 m_propertyStackStack->setVisible(style != NoPropertyStacks);
137 break; 138 break;
138 139
139 case PropertyStackPerPaneLayout: 140 case PropertyStackPerPaneLayout:
140 141
141 for (i = m_panes.begin(); i != m_panes.end(); ++i) { 142 for (i = m_panes.begin(); i != m_panes.end(); ++i) {
286 bool found = false; 287 bool found = false;
287 288
288 while (i != m_panes.end()) { 289 while (i != m_panes.end()) {
289 if (i->pane == pane) { 290 if (i->pane == pane) {
290 i->currentIndicator->setPixmap(selectedMap); 291 i->currentIndicator->setPixmap(selectedMap);
291 if (m_layoutStyle == SinglePropertyStackLayout) { 292 if (m_layoutStyle != PropertyStackPerPaneLayout) {
292 m_propertyStackStack->setCurrentWidget(i->propertyStack); 293 m_propertyStackStack->setCurrentWidget(i->propertyStack);
293 } 294 }
294 found = true; 295 found = true;
295 } else { 296 } else {
296 i->currentIndicator->setPixmap(unselectedMap); 297 i->currentIndicator->setPixmap(unselectedMap);