! UIMX ascii 2.0 key: 4216 *XBatchred.class: Project *XBatchred.PjName: XBatchred *XBatchred.PjDoMain: 0 *XBatchred.PjDoMake: 0 *XBatchred.PjWriteAll: 0 *XBatchred.PjRunMake: 1 *XBatchred.PjStartupIface: ApplicWindow *XBatchred.PjWriteCDir: /midas/test/gui/XBatch/src *XBatchred.PjMode: 0 *ApplicWindow_PJinterface.class: PJinterface *ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface *ApplicWindow_PJinterface.PjSwName: ApplicWindow *ApplicWindow_PJinterface.PjParent: XBatchred *ApplicWindow_PJinterface.PjFileName: ApplicWindow.i *ApplicWindow_PJinterface.PjShowFlag: 2 *ApplicWindow_PJinterface.PjDate: 807537331 *ApplicWindow_PJinterface.PjMode: 0 *ApplicWindow_PJinterface.PjCFileName: ApplicWindow.c *AirmassShell_PJinterface.class: PJinterface *AirmassShell_PJinterface.PjName: AirmassShell_PJinterface *AirmassShell_PJinterface.PjSwName: AirmassShell *AirmassShell_PJinterface.PjParent: XBatchred *AirmassShell_PJinterface.PjFileName: topLevelShell3.i *AirmassShell_PJinterface.PjShowFlag: 2 *AirmassShell_PJinterface.PjDate: 744621840 *AirmassShell_PJinterface.PjMode: 0 *AirmassShell_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/sh_airmass.c *file_list_PJinterface.class: PJinterface *file_list_PJinterface.PjName: file_list_PJinterface *file_list_PJinterface.PjSwName: file_list *file_list_PJinterface.PjParent: XBatchred *file_list_PJinterface.PjFileName: file_list.i *file_list_PJinterface.PjShowFlag: 2 *file_list_PJinterface.PjDate: 744621844 *file_list_PJinterface.PjMode: 0 *file_list_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/file_list.c *file_dialog_PJinterface.class: PJinterface *file_dialog_PJinterface.PjName: file_dialog_PJinterface *file_dialog_PJinterface.PjSwName: file_dialog *file_dialog_PJinterface.PjParent: XBatchred *file_dialog_PJinterface.PjFileName: file_dialog.i *file_dialog_PJinterface.PjShowFlag: 2 *file_dialog_PJinterface.PjDate: 744621845 *file_dialog_PJinterface.PjMode: 0 *file_dialog_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/file_dialog.c *HelpShell_PJinterface.class: PJinterface *HelpShell_PJinterface.PjName: HelpShell_PJinterface *HelpShell_PJinterface.PjSwName: HelpShell *HelpShell_PJinterface.PjParent: XBatchred *HelpShell_PJinterface.PjFileName: HelpShell.i *HelpShell_PJinterface.PjShowFlag: 2 *HelpShell_PJinterface.PjDate: 744621847 *HelpShell_PJinterface.PjMode: 0 *HelpShell_PJinterface.PjCFileName: /diskb/midas/test/gui/XBatchred/src/HelpShell.c *uxmain.class: PJuxmain *uxmain.PjName: uxmain *uxmain.PjParent: XBatchred *uxmain.PjFileName: XBatchred.c *uxmain.PjDate: 744621849 *uxmain.PjMode: 0 *uxmain.PjBody: /*------------------------------------------------------------\ * This is the project main program file for Ux generated \ * code. You may add application dependent source code\ * at the appropriate places. \ * \ * Do not modify the statements preceded by the dollar\ * sign ($), these statements will be replaced with\ * the appropriate source code when the main program is\ * automatically generated. \ * \ * $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/\ \ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ \ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ #include \ #include \ #include \ #include \ \ #include \ #include \ \ /* variables for file list management */\ swidget FileListInterface, TextFieldSwidget;\ Widget FileListWidget;\ int FillTextField;\ char DirSpecs[MAXLINE];\ \ extern swidget create_file_list();\ \ int ExecuteCaller; /* TRUE if "execute" was pressed */\ \ main(argc,argv)\ int argc;\ char *argv[];\ {\ /*-----------------------------------------------------------\ * Declarations.\ * The default identifier - mainIface will only be declared \ * if the interface function is global and of type swidget. \ * To change the identifier to a different name, modify the\ * string mainIface in the file "main.dat". If "mainIface"\ * is declared, it will be used below where the return value \ * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ *-----------------------------------------------------------*/ \ int narg, fsmode = 0;\ int cntflag = 1, logflag = 2, dispflag = 1;\ \ $PJ_INTERFACE_RETVAL_TYPE\ \ /*--------------------------------\ * Interface function declaration\ *-------------------------------*/ \ \ $PJ_INTERFACE_FUNCTION_DECL\ $PJ_INTERFACE_FUNCTION_ARG_DECL\ \ /*---------------------\ * Initialize Program\ *--------------------*/\ \ #ifdef XOPEN_CATALOG\ setlocale(LC_ALL, "");\ #endif\ \ UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\ \ /*------------------------------------------------------\ * Insert initialization code for your application here\ *-----------------------------------------------------*/\ \ SetResources(argc, argv);\ SCSPRO("XREDUC");\ SCECNT("PUT", &cntflag, &logflag, &dispflag);\ MonitorPid = atoi(argv[1]);\ \ FileListInterface = create_file_list();\ \ /*----------------------------------------------------------------\ * Create and popup the first window of the interface. The \ * return value can be used in the popdown or destroy functions.\ * The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\ * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ *---------------------------------------------------------------*/\ \ $PJ_INTERFACE_FUNCTION_CALL\ $PJ_POPUP_CALL\ \ /*-------------------------\ * Enter the event loop \ *------------------------*/\ \ signal(SIGINT, SIG_IGN);\ signal(SIGQUIT, SIG_IGN);\ InitReduce();\ \ $PJ_EVENT_LOOP\ \ }\ \ *uxmain.PjExplicitEventLoop: {\ \ XEvent event;\ \ for (;;)\ {\ UxNextEvent(&event);\ \ switch (event.type)\ {\ \ /*----------------------------------------------------\ * Insert code here to handle any events that you do\ * not wish to be handled by the interface.\ *----------------------------------------------------*/\ \ default:\ UxDispatchEvent(&event);\ break;\ }\ }\ } *uxmain.PjEdited: 1 *uxmain.PjHasImplicitLoop: 1 *uxmain.PjHasExplicitLoop: 0 *xtmain.class: PJxtmain *xtmain.PjName: xtmain *xtmain.PjParent: XBatchred *xtmain.PjFileName: XBatchred.c *xtmain.PjDate: 716919776 *xtmain.PjMode: 1 *xtmain.PjBody: /*-----------------------------------------------------------\ * This is the project main program file for Xt generated \ * code. You may add application dependent source code \ * at the appropriate places. \ * \ * Do not modify the statements preceded by the dollar\ * sign ($), these statements will be replaced with\ * the appropriate source code when the main program is \ * generated. \ *\ * $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/ \ \ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ #include \ \ /*---------------------------------------------------- \ * UxXt.h needs to be included only when compiling a \ * stand-alone application. \ *---------------------------------------------------*/\ #ifndef DESIGN_TIME\ #include "UxXt.h"\ #endif /* DESIGN_TIME */\ \ XtAppContext UxAppContext;\ Widget UxTopLevel;\ Display *UxDisplay;\ int UxScreen;\ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ #include \ \ int MonitorPid; /* PID of the Midas monitor */ \ swidget ListPopup; /* widget for pop-up of string lists */\ swidget FormListPopup; /* widget for pop-up of form names */\ swidget FormAirmass; /* widget for pop-up of input form of airmass values */ \ swidget TextSwidget;\ int ExecuteCaller; /* TRUE if "execute" was pressed */\ \ Widget FileListWidget;\ Widget FormListWidget;\ \ extern swidget create_sh_list(), create_sh_form_list(), create_sh_airmass();\ void handler();\ main(argc,argv)\ int argc;\ char *argv[];\ {\ /*-----------------------------------------------------------\ * Declarations.\ * The default identifier - mainIface will only be declared \ * if the interface function is global and of type swidget.\ * To change the identifier to a different name, modify the\ * string mainIface in the file "xtmain.dat". If "mainIface"\ * is declared, it will be used below where the return value\ * of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ *----------------------------------------------------------*/ \ \ $PJ_INTERFACE_RETVAL_TYPE\ \ /*---------------------------------\ * Interface function declaration\ *--------------------------------*/ \ \ $PJ_INTERFACE_FUNCTION_DECL\ $PJ_INTERFACE_FUNCTION_ARG_DECL\ \ /*---------------------\ * Initialize program\ *--------------------*/\ \ #ifdef XOPEN_CATALOG\ setlocale(LC_ALL, "");\ #endif\ \ UxTopLevel = XtAppInitialize(&UxAppContext, "$PJ_APP_CLASS_NAME",\ NULL, 0, &argc, argv, NULL, NULL, 0);\ \ UxDisplay = XtDisplay(UxTopLevel);\ UxScreen = XDefaultScreen(UxDisplay);\ \ /* We set the geometry of UxTopLevel so that dialogShells\ that are parented on it will get centered on the screen\ (if defaultPosition is true). */\ \ XtVaSetValues(UxTopLevel,\ XtNx, 0,\ XtNy, 0,\ XtNwidth, DisplayWidth(UxDisplay, UxScreen),\ XtNheight, DisplayHeight(UxDisplay, UxScreen),\ NULL);\ \ /*-------------------------------------------------------\ * Insert initialization code for your application here \ *------------------------------------------------------*/\ \ if ( argv[1] != NULL ) \ MonitorPid = atoi(argv[1]);\ SCSPRO("BATRED");\ \ signal( SIGINT, handler );\ signal( SIGQUIT, handler );\ \ ListPopup = create_sh_list();\ FormListPopup = create_sh_form_list();\ FormAirmass = create_sh_airmass();\ /*----------------------------------------------------------------\ * Create and popup the first window of the interface. The \ * return value can be used in the popdown or destroy functions.\ * The Widget return value of PJ_INTERFACE_FUNCTION_CALL will \ * be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ *---------------------------------------------------------------*/\ \ $PJ_INTERFACE_FUNCTION_CALL\ $PJ_POPUP_CALL\ \ /*-----------------------\ * Enter the event loop \ *----------------------*/\ \ $PJ_EVENT_LOOP\ \ }\ \ void handler( intr )\ int intr;\ {\ /* Dummy routine for ignoring ^C and ^\. For some strange reason,\ the parameter SIG_IGN to signal() doesn't work. */\ }\ *xtmain.PjExplicitEventLoop: {\ \ XEvent event;\ \ for (;;)\ {\ XtAppNextEvent(UxAppContext, &event);\ \ switch (event.type)\ {\ \ /*---------------------------------------------------\ * Insert code here to handle any events that you do\ * not wish to be handled by the interface.\ *---------------------------------------------------*/\ \ default:\ XtDispatchEvent(&event);\ break;\ }\ }\ } *xtmain.PjEdited: 1 *xtmain.PjHasImplicitLoop: 1 *xtmain.PjHasExplicitLoop: 0 *uxmake.class: PJuxmake *uxmake.PjName: uxmake *uxmake.PjParent: XBatchred *uxmake.PjFileName: makefile *uxmake.PjDate: 0 *uxmake.PjMode: 0 *uxmake.PjBody: ########################################################################\ # \ # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\ #\ # EXECUTABLE is the name of the executable to be created \ # MAIN is the .c file containing your main() function\ # INTERFACES is a list of the generated C code files \ # APP_OBJS is a (possibly empty) list of the object code\ # files that form the non-interface portion of\ # your application \ #\ # In the first three statements, the variables on the right \ # of the equal sign will be replaced with their corresponding \ # values when the makefile is automatically generated. \ #\ # $Date: 2003-06-04 14:49:20 $ $Revision: 1.1.1.1 $\ #########################################################################\ \ \ include ../../../local/default.mk\ \ \ CMAIN = $PJ_MAIN_SRC\ CINTERFACES = $PJ_INTERFACES_SRC\ EXEC = $PJ_EXECUTABLE\ EXECUTABLE = ../../exec/$(EXEC).exe\ \ MAIN = $(CMAIN:.c=.o)\ INTERFACES = $(CINTERFACES:.c=.o) \ \ APPL_OBJS = execute.o airmass.o batchform.o cb_list.o misc.o\ \ UX_DIR = ../../GraphLib/libsrc/uimx\ \ LINC = ../../incl\ \ UX_LIBPATH = -L../../lib\ \ X_CFLAGS =\ MOTIF_CFLAGS =\ \ CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\ -I$(LINC) -I$(INC) -I$(UX_DIR)/include \\ $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\ $(XMINC) $(X11INC)\ \ XOPEN_LIBS = \ \ # The following object files are provided to work around a motif bug.\ # They are not necessarily needed to compile your application.\ LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\ XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\ \ LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -ltw -lmidas \ LIBS = $(LIBDIR)/libmidas.a\ \ OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \ \ all: tmp_makefile $(EXECUTABLE) \ \ $(EXECUTABLE): $(OBJS) $(LIBS)\ $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\ $(STRIP) $(EXECUTABLE)\ @echo "done"\ \ clean:\ $(RM) $(OBJS)\ \ clean_exec:\ $(RM) $(EXECUTABLE)\ \ \ tmp_makefile: makefile\ sed -e 's/^MAIN.*//' \\ -e 's/^INTERFACES.*//' \\ -e 's/^CMAIN/MAIN/' \\ -e 's/^CINTERFACES/INTERFACES/' \\ -e 's/\([^^]\)\.c/\1\.o/g' \\ -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\ rm -f makefile\ mv tmp_makefile makefile\ \ \ \ \ \ \ *uxmake.PjEdited: 1 *xtmake.class: PJxtmake *xtmake.PjName: xtmake *xtmake.PjParent: XBatchred *xtmake.PjFileName: XBatchred.mk *xtmake.PjDate: 716919776 *xtmake.PjMode: 1