示例#1
0
void NxmBusy_animateFinish ( void )
/************************************************************************
 * NxmBusy_animateFinish                                              	*
 *                                                                      *
 * This function cleans up after finishing animation.    		*
 *                                                                      *
 * void NxmBusy_animateFinish()                   			*
 *                                                                      *
 * Input parameters:                                                    *
 * Output parameters:                                                   *
 * Return parameters:                                                   *
 *                      NONE                                            *
 **                                                                     *
 * Log:                                                                 *
 * C. Lin/EAI      04/96                                                *
 * C. Lin/EAI      02/97	modified, move from NMAP to NXMLIB  	*
 * H. Zeng/EAI     04/00        changed cursor change funtion           *
 * T. Piper/SAIC	07/03	removed the killing of the busy process	*
 ***********************************************************************/
{
/*---------------------------------------------------------------------*/
/*
 * change the cursor back to normal in the widget invoking  
 * the busy process
 */
	if ( _cursorW )
		NxmCursor_setCursor(_cursorW, CURS_DEFAULT);

/*
 * change the stop button foreground color back 
 */
	NxmBxmBtn_setPxm( _stopButton, _stopPxm[0].snstv, (Pixmap)0 );

}
示例#2
0
void NxmBusy_invoke ( Widget cursorw, char *sflag )
/************************************************************************
 * NxmBusy_invoke                                              		*
 *                                                                      *
 * This function starts up  busy process.    				*
 *                                                                      *
 * void NxmBusy_invoke(cursorw, sflag )               			*
 *                                                                      *
 * Input parameters:                                                    *
 *	cursorw		Widget	a widget where cursor changes   	*
 *	*sflag		char	the flag to signal there is an interrupt*
 *									*
 * Output parameters:                                                   *
 * NxmBusy_invoke	pid_t    PID of busy process                    *
 **                                                                     *
 * Log:                                                                 *
 * C. Lin/EAI      04/96                                                *
 * C. Lin/EAI      02/97  	modified, move from NMAP to NXMLIB  	*
 * C. Lin/EAI      04/97  	solve problem with SUNOS -- some widget *
 *		                parms and local parms doesn't carry over*
 *				to child process, use local globals.	*
 * E. Safford/GSC  04/99	fix irix6 compiler warning		*
 * H. Zeng/EAI     04/00        changed cursor change funtion           *
 * T. Piper/SAIC	04/03	removed _busyButtonH & _busyButtonW	*
 * T. Piper/SAIC	07/03	removed the invocation of Busy		*
 ***********************************************************************/
{
/*---------------------------------------------------------------------*/
/*
 * change the cursor to be busy in the drawing window
 */
	if ( cursorw ) {
		_cursorW = cursorw;
                NxmCursor_setCursor(cursorw, CURS_BUSY);
	}
	else
		_cursorW = NULL;
	
	_interruptFlag = sflag;

/*
 * change the stop button foreground color to red
 */
	NxmBxmBtn_setPxm( _stopButton, _stopPxm[1].snstv, (Pixmap)0 );
}
示例#3
0
void wnxm_NxmCursor_setCursor( Widget parent, int ref )
/************************************************************************
 * wnxm_NxmCursor_setCursor						*
 *									*
 * void wnxm_NxmCursor_setCursor( parent, ref )				*
 *									*
 * Input parameters:							*
 *	parent		Widget	ID of parent widget			*
 *	ref		int	reference number of cursor		*
 *									*
 * Output parameters:							*
 * Return:								*
 *			NONE						*
 **									*
 * Log:									*
 * E. Safford/SAIC	11/07	initial coding                          *
 ***********************************************************************/
{
    NxmCursor_setCursor( parent, ref );	
}
示例#4
0
void guitst_rgstrCanvas ( void )
/************************************************************************
 * guitst_rgstrCanvas   	                                        *
 *                                                                      *
 * This function registers the canvas as a gempak window		*
 *                                                                      *
 * void	guitst_rgstrCanvas()						*
 *                                                                      *
 * Input parameters:                                                    *
 * Output parameters:                                                   *
 * Return parameters:                                                   *
 *                      NONE                                            *
 *                                                                      *
 ** Log:                                                                *
 *   C. Lin/EAI      04/96                                              *
 *   S. Wang/GSC     10/97	modified for guitst                     *
 *   H. Zeng/EAI     04/00      changed cursor change function          *
 * T. Piper/SAIC	10/04	Moved gg_panl after gclear		*
 ***********************************************************************/
{

Window    gwin;
GC	  gemgc;
char      wname[20];
int       iret, xdpth;
Dimension width, height;

/*---------------------------------------------------------------------*/

        /*
         * set the cursor to the default
         */
        NxmCursor_setCursor(_canvasW, CURS_DEFAULT);

        strcpy(wname, "guitst");

        /*
         * get the window info
         */
        gwin = XtWindow(_canvasW);
        gemgc = XCreateGC(gemdisplay, gwin, 0, 0);
        xdpth = DefaultDepth((XtPointer)gemdisplay,
			     DefaultScreen((XtPointer)gemdisplay));

        XtVaGetValues(_canvasW, XmNwidth,  &width,
                         XmNheight, &height,
                         NULL );

        /*
         * call GEMPAK to register the window (drawing area)
         * from now on, this drawing area will be GEMPAK's
         * window identified by name = wname.
         */
        xmotifw( gwin, wname, gemgc, (int)width, (int)height,
              			  xdpth, &iret );

        /*
         * set DEVICE in gempak
         */
        gg_motf(wname, &iret, strlen(wname));

        /*
         * clear screen and set panel
         */

	gclear(&iret);
        gg_panl("0", &iret, 1);

	
}