comparison view/Pane.cpp @ 595:c080d14ff414 integration_library

Put some debug outputs in comments
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Tue, 23 Aug 2011 14:45:02 +0100
parents a13aa5320221
children 2bf6dc6bc4d1
comparison
equal deleted inserted replaced
594:5fa210337bee 595:c080d14ff414
1300 1300
1301 switch(type) { 1301 switch(type) {
1302 1302
1303 case LayerFactory::Spectrogram: 1303 case LayerFactory::Spectrogram:
1304 { 1304 {
1305 std::cerr << "hello spectrogram ("<< e->x() <<", " << e->y() << ")" << std::endl; 1305 //std::cerr << "hello spectrogram ("<< e->x() <<", " << e->y() << ")" << std::endl;
1306 } 1306 }
1307 case LayerFactory::MelodicRangeSpectrogram: 1307 case LayerFactory::MelodicRangeSpectrogram:
1308 { 1308 {
1309 std::cerr << "hello melodic ("<< e->x() <<", " << e->y() << ")" << std::endl; 1309 //std::cerr << "hello melodic ("<< e->x() <<", " << e->y() << ")" << std::endl;
1310 int sw = getVerticalScaleWidth(); 1310 int sw = getVerticalScaleWidth();
1311 int pkhms = 20; //this value should be retrieved from SpectrogramLayer 1311 int pkhms = 20; //this value should be retrieved from SpectrogramLayer
1312 int slb = sw - pkhms - 1; //scale left border 1312 int slb = sw - pkhms - 1; //scale left border
1313 1313
1314 //std::cerr << "slb: "<< slb << std::endl; 1314 //std::cerr << "slb: "<< slb << std::endl;
1318 } 1318 }
1319 break; 1319 break;
1320 } 1320 }
1321 case LayerFactory::Spectrum: 1321 case LayerFactory::Spectrum:
1322 { 1322 {
1323 std::cerr << "hello spectrum ("<< e->x() <<", " << e->y() << ")" << std::endl; 1323 //std::cerr << "hello spectrum ("<< e->x() <<", " << e->y() << ")" << std::endl;
1324 1324
1325 int h = height(); 1325 int h = height();
1326 int pkhs = 20; //this value should be retrieved from SpectrumLayer 1326 int pkhs = 20; //this value should be retrieved from SpectrumLayer
1327 1327
1328 int sh = h - pkhs - 1; 1328 int sh = h - pkhs - 1;