comparison layer/TimeValueLayer.cpp @ 10:8f5b812baaee

* Hook up SV file i/o. You can now save and load sessions. Some problems -- gain is not reloaded correctly for waveforms, reloaded panes are not properly reconnected to the panner, and no doubt plenty of others.
author Chris Cannam
date Tue, 17 Jan 2006 17:45:55 +0000
parents 634324c6296e
children 2d5005f2b3d9
comparison
equal deleted inserted replaced
9:561be41ad083 10:8f5b812baaee
72 72
73 int deft = 0; 73 int deft = 0;
74 74
75 if (name == tr("Colour")) { 75 if (name == tr("Colour")) {
76 76
77 *min = 0; 77 if (min) *min = 0;
78 *max = 5; 78 if (max) *max = 5;
79 79
80 if (m_colour == Qt::black) deft = 0; 80 if (m_colour == Qt::black) deft = 0;
81 else if (m_colour == Qt::darkRed) deft = 1; 81 else if (m_colour == Qt::darkRed) deft = 1;
82 else if (m_colour == Qt::darkBlue) deft = 2; 82 else if (m_colour == Qt::darkBlue) deft = 2;
83 else if (m_colour == Qt::darkGreen) deft = 3; 83 else if (m_colour == Qt::darkGreen) deft = 3;
84 else if (m_colour == QColor(200, 50, 255)) deft = 4; 84 else if (m_colour == QColor(200, 50, 255)) deft = 4;
85 else if (m_colour == QColor(255, 150, 50)) deft = 5; 85 else if (m_colour == QColor(255, 150, 50)) deft = 5;
86 86
87 } else if (name == tr("Plot Type")) { 87 } else if (name == tr("Plot Type")) {
88 88
89 *min = 0; 89 if (min) *min = 0;
90 *max = 4; 90 if (max) *max = 4;
91 91
92 deft = int(m_plotStyle); 92 deft = int(m_plotStyle);
93 93
94 } else { 94 } else {
95 95