Mercurial > hg > svcore
comparison base/PlayParameterRepository.cpp @ 82:bf42d8d63885
* Some work on reloading play parameters from file (not quite working yet)
* Win32: redirect stderr to console
* A bit of menu reorganisation
author | Chris Cannam |
---|---|
date | Wed, 26 Apr 2006 14:09:55 +0000 |
parents | f277a171749d |
children | b2067aff8cd6 |
comparison
equal
deleted
inserted
replaced
81:f277a171749d | 82:bf42d8d63885 |
---|---|
37 } | 37 } |
38 | 38 |
39 void | 39 void |
40 PlayParameterRepository::addModel(const Model *model) | 40 PlayParameterRepository::addModel(const Model *model) |
41 { | 41 { |
42 std::cerr << "PlayParameterRepository:addModel " << model << std::endl; | |
43 | |
42 if (!getPlayParameters(model)) { | 44 if (!getPlayParameters(model)) { |
43 | 45 |
44 // Give all models the same type of play parameters for the | 46 // Give all models the same type of play parameters for the |
45 // moment, provided they can be played at all | 47 // moment, provided they can be played at all |
46 | 48 |
108 | 110 |
109 void | 111 void |
110 PlayParameterRepository::playPluginConfigurationChanged(QString config) | 112 PlayParameterRepository::playPluginConfigurationChanged(QString config) |
111 { | 113 { |
112 PlayParameters *params = dynamic_cast<PlayParameters *>(sender()); | 114 PlayParameters *params = dynamic_cast<PlayParameters *>(sender()); |
115 std::cerr << "PlayParameterRepository::playPluginConfigurationChanged" << std::endl; | |
113 for (ModelParameterMap::iterator i = m_playParameters.begin(); | 116 for (ModelParameterMap::iterator i = m_playParameters.begin(); |
114 i != m_playParameters.end(); ++i) { | 117 i != m_playParameters.end(); ++i) { |
115 if (i->second == params) { | 118 if (i->second == params) { |
116 emit playPluginConfigurationChanged(i->first, config); | 119 emit playPluginConfigurationChanged(i->first, config); |
117 return; | 120 return; |