Chris@0: /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: /* Chris@0: A waveform viewer and audio annotation editor. Chris@2: Chris Cannam, Queen Mary University of London, 2005-2006 Chris@0: Chris@0: This is experimental software. Not for distribution. Chris@0: */ Chris@0: Chris@0: #include "Layer.h" Chris@0: #include "View.h" Chris@0: Chris@0: #include Chris@0: Chris@0: Layer::Layer(View *w) Chris@0: { Chris@0: m_view = w; Chris@0: Chris@0: // Subclass must call this: Chris@0: // w->addLayer(this); Chris@0: } Chris@0: Chris@0: Layer::~Layer() Chris@0: { Chris@0: m_view->removeLayer(this); Chris@0: } Chris@0: Chris@0: void Chris@0: Layer::setObjectName(const QString &name) Chris@0: { Chris@0: QObject::setObjectName(name); Chris@0: emit layerNameChanged(); Chris@0: } Chris@0: Chris@0: Chris@0: #ifdef INCLUDE_MOCFILES Chris@0: #include "Layer.moc.cpp" Chris@0: #endif Chris@0: