| 1 |
! UIMX ascii 2.0 key: 7380 |
| 2 |
|
| 3 |
*XIdent.class: Project |
| 4 |
*XIdent.PjName: XIdent |
| 5 |
*XIdent.PjDoMain: 0 |
| 6 |
*XIdent.PjDoMake: 0 |
| 7 |
*XIdent.PjWriteAll: 0 |
| 8 |
*XIdent.PjRunMake: 1 |
| 9 |
*XIdent.PjWriteCDir: /diskb/midas/test/gui/XIdent/src |
| 10 |
*XIdent.PjMode: 0 |
| 11 |
|
| 12 |
*ApplicWindow_PJinterface.class: PJinterface |
| 13 |
*ApplicWindow_PJinterface.PjName: ApplicWindow_PJinterface |
| 14 |
*ApplicWindow_PJinterface.PjSwName: ApplicWindow |
| 15 |
*ApplicWindow_PJinterface.PjParent: XIdent |
| 16 |
*ApplicWindow_PJinterface.PjFileName: ApplicWindow.i |
| 17 |
*ApplicWindow_PJinterface.PjShowFlag: 2 |
| 18 |
*ApplicWindow_PJinterface.PjDate: 807536618 |
| 19 |
*ApplicWindow_PJinterface.PjMode: 0 |
| 20 |
*ApplicWindow_PJinterface.PjCFileName: ApplicWindow.c |
| 21 |
|
| 22 |
*HelpShell_PJinterface.class: PJinterface |
| 23 |
*HelpShell_PJinterface.PjName: HelpShell_PJinterface |
| 24 |
*HelpShell_PJinterface.PjSwName: HelpShell |
| 25 |
*HelpShell_PJinterface.PjParent: XIdent |
| 26 |
*HelpShell_PJinterface.PjFileName: HelpShell.i |
| 27 |
*HelpShell_PJinterface.PjShowFlag: 0 |
| 28 |
*HelpShell_PJinterface.PjDate: 745238024 |
| 29 |
*HelpShell_PJinterface.PjMode: 0 |
| 30 |
*HelpShell_PJinterface.PjCFileName: HelpShell.c |
| 31 |
|
| 32 |
*uxmain.class: PJuxmain |
| 33 |
*uxmain.PjName: uxmain |
| 34 |
*uxmain.PjParent: XIdent |
| 35 |
*uxmain.PjFileName: XIdent.c |
| 36 |
*uxmain.PjDate: 745238024 |
| 37 |
*uxmain.PjMode: 0 |
| 38 |
*uxmain.PjBody: /*------------------------------------------------------------\ |
| 39 |
* This is the project main program file for Ux generated \ |
| 40 |
* code. You may add application dependent source code\ |
| 41 |
* at the appropriate places. \ |
| 42 |
* \ |
| 43 |
* Do not modify the statements preceded by the dollar\ |
| 44 |
* sign ($), these statements will be replaced with\ |
| 45 |
* the appropriate source code when the main program is\ |
| 46 |
* automatically generated. \ |
| 47 |
* \ |
| 48 |
* $Date: 2003-06-04 14:49:23 $ $Revision: 1.1.1.1 $ \ |
| 49 |
*-----------------------------------------------------------*/\ |
| 50 |
\ |
| 51 |
#ifdef XOPEN_CATALOG\ |
| 52 |
#include <locale.h>\ |
| 53 |
#endif\ |
| 54 |
\ |
| 55 |
#include <UxLib.h>\ |
| 56 |
\ |
| 57 |
\ |
| 58 |
/*----------------------------------------------\ |
| 59 |
* Insert application global declarations here\ |
| 60 |
*---------------------------------------------*/\ |
| 61 |
#include <gl_defs.h>\ |
| 62 |
#include <spec_defs.h>\ |
| 63 |
#include <main_defs.h>\ |
| 64 |
#include <main_decl.h>\ |
| 65 |
\ |
| 66 |
#include <signal.h>\ |
| 67 |
\ |
| 68 |
#include <StdResources.h>\ |
| 69 |
\ |
| 70 |
void InterruptHandler();\ |
| 71 |
\ |
| 72 |
main(argc,argv)\ |
| 73 |
int argc;\ |
| 74 |
char *argv[];\ |
| 75 |
{\ |
| 76 |
/*-----------------------------------------------------------\ |
| 77 |
* Declarations.\ |
| 78 |
* The default identifier - mainIface will only be declared \ |
| 79 |
* if the interface function is global and of type swidget. \ |
| 80 |
* To change the identifier to a different name, modify the\ |
| 81 |
* string mainIface in the file "main.dat". If "mainIface"\ |
| 82 |
* is declared, it will be used below where the return value \ |
| 83 |
* of PJ_INTERFACE_FUNCTION_CALL will be assigned to it.\ |
| 84 |
*-----------------------------------------------------------*/ \ |
| 85 |
\ |
| 86 |
$PJ_INTERFACE_RETVAL_TYPE\ |
| 87 |
\ |
| 88 |
/*--------------------------------\ |
| 89 |
* Interface function declaration\ |
| 90 |
*-------------------------------*/ \ |
| 91 |
\ |
| 92 |
$PJ_INTERFACE_FUNCTION_DECL\ |
| 93 |
$PJ_INTERFACE_FUNCTION_ARG_DECL\ |
| 94 |
\ |
| 95 |
/*---------------------\ |
| 96 |
* Initialize Program\ |
| 97 |
*--------------------*/\ |
| 98 |
\ |
| 99 |
#ifdef XOPEN_CATALOG\ |
| 100 |
setlocale(LC_ALL, "");\ |
| 101 |
#endif\ |
| 102 |
\ |
| 103 |
UxTopLevel = UxInitialize("$PJ_APP_CLASS_NAME", &argc, argv);\ |
| 104 |
\ |
| 105 |
/*------------------------------------------------------\ |
| 106 |
* Insert initialization code for your application here\ |
| 107 |
*-----------------------------------------------------*/\ |
| 108 |
\ |
| 109 |
SetResources(argc, argv); \ |
| 110 |
init_gmidas("XIDENT"); \ |
| 111 |
\ |
| 112 |
MonitorPid = atoi(argv[1]);\ |
| 113 |
\ |
| 114 |
read_params_long();\ |
| 115 |
if ( ! read_lincat_table() )\ |
| 116 |
exit(1);\ |
| 117 |
\ |
| 118 |
/*----------------------------------------------------------------\ |
| 119 |
* Create and popup the first window of the interface. The \ |
| 120 |
* return value can be used in the popdown or destroy functions.\ |
| 121 |
* The swidget return value of PJ_INTERFACE_FUNCTION_CALL will\ |
| 122 |
* be assigned to "mainIface" from PJ_INTERFACE_RETVAL_TYPE. \ |
| 123 |
*---------------------------------------------------------------*/\ |
| 124 |
\ |
| 125 |
$PJ_INTERFACE_FUNCTION_CALL\ |
| 126 |
$PJ_POPUP_CALL\ |
| 127 |
\ |
| 128 |
/*-------------------------\ |
| 129 |
* Enter the event loop \ |
| 130 |
*------------------------*/\ |
| 131 |
\ |
| 132 |
signal(SIGINT, SIG_IGN);\ |
| 133 |
signal(SIGQUIT, SIG_IGN);\ |
| 134 |
\ |
| 135 |
\ |
| 136 |
$PJ_EVENT_LOOP\ |
| 137 |
\ |
| 138 |
}\ |
| 139 |
|
| 140 |
*uxmain.PjExplicitEventLoop: {\ |
| 141 |
\ |
| 142 |
XEvent event;\ |
| 143 |
\ |
| 144 |
for (;;)\ |
| 145 |
{\ |
| 146 |
UxNextEvent(&event);\ |
| 147 |
\ |
| 148 |
switch (event.type)\ |
| 149 |
{\ |
| 150 |
\ |
| 151 |
/*----------------------------------------------------\ |
| 152 |
* Insert code here to handle any events that you do\ |
| 153 |
* not wish to be handled by the interface.\ |
| 154 |
*----------------------------------------------------*/\ |
| 155 |
\ |
| 156 |
default:\ |
| 157 |
UxDispatchEvent(&event);\ |
| 158 |
break;\ |
| 159 |
}\ |
| 160 |
}\ |
| 161 |
} |
| 162 |
*uxmain.PjEdited: 1 |
| 163 |
*uxmain.PjHasImplicitLoop: 1 |
| 164 |
*uxmain.PjHasExplicitLoop: 0 |
| 165 |
|
| 166 |
*xtmain.class: PJxtmain |
| 167 |
*xtmain.PjName: xtmain |
| 168 |
*xtmain.PjParent: XIdent |
| 169 |
*xtmain.PjFileName: XIdent.c |
| 170 |
*xtmain.PjDate: 0 |
| 171 |
*xtmain.PjMode: -1 |
| 172 |
|
| 173 |
*uxmake.class: PJuxmake |
| 174 |
*uxmake.PjName: uxmake |
| 175 |
*uxmake.PjParent: XIdent |
| 176 |
*uxmake.PjFileName: makefile |
| 177 |
*uxmake.PjDate: 0 |
| 178 |
*uxmake.PjMode: 0 |
| 179 |
*uxmake.PjBody: ########################################################################\ |
| 180 |
# \ |
| 181 |
# MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.\ |
| 182 |
#\ |
| 183 |
# EXECUTABLE is the name of the executable to be created \ |
| 184 |
# MAIN is the .c file containing your main() function\ |
| 185 |
# INTERFACES is a list of the generated C code files \ |
| 186 |
# APP_OBJS is a (possibly empty) list of the object code\ |
| 187 |
# files that form the non-interface portion of\ |
| 188 |
# your application \ |
| 189 |
#\ |
| 190 |
# In the first three statements, the variables on the right \ |
| 191 |
# of the equal sign will be replaced with their corresponding \ |
| 192 |
# values when the makefile is automatically generated. \ |
| 193 |
#\ |
| 194 |
# $Date: 2003-06-04 14:49:23 $ $Revision: 1.1.1.1 $\ |
| 195 |
#########################################################################\ |
| 196 |
\ |
| 197 |
\ |
| 198 |
include ../../../local/default.mk\ |
| 199 |
\ |
| 200 |
CMAIN = $PJ_MAIN_SRC\ |
| 201 |
CINTERFACES = $PJ_INTERFACES_SRC\ |
| 202 |
EXEC = $PJ_EXECUTABLE\ |
| 203 |
EXECUTABLE = ../../exec/$(EXEC).exe\ |
| 204 |
\ |
| 205 |
MAIN = $(CMAIN:.c=.o)\ |
| 206 |
INTERFACES = $(CINTERFACES:.c=.o)\ |
| 207 |
\ |
| 208 |
APPL_OBJS = alloc.o applic.o misc.o spgrap.o splib.o\ |
| 209 |
UX_DIR = ../../GraphLib/libsrc/uimx\ |
| 210 |
LINC = ../../incl\ |
| 211 |
\ |
| 212 |
UX_LIBPATH = -L../../lib\ |
| 213 |
\ |
| 214 |
X_CFLAGS =\ |
| 215 |
MOTIF_CFLAGS =\ |
| 216 |
\ |
| 217 |
CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \\ |
| 218 |
-I$(LINC) -I$(INC) -I$(UX_DIR)/include \\ |
| 219 |
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \\ |
| 220 |
$(XMINC) $(X11INC)\ |
| 221 |
\ |
| 222 |
XOPEN_LIBS = \ |
| 223 |
\ |
| 224 |
# The following object files are provided to work around a motif bug.\ |
| 225 |
# They are not necessarily needed to compile your application.\ |
| 226 |
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)\ |
| 227 |
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)\ |
| 228 |
\ |
| 229 |
LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -ltw \\ |
| 230 |
-lagl3 -lidicl -lmidas \ |
| 231 |
LIBS = $(LIBDIR)/libmidas.a\ |
| 232 |
\ |
| 233 |
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) \ |
| 234 |
\ |
| 235 |
all: tmp_makefile $(EXECUTABLE) \ |
| 236 |
\ |
| 237 |
$(EXECUTABLE): $(OBJS) $(LIBS)\ |
| 238 |
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) -o $(EXECUTABLE)\ |
| 239 |
$(STRIP) $(EXECUTABLE)\ |
| 240 |
@echo "done"\ |
| 241 |
\ |
| 242 |
clean:\ |
| 243 |
$(RM) $(OBJS)\ |
| 244 |
\ |
| 245 |
clean_exec:\ |
| 246 |
$(RM) $(EXECUTABLE)\ |
| 247 |
\ |
| 248 |
\ |
| 249 |
tmp_makefile: makefile\ |
| 250 |
sed -e 's/^MAIN.*//' \\ |
| 251 |
-e 's/^INTERFACES.*//' \\ |
| 252 |
-e 's/^CMAIN/MAIN/' \\ |
| 253 |
-e 's/^CINTERFACES/INTERFACES/' \\ |
| 254 |
-e 's/\([^^]\)\.c/\1\.o/g' \\ |
| 255 |
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile\ |
| 256 |
rm -f makefile\ |
| 257 |
mv tmp_makefile makefile\ |
| 258 |
\ |
| 259 |
\ |
| 260 |
\ |
| 261 |
\ |
| 262 |
\ |
| 263 |
\ |
| 264 |
\ |
| 265 |
|
| 266 |
*uxmake.PjEdited: 1 |
| 267 |
|
| 268 |
*xtmake.class: PJxtmake |
| 269 |
*xtmake.PjName: xtmake |
| 270 |
*xtmake.PjParent: XIdent |
| 271 |
*xtmake.PjFileName: XIdent.mk |
| 272 |
*xtmake.PjDate: 0 |
| 273 |
*xtmake.PjMode: -1 |