# HG changeset patch
# User lbajardsilogic
# Date 1179148439 0
# Node ID 2a6f70f973956ab22a8a30d956a51c6ac324d030
# Parent d8e6709e90753ea088e954081d0415a11bf5cce9
add
- EasaierSessionManager
- Easaier menus
- Interval model
diff -r d8e6709e9075 -r 2a6f70f97395 sv/document/Document.cpp
--- a/sv/document/Document.cpp Mon May 14 13:13:14 2007 +0000
+++ b/sv/document/Document.cpp Mon May 14 13:13:59 2007 +0000
@@ -32,7 +32,8 @@
//!!! still need to handle command history, documentRestored/documentModified
Document::Document() :
- m_mainModel(0)
+ m_mainModel(0),
+ m_audioSourceInfoModel(0)
{
connect(this, SIGNAL(modelAboutToBeDeleted(Model *)),
TransformFactory::getInstance(),
@@ -71,6 +72,12 @@
}
}
+ if (m_audioSourceInfoModel)
+ {
+ delete m_audioSourceInfoModel;
+ m_audioSourceInfoModel = 0;
+ }
+
// std::cerr << "Document::~Document: About to get rid of main model"
// << std::endl;
emit modelAboutToBeDeleted(m_mainModel);
@@ -312,6 +319,12 @@
delete oldMainModel;
}
+void Document::setAudioSourceInfoModel(AudioSourceInfoModel *infoModel)
+{
+ m_audioSourceInfoModel = infoModel;
+ emit audioSourceInfoAdded(m_audioSourceInfoModel);
+}
+
void
Document::addDerivedModel(TransformId transform,
Model *inputModel,
@@ -861,3 +874,24 @@
return s;
}
+QString
+Document::toEasaierXmlString(QString indent, QString extraAttributes) const
+{
+ QString s;
+
+ s += indent + QString("\n")
+ .arg(extraAttributes == "" ? "" : " ").arg(extraAttributes);
+
+ s += indent + indent + QString("\n");
+
+ s += indent + indent + indent + QString("\n");
+
+ s += indent + indent + QString("\n");
+
+ s += indent + "\n";
+
+ return s;
+}
diff -r d8e6709e9075 -r 2a6f70f97395 sv/document/Document.h
--- a/sv/document/Document.h Mon May 14 13:13:14 2007 +0000
+++ b/sv/document/Document.h Mon May 14 13:13:59 2007 +0000
@@ -20,6 +20,7 @@
#include "transform/Transform.h"
#include "transform/PluginTransform.h"
#include "base/Command.h"
+#include "data/model/AudioSourceInfoModel.h"
#include