Subject: GUI

Keywords: ::dialog

Title: dialog_view_hook

--------------------------------------------------

hooks to manage dialog end.

fail      c-c
exit      c-q
retry     c-z
defer     cm-q  

edit macros bind calling of hooks to key sequence

dialog will add property to view.
property will be used to find proper hook.
  guid data

generic hook is called by macro
apply_view_hooks uses view property to find specific hook.
hook is called with dialog term and view props  
hook returns unit (term{new prop} term{new dialog term})
 if isl then view is quit
 if isr then view is updated.

Four flavors of hooks are supported.
 Fail 
 Exit
 Retry
 Defer
It's upto hook to define what these mean, they're more reflection of the
key bindings and what user expects in response to that key.

Main use is to handle dbbot dialogs: 
dbbot


--------------------------------------------------

Authors: RICH:t



Home