Mercurial > hg > sonic-visualiser
comparison document/Document.cpp @ 196:29c356da4ae4
* Make XmlExportable::toXml the function that is universally overridden (and
pure virtual) instead of toXmlString. Tidies up some classes, notably the
model classes, significantly. Closes #1794561.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 10:15:07 +0000 |
parents | ebd906049fb6 |
children | de783e8ee5f0 |
comparison
equal
deleted
inserted
replaced
195:61bf55e80080 | 196:29c356da4ae4 |
---|---|
25 #include "view/View.h" | 25 #include "view/View.h" |
26 #include "base/PlayParameterRepository.h" | 26 #include "base/PlayParameterRepository.h" |
27 #include "base/PlayParameters.h" | 27 #include "base/PlayParameters.h" |
28 #include "transform/TransformFactory.h" | 28 #include "transform/TransformFactory.h" |
29 #include <QApplication> | 29 #include <QApplication> |
30 #include <QTextStream> | |
30 #include <iostream> | 31 #include <iostream> |
31 | 32 |
32 //!!! still need to handle command history, documentRestored/documentModified | 33 //!!! still need to handle command history, documentRestored/documentModified |
33 | 34 |
34 Document::Document() : | 35 Document::Document() : |
860 } | 861 } |
861 | 862 |
862 out << indent + "</data>\n"; | 863 out << indent + "</data>\n"; |
863 } | 864 } |
864 | 865 |
865 QString | 866 |
866 Document::toXmlString(QString indent, QString extraAttributes) const | |
867 { | |
868 QString s; | |
869 | |
870 { | |
871 QTextStream out(&s); | |
872 toXml(out, indent, extraAttributes); | |
873 } | |
874 | |
875 return s; | |
876 } | |
877 |