comparison view/View.cpp @ 326:4f4f38a11cd2

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 973a0272b712
children b6df8b44b98d
comparison
equal deleted inserted replaced
324:1f67b110c1a3 326:4f4f38a11cd2
800 } 800 }
801 801
802 void 802 void
803 View::modelCompletionChanged() 803 View::modelCompletionChanged()
804 { 804 {
805 std::cerr << "View(" << this << ")::modelCompletionChanged()" << std::endl; 805 // std::cerr << "View(" << this << ")::modelCompletionChanged()" << std::endl;
806 806
807 QObject *obj = sender(); 807 QObject *obj = sender();
808 checkProgress(obj); 808 checkProgress(obj);
809 } 809 }
810 810
811 void 811 void
812 View::modelAlignmentCompletionChanged() 812 View::modelAlignmentCompletionChanged()
813 { 813 {
814 std::cerr << "View(" << this << ")::modelAlignmentCompletionChanged()" << std::endl; 814 // std::cerr << "View(" << this << ")::modelAlignmentCompletionChanged()" << std::endl;
815 815
816 QObject *obj = sender(); 816 QObject *obj = sender();
817 checkProgress(obj); 817 checkProgress(obj);
818 } 818 }
819 819
1352 1352
1353 //!!! 1353 //!!!
1354 Model *model = i->first->getModel(); 1354 Model *model = i->first->getModel();
1355 RangeSummarisableTimeValueModel *wfm = 1355 RangeSummarisableTimeValueModel *wfm =
1356 dynamic_cast<RangeSummarisableTimeValueModel *>(model); 1356 dynamic_cast<RangeSummarisableTimeValueModel *>(model);
1357 if (wfm) { 1357 if (wfm ||
1358 dynamic_cast<RangeSummarisableTimeValueModel *>
1359 (model->getSourceModel())) {
1358 completion = wfm->getAlignmentCompletion(); 1360 completion = wfm->getAlignmentCompletion();
1359 if (completion < 100) { 1361 if (completion < 100) {
1360 text = tr("Alignment"); 1362 text = tr("Alignment");
1361 } 1363 }
1362 } 1364 }