comparison view/PaneStack.cpp @ 277:8acd30ed735c

* Fix up and simplify the LayerTreeModel, removing a horrible memory leak * Move phase-unwrapped frequency estimation from SpectrogramLayer to FFTDataServer * Make the spectrum show peak phase-unwrapped frequencies as well (still needs work) * Start adding piano keyboard horizontal scale to spectrum * Debug output for id3 tags
author Chris Cannam
date Tue, 03 Jul 2007 12:46:18 +0000
parents 1a49bd0d8375
children 6de6f78b13a1
comparison
equal deleted inserted replaced
276:21c7152ddba8 277:8acd30ed735c
170 } 170 }
171 171
172 Pane * 172 Pane *
173 PaneStack::getPane(int n) 173 PaneStack::getPane(int n)
174 { 174 {
175 return m_panes[n].pane; 175 if (n < m_panes.size()) {
176 return m_panes[n].pane;
177 } else {
178 return 0;
179 }
180 }
181
182 int
183 PaneStack::getPaneIndex(Pane *pane)
184 {
185 for (int i = 0; i < getPaneCount(); ++i) {
186 if (pane == getPane(i)) {
187 return i;
188 }
189 }
190 return -1;
176 } 191 }
177 192
178 Pane * 193 Pane *
179 PaneStack::getHiddenPane(int n) 194 PaneStack::getHiddenPane(int n)
180 { 195 {