Mercurial > hg > svcore
comparison data/model/Model.cpp @ 391:5858cc462d0a
* Fix #1628781 changes to layer visibility and mute should use a command
* Also use a command for changes to layer playback pan, gain, plugin settings
* Refactor PlayParameterRepository to remove dependency on audioio from base
* Fix failure to save play parameters for main model in session file
author | Chris Cannam |
---|---|
date | Thu, 13 Mar 2008 14:06:03 +0000 |
parents | d77e1fa49e26 |
children | 88ad01799040 |
comparison
equal
deleted
inserted
replaced
390:21e79997e80f | 391:5858cc462d0a |
---|---|
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #include "Model.h" | 16 #include "Model.h" |
17 #include "AlignmentModel.h" | 17 #include "AlignmentModel.h" |
18 #include "base/PlayParameterRepository.h" | |
19 | 18 |
20 #include <QTextStream> | 19 #include <QTextStream> |
21 | 20 |
22 #include <iostream> | 21 #include <iostream> |
23 | 22 |
35 | 34 |
36 if (m_alignment) { | 35 if (m_alignment) { |
37 m_alignment->aboutToDelete(); | 36 m_alignment->aboutToDelete(); |
38 delete m_alignment; | 37 delete m_alignment; |
39 } | 38 } |
40 | |
41 // Subclasses have to handle adding themselves to the repository, | |
42 // if they want to be played. We can't do it from here because | |
43 // the repository would be unable to tell whether we were playable | |
44 // or not (because dynamic_cast won't work from the base class ctor) | |
45 PlayParameterRepository::getInstance()->removeModel(this); | |
46 } | 39 } |
47 | 40 |
48 void | 41 void |
49 Model::setSourceModel(Model *model) | 42 Model::setSourceModel(Model *model) |
50 { | 43 { |