comparison view/View.cpp @ 132:5d3a483856ff

* Add Thumbwheel widget for all our zooming needs * Use QSettings to save/restore window size and position -- precursor to switching our preferences to QSettings as well -- wish I'd noticed it sooner * Only suspend writes (not reads from the underlying cache objects) from the fft caches when repainting the spectrogram -- performance should now be significantly better
author Chris Cannam
date Thu, 03 Aug 2006 15:40:11 +0000
parents eaae73b6bd28
children 9e6b3e239b9d
comparison
equal deleted inserted replaced
131:eaae73b6bd28 132:5d3a483856ff
921 921
922 LayerList scrollables; 922 LayerList scrollables;
923 bool metUnscrollable = false; 923 bool metUnscrollable = false;
924 924
925 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) { 925 for (LayerList::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i) {
926 std::cerr << "View::getScrollableBackLayers: calling isLayerDormant on layer " << *i << std::endl; 926 // std::cerr << "View::getScrollableBackLayers: calling isLayerDormant on layer " << *i << std::endl;
927 std::cerr << "(name is " << (*i)->objectName().toStdString() << ")" 927 // std::cerr << "(name is " << (*i)->objectName().toStdString() << ")"
928 << std::endl; 928 // << std::endl;
929 std::cerr << "View::getScrollableBackLayers: I am " << this << std::endl; 929 // std::cerr << "View::getScrollableBackLayers: I am " << this << std::endl;
930 if ((*i)->isLayerDormant(this)) continue; 930 if ((*i)->isLayerDormant(this)) continue;
931 if ((*i)->isLayerOpaque()) { 931 if ((*i)->isLayerOpaque()) {
932 // You can't see anything behind an opaque layer! 932 // You can't see anything behind an opaque layer!
933 scrollables.clear(); 933 scrollables.clear();
934 if (metUnscrollable) break; 934 if (metUnscrollable) break;
1067 i->second->hide(); 1067 i->second->hide();
1068 1068
1069 } else { 1069 } else {
1070 1070
1071 i->second->setText(i->first->getPropertyContainerName()); 1071 i->second->setText(i->first->getPropertyContainerName());
1072
1073 // std::cerr << this << "::checkProgress: completion " << completion << std::endl;
1074
1072 i->second->setValue(completion); 1075 i->second->setValue(completion);
1073 i->second->move(0, ph - i->second->height()); 1076 i->second->move(0, ph - i->second->height());
1074 1077
1075 i->second->show(); 1078 i->second->show();
1076 i->second->update(); 1079 i->second->update();