home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
TEDdesk
/
reloc.8
/
$TED_DIR
/
bin
/
dthelpgen.ds
< prev
next >
Wrap
Text File
|
1998-08-19
|
5KB
|
162 lines
#! /usr/dt/bin/dtksh
#####################################################################
### File: dthelpgen.dtsh
###
### Default Location: /usr/dt/bin/dthelpgen.dtsh
###
### Purpose: Display a 'working' dialog for dthelpgen.
###
### Description: This shell script provides a graphical interface
### to notify the user that the help browser is
### being (re)generated.
###
### Invoked by: The the dthelpgen application.
###
### Product: @(#)TED 4.2 Alpha 99-4200-00, dthelpgen.ds
###
### (c) Copyright 1993, 1994, 1995 TriTeal Corporation
### (c) Copyright 1993, 1994 Hewlett-Packard Company
### (c) Copyright 1993, 1994 International Business Machines Corp.
### (c) Copyright 1993, 1994 Sun Microsystems, Inc.
### (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
### Novell, Inc.
###
###
### RESTRICTED RIGHTS LEGEND
###
### Use, duplication, or disclosure by the U.S. Government is subject to
### restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
### Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
### for non-DOD U.S. Government Departments and Agencies are as set forth in
### FAR 52.227-19(c)(1,2).
###
### TriTeal Corporation, 2011 Palomar Airport Road, Carlsbad, CA 92009 U.S.A.
### Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
### International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
### Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
### Unix System Labs, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
###
### Note: Please do not modify this file.
### Later product updates will overwrite this file.
###
### Revision: $XConsortium: dthelpgen.dtsh /main/cde1_maint/1 1995/07/14 23:37:10 drk $
###
### Defect(s):
###
#####################################################################
set -u
##################################################################
### Internal Globals
###
### Actually, most variables in this script are global.
###
### Most are defined in the Initialize() routine.
###
##################################################################
COMMAND_NAME=dthelpgen
#
# Exit/Return codes
#
SUCCESS=0
USAGE_EXIT=2
NO_INIT_FILE_ERR=5
failure_flag=$SUCCESS
##################################################################
### Initialize()
###
### Initialize the tile, msg and cat id.
###
##################################################################
Initialize()
{
CAT_MESG_TITLE=""
CAT_MESG_MSG=""
catopen CAT_ID $COMMAND_NAME
}
##################################################################
### Exit()
###
### All exits should go through this routine.
###
##################################################################
Exit() {
exit $1
}
################## GUI Callbacks ####################
#
# This is the callback for the 'OK' button. It will exit the program
#
OkButton()
{
XtUnmanageChild $_DT_WORKING_DIALOG_HANDLE
XSync $DISPLAY True
Exit 0
}
#
# This is the callback if the timer goes off
#
# TimerCB()
# {
#
# CAT_MESG_MSG=${CAT_MESG_MSG}"."
# XtSetValues $_DT_WORKING_DIALOG_HANDLE \
# messageString:"${CAT_MESG_MSG}"
#
# XtAppAddTimeOut TIMER_ID $TIMER_CONTEXT $TIMER_TIME "TimerCB" ""
#
# }
##################################################################
### Main()
###
### Display a 'working' dialog for dthelpgen.
###
##################################################################
Initialize
if [[ -r /usr/dt/lib/dtksh/DtFuncs.dtsh ]]
then
. /usr/dt/lib/dtksh/DtFuncs.dtsh
else
echo Sorry--cannot find initialization file.
Exit $NO_INIT_FILE_ERR
fi
XtInitialize TOPLEVEL dthelpgenDialog Dthelpgen ""
XtDisplay DISPLAY $TOPLEVEL
catgets CAT_MESG_TITLE $CAT_ID 2 6 "${COMMAND_NAME}"
catgets CAT_MESG_MSG $CAT_ID 2 7 \
"Generating browser information. Please wait."
DtkshDisplayWorkingDialog "${CAT_MESG_TITLE}" \
"${CAT_MESG_MSG}" \
"OkButton" "" "" \
DIALOG_PRIMARY_APPLICATION_MODAL
XtManageChild $_DT_WORKING_DIALOG_HANDLE
# XtWidgetToApplicationContext TIMER_CONTEXT $_DT_WORKING_DIALOG_HANDLE
# XtGetMultiClickTime TIMER_TIME $DISPLAY
# XtAppAddTimeOut TIMER_ID $TIMER_CONTEXT $TIMER_TIME "TimerCB" ""
XtMainLoop
#
# Never reached.
#
##################### eof ##############################