! UIMX ascii 2.0 key: 1786 *XAlice.class: Project *XAlice.PjName: XAlice *XAlice.PjDoMain: 1 *XAlice.PjDoMake: 0 *XAlice.PjWriteAll: 0 *XAlice.PjRunMake: 0 *XAlice.PjStartupIface: AliceShell *XAlice.PjWriteCDir: /midas/93N08/gui/XAlice/src *XAlice.PjMode: 0 *XAlice.PjAppClassName: XAlice *sh_list1_PJinterface.class: PJinterface *sh_list1_PJinterface.PjName: sh_list1_PJinterface *sh_list1_PJinterface.PjSwName: sh_list1 *sh_list1_PJinterface.PjParent: XAlice *sh_list1_PJinterface.PjFileName: sh_list1.i *sh_list1_PJinterface.PjShowFlag: 0 *sh_list1_PJinterface.PjDate: 755556621 *sh_list1_PJinterface.PjMode: 0 *sh_list1_PJinterface.PjCFileName: sh_list1.c *StatShell_PJinterface.class: PJinterface *StatShell_PJinterface.PjName: StatShell_PJinterface *StatShell_PJinterface.PjSwName: StatShell *StatShell_PJinterface.PjParent: XAlice *StatShell_PJinterface.PjFileName: StatShell.i *StatShell_PJinterface.PjShowFlag: 0 *StatShell_PJinterface.PjDate: 755382390 *StatShell_PJinterface.PjMode: 0 *StatShell_PJinterface.PjCFileName: StatShell.c *MessageShell_PJinterface.class: PJinterface *MessageShell_PJinterface.PjName: MessageShell_PJinterface *MessageShell_PJinterface.PjSwName: MessageShell *MessageShell_PJinterface.PjParent: XAlice *MessageShell_PJinterface.PjFileName: MessageShell.i *MessageShell_PJinterface.PjShowFlag: 0 *MessageShell_PJinterface.PjDate: 755382391 *MessageShell_PJinterface.PjMode: 0 *MessageShell_PJinterface.PjCFileName: MessageShell.c *LabelOptions_PJinterface.class: PJinterface *LabelOptions_PJinterface.PjName: LabelOptions_PJinterface *LabelOptions_PJinterface.PjSwName: LabelOptions *LabelOptions_PJinterface.PjParent: XAlice *LabelOptions_PJinterface.PjFileName: LabelOptions.i *LabelOptions_PJinterface.PjShowFlag: 0 *LabelOptions_PJinterface.PjDate: 755382391 *LabelOptions_PJinterface.PjMode: 0 *LabelOptions_PJinterface.PjCFileName: LabelOptions.c *LabelCursor_PJinterface.class: PJinterface *LabelCursor_PJinterface.PjName: LabelCursor_PJinterface *LabelCursor_PJinterface.PjSwName: LabelCursor *LabelCursor_PJinterface.PjParent: XAlice *LabelCursor_PJinterface.PjFileName: LabelCursor.i *LabelCursor_PJinterface.PjShowFlag: 2 *LabelCursor_PJinterface.PjDate: 755878601 *LabelCursor_PJinterface.PjMode: 0 *LabelCursor_PJinterface.PjCFileName: LabelCursor.c *Savefiles_PJinterface.class: PJinterface *Savefiles_PJinterface.PjName: Savefiles_PJinterface *Savefiles_PJinterface.PjSwName: Savefiles *Savefiles_PJinterface.PjParent: XAlice *Savefiles_PJinterface.PjFileName: Savefiles.i *Savefiles_PJinterface.PjShowFlag: 0 *Savefiles_PJinterface.PjDate: 755382392 *Savefiles_PJinterface.PjMode: 0 *Savefiles_PJinterface.PjCFileName: Savefiles.c *AliceShell_PJinterface.class: PJinterface *AliceShell_PJinterface.PjName: AliceShell_PJinterface *AliceShell_PJinterface.PjSwName: AliceShell *AliceShell_PJinterface.PjParent: XAlice *AliceShell_PJinterface.PjFileName: AliceShell.i *AliceShell_PJinterface.PjShowFlag: 2 *AliceShell_PJinterface.PjDate: 755881145 *AliceShell_PJinterface.PjMode: 0 *AliceShell_PJinterface.PjCFileName: AliceShell.c *RebinShell_PJinterface.class: PJinterface *RebinShell_PJinterface.PjName: RebinShell_PJinterface *RebinShell_PJinterface.PjSwName: RebinShell *RebinShell_PJinterface.PjParent: XAlice *RebinShell_PJinterface.PjFileName: RebinShell.i *RebinShell_PJinterface.PjShowFlag: 0 *RebinShell_PJinterface.PjDate: 755382395 *RebinShell_PJinterface.PjMode: 0 *RebinShell_PJinterface.PjCFileName: RebinShell.c *SaveAsShell_PJinterface.class: PJinterface *SaveAsShell_PJinterface.PjName: SaveAsShell_PJinterface *SaveAsShell_PJinterface.PjSwName: SaveAsShell *SaveAsShell_PJinterface.PjParent: XAlice *SaveAsShell_PJinterface.PjFileName: SaveAsShell.i *SaveAsShell_PJinterface.PjShowFlag: 0 *SaveAsShell_PJinterface.PjDate: 755875495 *SaveAsShell_PJinterface.PjMode: 0 *SaveAsShell_PJinterface.PjCFileName: SaveAsShell.c *HelpTopLevel_PJinterface.class: PJinterface *HelpTopLevel_PJinterface.PjName: HelpTopLevel_PJinterface *HelpTopLevel_PJinterface.PjSwName: HelpTopLevel *HelpTopLevel_PJinterface.PjParent: XAlice *HelpTopLevel_PJinterface.PjFileName: HelpTopLevel.i *HelpTopLevel_PJinterface.PjShowFlag: 0 *HelpTopLevel_PJinterface.PjDate: 755382395 *HelpTopLevel_PJinterface.PjMode: 0 *HelpTopLevel_PJinterface.PjCFileName: HelpTopLevel.c *GaussShell_PJinterface.class: PJinterface *GaussShell_PJinterface.PjName: GaussShell_PJinterface *GaussShell_PJinterface.PjSwName: GaussShell *GaussShell_PJinterface.PjParent: XAlice *GaussShell_PJinterface.PjFileName: GaussShell.i *GaussShell_PJinterface.PjShowFlag: 0 *GaussShell_PJinterface.PjDate: 755878063 *GaussShell_PJinterface.PjMode: 0 *GaussShell_PJinterface.PjCFileName: GaussShell.c *OverPlotShell_PJinterface.class: PJinterface *OverPlotShell_PJinterface.PjName: OverPlotShell_PJinterface *OverPlotShell_PJinterface.PjSwName: OverPlotShell *OverPlotShell_PJinterface.PjParent: XAlice *OverPlotShell_PJinterface.PjFileName: OverPlotShell.i *OverPlotShell_PJinterface.PjShowFlag: 0 *OverPlotShell_PJinterface.PjDate: 755556181 *OverPlotShell_PJinterface.PjMode: 0 *OverPlotShell_PJinterface.PjCFileName: OverPlotShell.c *Printer_PJinterface.class: PJinterface *Printer_PJinterface.PjName: Printer_PJinterface *Printer_PJinterface.PjSwName: Printer *Printer_PJinterface.PjParent: XAlice *Printer_PJinterface.PjFileName: Printer.i *Printer_PJinterface.PjShowFlag: 0 *Printer_PJinterface.PjDate: 755876050 *Printer_PJinterface.PjMode: 0 *Printer_PJinterface.PjCFileName: Printer.c *uxmain.class: PJuxmain *uxmain.PjName: uxmain *uxmain.PjParent: XAlice *uxmain.PjFileName: XAlice.c *uxmain.PjDate: 755881145 *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:19 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/\ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ \ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ swidget GaussShell;\ swidget ListPopup;\ #include \ #include \ #include "procedures.c"\ 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.\ *-----------------------------------------------------------*/ \ \ $PJ_INTERFACE_RETVAL_TYPE\ \ /*--------------------------------\ * Interface function declaration\ *-------------------------------*/ \ extern swidget create_GaussShell();\ extern swidget create_topLevelShell2();\ extern swidget create_sh_list1();\ $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\ *-------------------------------------------------------*/\ \ init_alice(); \ MonitorPid = atoi(argv[1]); \ \ /*----------------------------------------------------------------\ * 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); \ $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: XAlice *xtmain.PjFileName: XAlice.c *xtmain.PjDate: 716824487 *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:19 $ $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\ *---------------------------------------------*/\ swidget bullet;\ int STEP_TEXT_MOD;\ 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\ *--------------------------------*/ \ extern swidget create_bullet1();\ extern swidget create_topLevelShell2();\ \ $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 \ *------------------------------------------------------*/\ \ init_alice();\ \ /*----------------------------------------------------------------\ * 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\ \ }\ *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: XAlice *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:19 $ $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 = aliceagl.o misc.o \ UX_DIR = ../../GraphLib/libsrc/$(UIMX)\ \ LINC = ../../incl\ GINC = ../incl\ \ UX_LIBPATH = -L../../lib\ \ X_CFLAGS =\ MOTIF_CFLAGS =\ \ CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\ -I$(LINC) -I$(INC) -I$(GINC) -I$(UX_DIR)/include \\ $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\ $(XMINC) $(X11INC)\ \ # 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) -lmgauss -luimx -lcom -L$(LIBDIR) \\ -lagl3 -lidicl -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: XAlice *xtmake.PjFileName: XAlice.mk *xtmake.PjDate: 716824487 *xtmake.PjMode: 1 *xtmake.PjBody: #########################################################################\ #\ # MAKEFILE FOR STAND-ALONE XT 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.\ #\ # This template is used for makefiles which do not reference \ # the Ux runtime library.\ #\ # $Date: 2003-06-04 14:49:19 $ $Revision: 1.1.1.1 $\ #########################################################################\ \ EXECUTABLE = $PJ_EXECUTABLE\ MAIN = $PJ_MAIN_SRC\ INTERFACES = $PJ_INTERFACES_SRC\ APPL_OBJS = UxXt.o aliceagl.o\ UX_DIR = /usr/architect2.0\ UX_LIBPATH = $(UX_DIR)/lib\ X_LIBS = -lXm -lXt -lX11\ \ X_LIBPATH = -L/usr/lib/X11R4\ MOTIF_LIBPATH = -L/usr/lib/Motif1.1\ X_CFLAGS = -I/usr/include/X11R4\ MOTIF_CFLAGS = -I/usr/include/Motif1.1\ \ # flags for HP-MC680*00 machines (series 300, 400)\ S300_FLAGS = -Wc,-Ns10000,-Np300,-Nw500 -Wp,-H400000\ \ # flags for HP-PA machines (series 600, 700, 800)\ S800_FLAGS = -Wp,-H400000 -z\ \ \ \ # uncomment the following line for ANSI-C code generation\ #PROTOTYPES = -Aa -D_HPUX_SOURCE\ # uncomment the following line for K&R C code generation\ PROTOTYPES = -D_NO_PROTO\ CFLAGS = -DSYSV $(PROTOTYPES) -DXOPEN_CATALOG \\ $(X_CFLAGS) $(MOTIF_CFLAGS) \\ $(S800_FLAGS)\ LIBPATH = $(X_LIBPATH) $(MOTIF_LIBPATH)\ LIBS = $(X_LIBS) -lPW -lm\ \ \ OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)\ \ \ \ \ \ $(EXECUTABLE): $(OBJS)\ $(CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXECUTABLE)\ @echo "done"\ *xtmake.PjEdited: 1