2 #####################################################################
3 ### File: dthelpgen.dtsh
5 ### Default Location: /usr/dt/bin/dthelpgen.dtsh
7 ### Purpose: Display a 'working' dialog for dthelpgen.
9 ### Description: This shell script provides a graphical interface
10 ### to notify the user that the help browser is
11 ### being (re)generated.
13 ### Invoked by: The the dthelpgen application.
15 ### Product: @(#)Common Desktop Environment 1.0
17 ### Note: Please do not modify this file.
18 ### Later product updates will overwrite this file.
20 ### Revision: $XConsortium: dthelpgen.dtsh /main/3 1995/11/07 13:13:18 rswiston $
24 #####################################################################
27 ##################################################################
30 ### Actually, most variables in this script are global.
32 ### Most are defined in the Initialize() routine.
34 ##################################################################
35 COMMAND_NAME=dthelpgen
45 ##################################################################
48 ### Initialize the tile, msg and cat id.
50 ##################################################################
56 catopen CAT_ID $COMMAND_NAME
60 ##################################################################
63 ### All exits should go through this routine.
65 ##################################################################
70 ################## GUI Callbacks ####################
73 # This is the callback for the 'OK' button. It will exit the program
77 XtUnmanageChild $_DT_WORKING_DIALOG_HANDLE
85 # This is the callback if the timer goes off
90 # CAT_MESG_MSG=${CAT_MESG_MSG}"."
91 # XtSetValues $_DT_WORKING_DIALOG_HANDLE \
92 # messageString:"${CAT_MESG_MSG}"
94 # XtAppAddTimeOut TIMER_ID $TIMER_CONTEXT $TIMER_TIME "TimerCB" ""
98 ##################################################################
101 ### Display a 'working' dialog for dthelpgen.
103 ##################################################################
107 if [[ -r /usr/dt/lib/dtksh/DtFuncs.dtsh ]]
109 . /usr/dt/lib/dtksh/DtFuncs.dtsh
111 echo Sorry--cannot find initialization file.
112 Exit $NO_INIT_FILE_ERR
115 XtInitialize TOPLEVEL dthelpgenDialog Dthelpgen ""
117 XtDisplay DISPLAY $TOPLEVEL
119 catgets CAT_MESG_TITLE $CAT_ID 2 6 "${COMMAND_NAME}"
120 catgets CAT_MESG_MSG $CAT_ID 2 7 \
121 "Generating browser information. Please wait."
123 DtkshDisplayWorkingDialog "${CAT_MESG_TITLE}" \
126 DIALOG_PRIMARY_APPLICATION_MODAL
128 XtManageChild $_DT_WORKING_DIALOG_HANDLE
130 # XtWidgetToApplicationContext TIMER_CONTEXT $_DT_WORKING_DIALOG_HANDLE
131 # XtGetMultiClickTime TIMER_TIME $DISPLAY
132 # XtAppAddTimeOut TIMER_ID $TIMER_CONTEXT $TIMER_TIME "TimerCB" ""
139 ##################### eof ##############################