comparison base/Layer.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 47500c27ac26
children 8460b3bf8f04
comparison
equal deleted inserted replaced
27:070e9e1e40ea 28:4b16526b011b
11 #include "View.h" 11 #include "View.h"
12 12
13 #include <iostream> 13 #include <iostream>
14 14
15 #include "layer/LayerFactory.h" //!!! shouldn't be including this here -- does that suggest we need to move this into layer/ ? 15 #include "layer/LayerFactory.h" //!!! shouldn't be including this here -- does that suggest we need to move this into layer/ ?
16 #include "PlayParameterRepository.h"
16 17
17 Layer::Layer(View *w) 18 Layer::Layer(View *w)
18 { 19 {
19 m_view = w; 20 m_view = w;
20 21
71 .arg(extraAttributes); 72 .arg(extraAttributes);
72 73
73 return s; 74 return s;
74 } 75 }
75 76
77 PlayParameters *
78 Layer::getPlayParameters() const
79 {
80 const Model *model = getModel();
81 if (model) {
82 return PlayParameterRepository::instance()->getPlayParameters(model);
83 }
84 return 0;
85 }
86
87
88
76 #ifdef INCLUDE_MOCFILES 89 #ifdef INCLUDE_MOCFILES
77 #include "Layer.moc.cpp" 90 #include "Layer.moc.cpp"
78 #endif 91 #endif
79 92