diff base/ViewManager.cpp @ 28:4b16526b011b

* Add LED button * Add note model playback (currently assuming that value == MIDI pitch) * Reorganise PlayParameters and move repository from ViewManager to new PlayParameterRepository class
author Chris Cannam
date Wed, 15 Feb 2006 17:58:35 +0000
parents bb9291d84810
children aaf73f7309f2
line wrap: on
line diff
--- a/base/ViewManager.cpp	Tue Feb 14 17:43:14 2006 +0000
+++ b/base/ViewManager.cpp	Wed Feb 15 17:58:35 2006 +0000
@@ -9,7 +9,6 @@
 
 #include "ViewManager.h"
 #include "AudioPlaySource.h"
-#include "PlayParameters.h"
 #include "Model.h"
 
 #include <iostream>
@@ -178,26 +177,6 @@
     m_playSource = source;
 }
 
-PlayParameters *
-ViewManager::getPlayParameters(const Model *model)
-{
-    if (m_playParameters.find(model) == m_playParameters.end()) {
-	// Give all models the same type of play parameters for the moment
-	m_playParameters[model] = new PlayParameters;
-    }
-
-    return m_playParameters[model];
-}
-
-void
-ViewManager::clearPlayParameters()
-{
-    while (!m_playParameters.empty()) {
-	delete m_playParameters.begin()->second;
-	m_playParameters.erase(m_playParameters.begin());
-    }
-}
-
 void
 ViewManager::playStatusChanged(bool playing)
 {