! UIMX ascii 2.0 key: 7380 *XIdent.class: Project *XIdent.PjName: XIdent *XIdent.PjDoMain: 0 *XIdent.PjDoMake: 0 *XIdent.PjWriteAll: 0 *XIdent.PjRunMake: 1 *XIdent.PjWriteCDir: /diskb/midas/test/gui/XIdent/src *XIdent.PjMode: 0 *ApplicWindow_PJinterface.class: PJinterface *ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface *ApplicWindow_PJinterface.PjSwName: ApplicWindow *ApplicWindow_PJinterface.PjParent: XIdent *ApplicWindow_PJinterface.PjFileName: ApplicWindow.i *ApplicWindow_PJinterface.PjShowFlag: 2 *ApplicWindow_PJinterface.PjDate: 807536618 *ApplicWindow_PJinterface.PjMode: 0 *ApplicWindow_PJinterface.PjCFileName: ApplicWindow.c *HelpShell_PJinterface.class: PJinterface *HelpShell_PJinterface.PjName: HelpShell_PJinterface *HelpShell_PJinterface.PjSwName: HelpShell *HelpShell_PJinterface.PjParent: XIdent *HelpShell_PJinterface.PjFileName: HelpShell.i *HelpShell_PJinterface.PjShowFlag: 0 *HelpShell_PJinterface.PjDate: 745238024 *HelpShell_PJinterface.PjMode: 0 *HelpShell_PJinterface.PjCFileName: HelpShell.c *uxmain.class: PJuxmain *uxmain.PjName: uxmain *uxmain.PjParent: XIdent *uxmain.PjFileName: XIdent.c *uxmain.PjDate: 745238024 *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:23 $ $Revision: 1.1.1.1 $ \ *-----------------------------------------------------------*/\ \ #ifdef XOPEN_CATALOG\ #include \ #endif\ \ #include \ \ \ /*----------------------------------------------\ * Insert application global declarations here\ *---------------------------------------------*/\ #include \ #include \ #include \ #include \ \ #include \ \ #include \ \ void InterruptHandler();\ \ 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\ *-------------------------------*/ \ \ $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); \ init_gmidas("XIDENT"); \ \ MonitorPid = atoi(argv[1]);\ \ read_params_long();\ if ( ! read_lincat_table() )\ exit(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: XIdent *xtmain.PjFileName: XIdent.c *xtmain.PjDate: 0 *xtmain.PjMode: -1 *uxmake.class: PJuxmake *uxmake.PjName: uxmake *uxmake.PjParent: XIdent *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:23 $ $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 = alloc.o applic.o misc.o spgrap.o splib.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 \\ -lagl3 -lidicl -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: XIdent *xtmake.PjFileName: XIdent.mk *xtmake.PjDate: 0 *xtmake.PjMode: -1