comparison base/Layer.cpp @ 0:da6937383da8

initial import
author Chris Cannam
date Tue, 10 Jan 2006 16:33:16 +0000
parents
children d86891498eef
comparison
equal deleted inserted replaced
-1:000000000000 0:da6937383da8
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005
6
7 This is experimental software. Not for distribution.
8 */
9
10 #include "Layer.h"
11 #include "View.h"
12
13 #include <iostream>
14
15 Layer::Layer(View *w)
16 {
17 m_view = w;
18
19 // Subclass must call this:
20 // w->addLayer(this);
21 }
22
23 Layer::~Layer()
24 {
25 m_view->removeLayer(this);
26 }
27
28 void
29 Layer::setObjectName(const QString &name)
30 {
31 QObject::setObjectName(name);
32 emit layerNameChanged();
33 }
34
35
36 #ifdef INCLUDE_MOCFILES
37 #include "Layer.moc.cpp"
38 #endif
39