From: Manuel C. <ll...@er...> - 2004-07-20 20:31:40
|
Hi all, no user visible changes in this commit. Basically I have removed global guiUpdate() calls to local update() calls in AudioCDView, and use signalTocModified() when parent(s) need to know about the modification. This will make easier to write multiple AudioCDView in the AudioCDProject and does not produce an storm of updates accross different Gnome::App windows. See you. Boring details: guiUpdate() ======= - Things that "work" "magically" when doing a guiUpdate should be corrected. - add/remove funcs modify the toc, should update all views. AudioCDView::zoomIn calls: tocEditView_->sampleView(start, end); DONE: update (UPD_SAMPLES); AudioCDView::zoomx2 calls: tocEditView_->sampleView(start, end); DONE: update (UPD_SAMPLES) AudioCDView::zoomOut calls: tocEditView_->sampleView(start, end); DONE: update (UPD_SAMPLES) AudioCDView::fullView calls: tocEditView_->sampleViewFull(); DONE: update (UPD_SAMPLES) AudioCDView::trackMarkSelectedCallback calls: tocEditView_->trackSelection(trackNr); calls: tocEditView_->indexSelection(indexNr); DONE update (UPD_TRACK_MARK_SEL); AudioCDView::markerSetCallback calls: tocEditView_->sampleMarker(sample); DONE: update (UPD_SAMPLE_MARKER); AudioCDView::selectionSetCallback calls: tocEditView_->sampleView(start, end); DONE: update (UPD_SAMPLES); calls: tocEditView_->sampleSelection(start, end); DONE: update (UPD_SAMPLE_SEL); AudioCDView::markerSet DONE: update (UPD_SAMPLE_MARKER); AudioCDView::selectionSet calls: tocEditView_->sampleSelection(s1, s2); DONE: update (UPD_SAMPLE_SEL); AudioCDView::trackMarkMovedCallback calls: tocEditView_->trackSelection(trackNr); calls: tocEditView_->indexSelection(indexNr); DONE: update (UPD_TRACK_MARK_SEL); AudioCDView::cutTrackData calls: project_->tocEdit()->removeTrackData(tocEditView_)) DONE: signal_tocModified(UPD_TOC_DATA | UPD_TRACK_DATA | UPD_SAMPLE_SEL | UPD_SAMPLE_MARKER | UPD_SAMPLES); This is now like a global guiUpdate() but only from AudioCDProject AudioCDView::pasteTrackData calls: project_->tocEdit()->insertTrackData(tocEditView_)) DONE: signal_tocModified(UPD_TOC_DATA | UPD_TRACK_DATA | UPD_SAMPLE_SEL); This is now like a global guiUpdate() but only from AudioCDProject AudioCDView::addTrackMark DONE: signal_tocModified(UPD_TOC_DATA | UPD_TRACK_DATA | UPD_SAMPLE_MARKER); This is now like a global guiUpdate() but only from AudioCDProject AudioCDView::addIndexMark DONE: signal_tocModified(UPD_TRACK_DATA | UPD_SAMPLE_MARKER); This is now like a global guiUpdate() but only from AudioCDProject AudioCDView::addPregap DONE: signal_tocModified(UPD_TRACK_DATA | UPD_SAMPLE_MARKER); This is now like a global guiUpdate() but only from AudioCDProject TocEditView::trackSelection DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_TRACK_MARK_SEL; TocEditView::indexSelection DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_TRACK_MARK_SEL; TocEditView::sampleMarker DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_SAMPLE_MARKER; TocEditView::sampleMarker DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_SAMPLE_MARKER; TocEditView::sampleSelection DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_SAMPLE_SEL; TocEditView::sampleViewFull DONE: //llanero: different views DONE: // tocEdit_->updateLevel_ |= UPD_SAMPLES; TocEdit::removeTrackData DONE: //llanero: different views DONE: // updateLevel_ |= UPD_TOC_DATA | UPD_TRACK_DATA | UPD_SAMPLE_SEL | UPD_SAMPLE_MARKER | UPD_SAMPLES ; TocEdit::insertTrackData DONE: //llanero: different views DONE: // updateLevel_ |= UPD_TOC_DATA | UPD_TRACK_DATA | UPD_SAMPLE_SEL; -- Manuel Clos ll...@er... http://llanero.eresmas.net |