src/experiments/k4/K4GUI/src/trend5.cc
int
Trend5MaxChange( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )

{
  
            PtArg_t args[1];
            short int tmax;
            PtNumericIntegerCallback_t *cb;
  
            /* eliminate 'unreferenced' warnings */
            widget = widget, apinfo = apinfo, cbinfo = cbinfo;
  
            cb = (PtNumericIntegerCallback *)cbinfo->cbdata;
            tmax = cb->numeric_value;
  
            // printf("max set to %d\n", tmax);
  
            PtSetArg(&args[0], Rt_ARG_TREND_MAX, tmax, 1);
            PtSetResources(ABW_Trend5, 1, args);
            return( Pt_CONTINUE );
  
}
/* this function is called when users change max value for trend 5*/
this function is called when users change max value for trend 5
this function is called when users change max value for trend 5
int
Trend5MaxChange( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )
{
            PtArg_t args[1];
            short int tmax;
            PtNumericIntegerCallback_t *cb;
            widget = widget, apinfo = apinfo, cbinfo = cbinfo;
            cb = (PtNumericIntegerCallback *)cbinfo->cbdata;
            tmax = cb->numeric_value;
            PtSetArg(&args[0], Rt_ARG_TREND_MAX, tmax, 1);
            PtSetResources(ABW_Trend5, 1, args);
            return( Pt_CONTINUE );
}
int Trend5MaxChange ( PtWidget_t * widget , ApInfo_t * apinfo , PtCallbackInfo_t * cbinfo ) { PtArg_t args [ 1 ] ; short int tmax ; PtNumericIntegerCallback_t * cb ; widget = widget , apinfo = apinfo , cbinfo = cbinfo ; cb = ( PtNumericIntegerCallback * ) cbinfo -> cbdata ; tmax = cb -> numeric_value ; PtSetArg ( & args [ 0 ] , Rt_ARG_TREND_MAX , tmax , 1 ) ; PtSetResources ( ABW_Trend5 , 1 , args ) ; return ( Pt_CONTINUE ) ; }
this function is called when users change max value for trend 5
this function is called when users change max value for trend 5
/* eliminate 'unreferenced' warnings */ // printf("max set to %d\n", tmax);