Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 6:02aaea1ffaf7
* Beginnings of session save code
* Add spline curve mode to time value layer
author | Chris Cannam |
---|---|
date | Thu, 12 Jan 2006 17:19:08 +0000 |
parents | ce747045a023 |
children | 8f5b812baaee |
comparison
equal
deleted
inserted
replaced
5:37b110168acf | 6:02aaea1ffaf7 |
---|---|
737 py = vy; | 737 py = vy; |
738 } | 738 } |
739 } | 739 } |
740 } | 740 } |
741 | 741 |
742 QString | |
743 WaveformLayer::toXmlString(QString indent, QString extraAttributes) const | |
744 { | |
745 QString s; | |
746 | |
747 s += QString("gain=\"%1\" " | |
748 "colour=\"%2\" " | |
749 "showMeans=\"%3\" " | |
750 "greyscale=\"%4\" " | |
751 "channelMode=\"%5\" " | |
752 "channel=\"%6\" " | |
753 "scale=\"%7\" " | |
754 "aggressive=\"%8\"") | |
755 .arg(m_gain) | |
756 .arg(encodeColour(m_colour)) | |
757 .arg(m_showMeans) | |
758 .arg(m_greyscale) | |
759 .arg(m_channelMode) | |
760 .arg(m_channel) | |
761 .arg(m_scale) | |
762 .arg(m_aggressive); | |
763 | |
764 return Layer::toXmlString(indent, extraAttributes + " " + s); | |
765 } | |
766 | |
742 #ifdef INCLUDE_MOCFILES | 767 #ifdef INCLUDE_MOCFILES |
743 #include "WaveformLayer.moc.cpp" | 768 #include "WaveformLayer.moc.cpp" |
744 #endif | 769 #endif |
745 | 770 |