VoiceAging.mesa
interface to the module which adds colors to and ages colors in voice viewers: the dictation ops buttons in voice viewers may use the ages of sections of a viewer to determine where to delete/playback/resume recording
Ades, April 25, 1986 11:27:02 am PST
DIRECTORY
ViewerClasses USING [Viewer],
VoiceViewers USING [VoiceViewerInfo];
VoiceAging: CEDAR DEFINITIONS = BEGIN
oldest: READONLY INT;
youngest: READONLY INT;
ReColorViewer: PROC [viewer: ViewerClasses.Viewer, voiceViewerInfo: VoiceViewers.VoiceViewerInfo ← NIL, repaint: BOOLEAN ← FALSE];
a viewer has been edited and the age list for it has been updated appropriately: redo the color looks so that the age marks are once more in the correct places
the repaint flag is set where we haven't just redrawn the complete viewer before the call
AgeAllViewers: PROC [youngestViewer: ViewerClasses.Viewer];
an editing event has occured which ages all the voice viewers. The youngestViewer has had its contents redrawn prior to the call
EditAges: PROC [viewerInfo: VoiceViewers.VoiceViewerInfo, unchangedHead, deleteChars, insertChars: INT];
this gets called when an edit is made to the contents of the viewer: it keeps the ageList in step with the edit
END.