comparison layer/SpectrogramLayer.cpp @ 18:d8e6709e9075

add - EasaierSessionManager - Easaier menus - Interval model
author lbajardsilogic
date Mon, 14 May 2007 13:13:14 +0000
parents fc9323a41f5a
children 61681a2bc1e6
comparison
equal deleted inserted replaced
17:e59b19407b6d 18:d8e6709e9075
3032 .arg(m_normalizeVisibleArea ? "true" : "false"); 3032 .arg(m_normalizeVisibleArea ? "true" : "false");
3033 3033
3034 return Layer::toXmlString(indent, extraAttributes + " " + s); 3034 return Layer::toXmlString(indent, extraAttributes + " " + s);
3035 } 3035 }
3036 3036
3037 QString
3038 SpectrogramLayer::toEasaierXmlString(QString indent, QString extraAttributes) const
3039 {
3040 QString s;
3041
3042 s += QString("channel=\"%1\" "
3043 "windowSize=\"%2\" "
3044 "windowType=\"%3\" "
3045 "windowHopLevel=\"%4\" "
3046 "gain=\"%5\" "
3047 "threshold=\"%6\" ")
3048 .arg(m_channel)
3049 .arg(m_windowSize)
3050 .arg(m_windowType)
3051 .arg(m_windowHopLevel)
3052 .arg(m_gain)
3053 .arg(m_threshold);
3054
3055
3056
3057 s += QString("minFrequency=\"%1\" "
3058 "maxFrequency=\"%2\" "
3059 "colourScale=\"%3\" "
3060 "colourScheme=\"%4\" "
3061 "colourRotation=\"%5\" "
3062 "frequencyScale=\"%6\" "
3063 "binDisplay=\"%7\" "
3064 "normalizeColumns=\"%8\" "
3065 "normalizeVisibleArea=\"%9\"")
3066 .arg(m_minFrequency)
3067 .arg(m_maxFrequency)
3068 .arg(m_colourScale)
3069 .arg(m_colourMap)
3070 .arg(m_colourRotation)
3071 .arg(m_frequencyScale)
3072 .arg(m_binDisplay)
3073 .arg(m_normalizeColumns ? "true" : "false")
3074 .arg(m_normalizeVisibleArea ? "true" : "false");
3075
3076 return Layer::toEasaierXmlString(indent, extraAttributes + " " + s);
3077 }
3078
3037 void 3079 void
3038 SpectrogramLayer::setProperties(const QXmlAttributes &attributes) 3080 SpectrogramLayer::setProperties(const QXmlAttributes &attributes)
3039 { 3081 {
3040 bool ok = false; 3082 bool ok = false;
3041 3083