# HG changeset patch # User Chris Cannam # Date 1141993702 0 # Node ID b8aae4f883b7189ac3405e795ba2839f4cfa5dc6 # Parent 7bf163161b88a2fda23a3d90e1347bdb05f61a61 * More document structure / main window / file I/O work diff -r 7bf163161b88 -r b8aae4f883b7 base/Layer.cpp --- a/base/Layer.cpp Wed Mar 08 17:47:58 2006 +0000 +++ b/base/Layer.cpp Fri Mar 10 12:28:22 2006 +0000 @@ -21,6 +21,7 @@ Layer::~Layer() { + std::cerr << "Layer::~Layer(" << this << ")" << std::endl; } QString diff -r 7bf163161b88 -r b8aae4f883b7 base/Model.cpp --- a/base/Model.cpp Wed Mar 08 17:47:58 2006 +0000 +++ b/base/Model.cpp Fri Mar 10 12:28:22 2006 +0000 @@ -10,10 +10,14 @@ #include "Model.h" #include "PlayParameterRepository.h" +#include + const int Model::COMPLETION_UNKNOWN = -1; Model::~Model() { + std::cerr << "Model::~Model(" << this << ")" << std::endl; + // Subclasses have to handle adding themselves to the repository, // if they want to be played. We can't do it from here because // the repository would be unable to tell whether we were playable diff -r 7bf163161b88 -r b8aae4f883b7 base/View.cpp --- a/base/View.cpp Wed Mar 08 17:47:58 2006 +0000 +++ b/base/View.cpp Fri Mar 10 12:28:22 2006 +0000 @@ -53,14 +53,16 @@ View::~View() { + std::cerr << "View::~View(" << this << ")" << std::endl; + //!!! will want to _not_ delete layers m_deleting = true; - +/*!!! for (LayerList::iterator i = m_layers.begin(); i != m_layers.end(); ++i) { delete *i; } - +*/ delete m_propertyContainer; }