Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 189:5b7472db612b
* Add large chunks of context help in the optional status bar
* Add an extra overlay mode in which even the centre frame is disabled
* Fixes to FTP retrieval
author | Chris Cannam |
---|---|
date | Fri, 19 Jan 2007 13:13:14 +0000 |
parents | 42118892f428 |
children | 4a3bdde1ef13 |
comparison
equal
deleted
inserted
replaced
188:dd573e090eed | 189:5b7472db612b |
---|---|
35 Layer(), | 35 Layer(), |
36 m_model(0), | 36 m_model(0), |
37 m_gain(1.0f), | 37 m_gain(1.0f), |
38 m_autoNormalize(false), | 38 m_autoNormalize(false), |
39 m_colour(Qt::black), | 39 m_colour(Qt::black), |
40 // m_colour(QColor(84, 177, 248)), | |
40 m_showMeans(true), | 41 m_showMeans(true), |
41 m_greyscale(true), | 42 m_greyscale(true), |
42 m_channelMode(SeparateChannels), | 43 m_channelMode(SeparateChannels), |
43 m_channel(-1), | 44 m_channel(-1), |
44 m_scale(LinearScale), | 45 m_scale(LinearScale), |
162 *min = 0; | 163 *min = 0; |
163 *max = 5; | 164 *max = 5; |
164 | 165 |
165 if (m_colour == Qt::black) deft = 0; | 166 if (m_colour == Qt::black) deft = 0; |
166 else if (m_colour == Qt::darkRed) deft = 1; | 167 else if (m_colour == Qt::darkRed) deft = 1; |
167 else if (m_colour == Qt::darkBlue) deft = 2; | 168 else if (m_colour == Qt::darkBlue || |
169 m_colour == QColor(84, 177, 248)) deft = 2; | |
168 else if (m_colour == Qt::darkGreen) deft = 3; | 170 else if (m_colour == Qt::darkGreen) deft = 3; |
169 else if (m_colour == QColor(200, 50, 255)) deft = 4; | 171 else if (m_colour == QColor(200, 50, 255)) deft = 4; |
170 else if (m_colour == QColor(255, 150, 50)) deft = 5; | 172 else if (m_colour == QColor(255, 150, 50)) deft = 5; |
171 | 173 |
172 } else if (name == "Channels") { | 174 } else if (name == "Channels") { |
244 } else if (name == "Colour") { | 246 } else if (name == "Colour") { |
245 switch (value) { | 247 switch (value) { |
246 default: | 248 default: |
247 case 0: setBaseColour(Qt::black); break; | 249 case 0: setBaseColour(Qt::black); break; |
248 case 1: setBaseColour(Qt::darkRed); break; | 250 case 1: setBaseColour(Qt::darkRed); break; |
251 // case 2: setBaseColour(QColor(84, 177, 248)); break; | |
249 case 2: setBaseColour(Qt::darkBlue); break; | 252 case 2: setBaseColour(Qt::darkBlue); break; |
250 case 3: setBaseColour(Qt::darkGreen); break; | 253 case 3: setBaseColour(Qt::darkGreen); break; |
251 case 4: setBaseColour(QColor(200, 50, 255)); break; | 254 case 4: setBaseColour(QColor(200, 50, 255)); break; |
252 case 5: setBaseColour(QColor(255, 150, 50)); break; | 255 case 5: setBaseColour(QColor(255, 150, 50)); break; |
253 } | 256 } |