/************************************************************************ ** ** FILE : trawinok.c ** ** ZWECK : ** ** AUTOR : Michael C. Ancutici ** Universitaet Stuttgart, Fakultaet Informatik ** ** DATUM : 14.03.93 ** *************************************************************************/ #include "trawin.H" #include "hatra.h" #include #include "tratype.h" extern void HaTraON(); /************************************************************************* ** FUNKTION: TraWinOK ** ZWECK: ** EINGABE: ** AUSGABE: ** RETURN: ** ANMERK: *************************************************************************/ void TraWinSayOK( w, client_data, call_data) Widget w; XtPointer client_data, call_data; { String text; int i = TraWinTrans->Prio; XtVaGetValues( TraNameText, XtNstring, &text, NULL); if (strlen(text) <= 10) HaTraNRepl( TraWinNr, text); XtVaGetValues( TraPrioText, XtNstring, &text, NULL); if ((sscanf( text, "%d",&i)) && (i >= 0) && (i <= 100)) TraWinTrans->Prio = i; TraWinTrans->Break = (TraWinBreak) ? TBREAKON : TBREAKOFF; TraWinPopdown(); HaTraON(); }