comparison base/Layer.cpp @ 39:e1a0cf2dcc79

* Fix a crash in PortAudio output for mono data * Don't construct a chromagram in TonalChangeDetect plugin ctor * Update layer show/hide/dormancy for multi-view-capable layers -- the dormancy concept doesn't really work with these constraints any more
author Chris Cannam
date Fri, 03 Mar 2006 17:52:21 +0000
parents 935a2419a77c
children b8aae4f883b7
comparison
equal deleted inserted replaced
38:a6b2128eed56 39:e1a0cf2dcc79
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 #include "PlayParameterRepository.h"
17 17
18 Layer::Layer() : 18 Layer::Layer()
19 m_dormant(false)
20 { 19 {
21 // m_view = w;
22
23 // Subclass must call this:
24 // w->addLayer(this);
25 } 20 }
26 21
27 Layer::~Layer() 22 Layer::~Layer()
28 { 23 {
29 // m_view->removeLayer(this);
30 } 24 }
31 25
32 QString 26 QString
33 Layer::getPropertyContainerIconName() const 27 Layer::getPropertyContainerIconName() const
34 { 28 {
40 Layer::setObjectName(const QString &name) 34 Layer::setObjectName(const QString &name)
41 { 35 {
42 QObject::setObjectName(name); 36 QObject::setObjectName(name);
43 emit layerNameChanged(); 37 emit layerNameChanged();
44 } 38 }
45 /*
46 int
47 Layer::getXForFrame(long frame) const
48 {
49 if (m_view) return m_view->getXForFrame(frame);
50 else return 0;
51 }
52 39
53 long
54 Layer::getFrameForX(int x) const
55 {
56 if (m_view) return m_view->getFrameForX(x);
57 else return 0;
58 }
59 */
60 QString 40 QString
61 Layer::toXmlString(QString indent, QString extraAttributes) const 41 Layer::toXmlString(QString indent, QString extraAttributes) const
62 { 42 {
63 QString s; 43 QString s;
64 44