<<>> <> <> <> <> <> <> <<>> DIRECTORY Buttons, Containers, FinchSmarts USING [ ConvDesc ], IO, Labels, MBQueue USING [ Queue ], Menus, Rope USING [ ROPE ], TiogaButtons USING [ TiogaButton ], VFonts, ViewerClasses USING [ Viewer ], ViewerEvents USING [ EventRegistration ] ; FinchTool: CEDAR DEFINITIONS IMPORTS VFonts = { ROPE: TYPE = Rope.ROPE; Viewer: TYPE = ViewerClasses.Viewer; BuildDirectories: PROC []; DestroyDirectories: PROC []; BuildDirectory: PROC[directoryFile: Rope.ROPE, newOK: BOOL¬TRUE]; FirstButton: PROC[ q: MBQueue.Queue, name: ROPE, proc: Buttons.ButtonProc, parent: Viewer, data: REF ANY¬ NIL, border: BOOL¬ FALSE, width: INTEGER¬ 0, guarded: BOOL¬ FALSE, font: VFonts.Font ¬ VFonts.defaultFont] RETURNS [nV: Viewer]; AnotherButton: PROC[ q: MBQueue.Queue, name: ROPE, proc: Buttons.ButtonProc, sib: Viewer, data: REF ANY¬ NIL, border: BOOL¬ FALSE, width: INTEGER¬ 0, guarded: BOOL¬ FALSE, font: VFonts.Font ¬ VFonts.defaultFont, newLine: BOOL¬ FALSE] RETURNS [nV: Viewer]; Report: PROC[msg: ROPE, a1, a2, a3: IO.Value ¬ [null[]]]; ReportRope: PROC[msg1: ROPE]; Status: PROC[msg1, msg2, msg3, msg4: ROPE¬NIL]; CheckAborted: PROC[sib: Viewer] RETURNS[ok: BOOL]; CheckActive: PROC[handle: Handle, mustAlreadyBeActive: BOOL¬FALSE, complain: BOOL¬TRUE] RETURNS [ active: BOOL¬FALSE ]; GetSelectedDesc: PROC[chosenButton: TiogaButtons.TiogaButton¬NIL, checkActive: BOOL¬TRUE] RETURNS [cDesc: FinchSmarts.ConvDesc]; <> Stop: Menus.MenuProc; Hangup: Menus.MenuProc; StartFinch: PROC; StopFinch: PROC[disable: BOOL¬TRUE]; <> <> <> CallByDescription: PROC[description: ROPE, residence: BOOL¬FALSE]; FeepValue: PROC[text: ROPE] RETURNS [feepText: ROPE]; finchQueue: MBQueue.Queue; finchToolHandle: Handle; Handle: TYPE = REF FinchToolRec; -- a REF to the data for a particular instance of the sample tool; multiple instances can be created. FinchToolRec: TYPE = RECORD [ -- the data for a particular tool instance debug: BOOL¬FALSE, -- currently controls intermediate speech reports outer: Containers.Container ¬ NIL, -- handle for the enclosing container calledPartyText: Viewer¬NIL, callingPartyText: Viewer¬NIL, typescript: Viewer ¬ NIL, -- typescript for Finch activities tsIn: IO.STREAM ¬ NIL, tsOut: IO.STREAM ¬ NIL, callLog: IO.STREAM ¬ NIL, conversations: Viewer, -- Log of active and completed conversations logServiceCalls: LogServiceCalls ¬ $all, -- user can limit logging of service calls directories: LIST OF Viewer, -- White pages directories finchEnabledAtCheckpoint: BOOL¬FALSE, -- retains state of enabling over Checkpoint/Rollback. finchEnabledAtLastReport: BOOL¬FALSE, -- for avoiding multiple reports of same finchConnectedAtLastReport: BOOL¬FALSE, -- condition inExecCmd: BOOL¬FALSE, keepTwiddling: BOOL ¬ FALSE, -- TRUE while state = ringing, twiddleWait: CONDITION, finchToolHeight: NAT ¬ 64, pauseTimeTilted: INT¬80, -- all times in milliseconds, all relate to Finch icon when pauseTimeMiddle: INT¬0, -- phone is ringing pauseTimeOn: INT ¬ 4000, -- defaults to on all the time pauseTimeDrawFactor: INT ¬ 40, -- time to draw icons pauseTimeOff: INT ¬ 2000, scrollEvent: ViewerEvents.EventRegistration ¬ NIL, backgrounding: BOOL¬FALSE ]; LogServiceCalls: TYPE = {none, one, all}; }. <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <<>>