Mercurial > hg > svcore
comparison base/View.cpp @ 3:581f67f370f3
* 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 | a23739e2338a |
children | 149bb02a41ba |
comparison
equal
deleted
inserted
replaced
2:d86891498eef | 3:581f67f370f3 |
---|---|
951 } | 951 } |
952 | 952 |
953 QFrame::paintEvent(e); | 953 QFrame::paintEvent(e); |
954 } | 954 } |
955 | 955 |
956 QString | |
957 View::toXmlString(QString indent, QString extraAttributes) const | |
958 { | |
959 QString s; | |
960 | |
961 s += indent; | |
962 | |
963 s += QString("<view " | |
964 "centre=\"%1\" " | |
965 "zoom=\"%2\" " | |
966 "followPan=\"%3\" " | |
967 "followZoom=\"%4\" " | |
968 "tracking=\"%5\" " | |
969 "light=\"%6\" %7>\n") | |
970 .arg(m_centreFrame) | |
971 .arg(m_zoomLevel) | |
972 .arg(m_followPan) | |
973 .arg(m_followZoom) | |
974 .arg(m_followPlay == PlaybackScrollContinuous ? "scroll" : | |
975 m_followPlay == PlaybackScrollPage ? "page" : "ignore") | |
976 .arg(m_lightBackground) | |
977 .arg(extraAttributes); | |
978 | |
979 for (size_t i = 0; i < m_layers.size(); ++i) { | |
980 s += m_layers[i]->toXmlString(indent + " "); | |
981 } | |
982 | |
983 s += indent + "</view>"; | |
984 | |
985 return s; | |
986 } | |
987 | |
988 | |
956 #ifdef INCLUDE_MOCFILES | 989 #ifdef INCLUDE_MOCFILES |
957 #include "View.moc.cpp" | 990 #include "View.moc.cpp" |
958 #endif | 991 #endif |
959 | 992 |