xtv-1.1.orig/ 40755 1750 1750 0 6406173656 12774 5ustar jkominekjkominekxtv-1.1.orig/Grab.c100600 1750 1750 11162 6401341430 14077 0ustar jkominekjkominek/* ** Grab.c for XmtdsGrab widget in . ** ** Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr ** Login ** ** Started on Mon May 16 22:24:08 1994 vr ** Last update Tue Apr 4 02:31:06 1995 mtds */ #include #include #include #include "XmtdsI.h" #include "GrabP.h" static void Initialize(); static void SetValues(); static void Redisplay(); static void Destroy(); static void timer(); static void copy(); static XtResource resources[] = { {XmtdsNdisplayName, XmtdsCDisplayName,XtRString, sizeof (char *), XtOffset(XmtdsGrabWidget, xmtds_grab.display_name), XtRString, NULL}, {XmtdsNinterval, XmtdsCInterval, XtRInt, sizeof (int), XtOffset(XmtdsGrabWidget, xmtds_grab.interval), XtRString, "200"} }; XmtdsGrabClassRec xmtdsGrabClassRec = { { /* core */ (WidgetClass)&widgetClassRec, /* superclass */ "XmtdsGrab", /* class name */ sizeof(XmtdsGrabRec), /* size */ NULL, /* class initialize */ NULL, /* class_part_init */ FALSE, /* class_inited */ Initialize, /* initialize */ NULL, /* initialize_hook */ XtInheritRealize, /* realize */ NULL, /* actions */ 0, /* num_actions */ resources, /* resources */ XtNumber(resources), /* resource_count */ NULLQUARK, /* xrm_class */ TRUE, /* compress_motion */ TRUE, /* compress_exposure */ TRUE, /* compress_enterleave */ FALSE, /* visible_interest */ Destroy, /* destroy */ NULL, /* resize */ Redisplay, /* expose */ NULL, /* set_values */ NULL, /* set_values_hook */ XtInheritSetValuesAlmost, /* set_values_almost */ NULL, /* get_values_hook */ NULL, /* accept_focus */ XtVersion, /* version */ NULL, /* callback_private */ NULL, /* tm_table */ XtInheritQueryGeometry, /* query_geometry */ XtInheritDisplayAccelerator, /* display_accelerator */ NULL, /* extension */ }, /* xmtds_grab */ { 0, /* empty */ } }; WidgetClass xmtdsGrabWidgetClass = (WidgetClass)&xmtdsGrabClassRec; static void Initialize(request,new,args,num_args) XmtdsGrabWidget request; XmtdsGrabWidget new; ArgList args; Cardinal *num_args; { XGCValues xgcv; if ((NEW_GRAB.display = XOpenDisplay((unsigned char *)NEW_GRAB.display_name)) == NULL) { XtWarning("can't open display"); exit(-1); } xgcv.function = GXcopy; NEW_GRAB.gc = XCreateGC(XtDisplay(new), W_ROOT(new), GCFunction, &xgcv); NEW_GRAB.xt_interval_id = XtAppAddTimeOut(XtWidgetToApplicationContext((Widget)new), NEW_GRAB.interval, (XtTimerCallbackProc)timer, (void *)new); NEW_CORE.width = DisplayWidth(NEW_GRAB.display,DefaultScreen(NEW_GRAB.display)); NEW_CORE.height = DisplayHeight(NEW_GRAB.display,DefaultScreen(NEW_GRAB.display)); } static void SetValues(old,request,new,args,num_args) XmtdsGrabWidget old; XmtdsGrabWidget request; XmtdsGrabWidget new; ArgList args; Cardinal *num_args; { /* TODO */ } static void Redisplay(w,event,region) XmtdsGrabWidget w; XExposeEvent *event; Region region; { copy(w,event->x,event->y,event->width,event->height); } static void Destroy(w) XmtdsGrabWidget w; { XCloseDisplay(GRAB.display); XtRemoveTimeOut(GRAB.xt_interval_id); } static void timer(w,id) XmtdsGrabWidget w; XtIntervalId *id; { Dimension width; Dimension height; #ifdef SYNC XSync(XtDisplay(w),FALSE); #endif /* SYNC */ XtVaGetValues(XtParent(w), XtNwidth, &width, XtNheight, &height, NULL); copy(w,ABS(CORE.x),ABS(CORE.y),width,height); GRAB.xt_interval_id = XtAppAddTimeOut(XtWidgetToApplicationContext((Widget)w), GRAB.interval, timer, (void *)w); } static void copy(w,x,y,width,height) XmtdsGrabWidget w; Position x; Position y; Dimension width; Dimension height; { XImage *image; Dimension dpy_width; Dimension dpy_height; dpy_width = DisplayWidth(GRAB.display,DefaultScreen(GRAB.display)); dpy_height = DisplayHeight(GRAB.display,DefaultScreen(GRAB.display)); if ((x + width) > dpy_width) width = dpy_width - x; if ((y + height) > dpy_height) height = dpy_height - y; image = XGetImage(GRAB.display, DefaultRootWindow(GRAB.display), x, y, width, height, AllPlanes, ZPixmap); XPutImage(XtDisplay(w), XtWindow(w), GRAB.gc, image, 0, 0, x, y, width, height); XDestroyImage(image); } xtv-1.1.orig/Grab.h100600 1750 1750 767 6401337510 14061 0ustar jkominekjkominek/* ** Grab.h for XmtdsGrab widget in . ** ** Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr ** Login ** ** Started on Mon May 16 22:17:04 1994 vr ** Last update Tue Nov 29 01:22:05 1994 hydrix */ #ifndef _XMTDSGRAB_H_ #define _XMTDSGRAB_H_ 1 #include #include "Xmtds.h" extern WidgetClass xmtdsGrabWidgetClass; typedef struct _XmtdsGrabClassRec *XmtdsGrabWidgetClass; typedef struct _XmtdsGrabRec *XmtdsGrabWidget; #endif /* _XMTDSGRAB_H_ */ xtv-1.1.orig/GrabP.h100600 1750 1750 1735 6401337510 14215 0ustar jkominekjkominek/* ** GrabP.h for XmtdsGrab widget in . ** ** Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr ** Login ** ** Started on Mon May 16 22:12:13 1994 vr ** Last update Tue Nov 29 02:26:04 1994 hydrix */ #ifndef _XMTDSGRABP_H_ #define _XMTDSGRABP_H_ 1 #include #include "Grab.h" typedef struct { int empty; } XmtdsGrabClassPart; typedef struct _XmtdsGrabClassRec { CoreClassPart core_class; XmtdsGrabClassPart xmtds_grab_class; } XmtdsGrabClassRec; extern XmtdsGrabClassRec xmtdsGrabClassRec; typedef struct { /* resources */ String *display_name; int interval; /* private state */ Display *display; GC gc; XtIntervalId xt_interval_id; } XmtdsGrabPart; typedef struct _XmtdsGrabRec { CorePart core; XmtdsGrabPart xmtds_grab; } XmtdsGrabRec; #define CORE (w->core) #define NEW_CORE (new->core) #define GRAB (w->xmtds_grab) #define NEW_GRAB (new->xmtds_grab) #endif /* _XMTDSGRABP_H_ */ xtv-1.1.orig/Imakefile100600 1750 1750 666 6401337510 14644 0ustar jkominekjkominek# # Imakefile for xtetris in . # # Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr # Login # # Started on Sat Jun 25 15:43:45 1994 vr # Last update Tue Apr 4 02:11:36 1995 mtds # SRCS = xtv.c Grab.c OBJS = xtv.o Grab.o CDEBUGFLAGS = -g DEPLIBS = DEFINES = LOCAL_LIBRARIES = -lXaw -lXext -lXmu -lXt -lX11 ComplexProgramTarget(xtv) InstallAppDefaults(XTv) xtv-1.1.orig/Makefile100600 1750 1750 22057 6401337547 14543 0ustar jkominekjkominek#!smake # Makefile generated by imake - do not edit! # $XConsortium: imake.c,v 1.55 91/01/04 19:56:26 gildea Exp $ # # The cpp used on this machine replaces all newlines and multiple tabs and # spaces in a macro expansion with a single space. Imake tries to compensate # for this, but is not always successful. # ########################################################################### # Makefile generated from "Imake.tmpl" and # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $ # # Platform-specific parameters may be set in the appropriate .cf # configuration files. Site-wide parameters may be set in the file # site.def. Full rebuilds are recommended if any parameters are changed. # # If your C preprocessor doesn't define any unique symbols, you'll need # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing # "make Makefile", "make Makefiles", or "make World"). # # If you absolutely can't get imake to work, you'll need to set the # variables at the top of each Makefile as well as the dependencies at the # bottom (makedepend will do this automatically). # ########################################################################### # platform-specific configuration parameters - edit sgi.cf to change CRT1 = /usr/lib/crt1.o CRTN = /usr/lib/crtn.o ########################################################################### # site-specific configuration parameters - edit site.def to change # site: $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $ OPTIMIZER = -O2 SHELL = /bin/sh TOP = . CURRENT_DIR = . AR = ar scq BOOTSTRAPCFLAGS = "$(OPTIMIZER)" CC = cc COMPRESS = compress CPP = /lib/cpp $(STD_CPP_DEFINES) PREPROCESSCMD = cc -E $(STD_CPP_DEFINES) INSTALL = bsdinst.sh LD = ld LINT = lint LINTLIBFLAG = -o LINTOPTS = -ax LN = ln -s MV = mv CP = cp RANLIB = /bin/true RANLIBINSTFLAGS = RM = rm -f VENDOR_INCLUDES = STD_INCLUDES = STD_CPP_DEFINES = -DSYSV STD_DEFINES = -DSYSV -DMALLOC_0_RETURNS_NULL EXTRA_LOAD_FLAGS = EXTRA_LIBRARIES = -lsun -lmalloc -lc_s TAGS = ctags SHAREDCODEDEF = -DSHAREDCODE SHLIBDEF = -DATTSHAREDLIB PROTO_DEFINES = -DFUNCPROTO -DNARROWPROTO INSTPGMFLAGS = -s INSTBINFLAGS = -m 0755 INSTUIDFLAGS = -m 4755 INSTLIBFLAGS = -m 0664 INSTINCFLAGS = -m 0444 INSTMANFLAGS = -m 0444 INSTDATFLAGS = -m 0444 INSTKMEMFLAGS = -m 2755 -g sys DESTDIR = TOP_INCLUDES = -I$(INCROOT) CDEBUGFLAGS = $(OPTIMIZER) CCOPTIONS = -prototypes -cckr -float COMPATFLAGS = ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(VENDOR_INCLUDES) ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS) CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) LDCOMBINEFLAGS = -r MACROFILE = sgi.cf RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut IMAKE_DEFINES = IRULESRC = $(CONFIGDIR) IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \ $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \ $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES) ########################################################################### # X Window System Build Parameters # $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $ ########################################################################### # X Window System make variables; this need to be coordinated with rules # $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $ PATHSEP = / USRLIBDIR = $(DESTDIR)/usr/lib BINDIR = $(DESTDIR)/usr/bin/X11 INCROOT = $(DESTDIR)/usr/include BUILDINCROOT = $(TOP) BUILDINCDIR = $(BUILDINCROOT)/X11 BUILDINCTOP = .. INCDIR = $(INCROOT)/X11 ADMDIR = $(DESTDIR)/usr/adm LIBDIR = $(USRLIBDIR)/X11 CONFIGDIR = $(LIBDIR)/config LINTLIBDIR = $(USRLIBDIR)/lint FONTDIR = $(LIBDIR)/fonts XINITDIR = $(LIBDIR)/xinit XDMDIR = $(LIBDIR)/xdm AWMDIR = $(LIBDIR)/awm TWMDIR = $(LIBDIR)/twm GWMDIR = $(LIBDIR)/gwm MANPATH = $(DESTDIR)/usr/man MANSOURCEPATH = $(MANPATH)/man MANDIR = $(MANSOURCEPATH)n LIBMANDIR = $(MANSOURCEPATH)3 XAPPLOADDIR = $(LIBDIR)/app-defaults FONTCFLAGS = -t INSTAPPFLAGS = $(INSTDATFLAGS) IMAKE = imake DEPEND = makedepend RGB = rgb FONTC = bdftopcf MKFONTDIR = mkfontdir MKDIRHIER = mkdir -p CONFIGSRC = $(TOP)/config CLIENTSRC = $(TOP)/clients DEMOSRC = $(TOP)/demos LIBSRC = $(TOP)/lib FONTSRC = $(TOP)/fonts.pcf INCLUDESRC = $(TOP)/X11 SERVERSRC = $(TOP)/server UTILSRC = $(TOP)/util SCRIPTSRC = $(UTILSRC)/scripts EXAMPLESRC = $(TOP)/examples CONTRIBSRC = $(TOP)/../contrib DOCSRC = $(TOP)/doc RGBSRC = $(TOP)/rgb DEPENDSRC = $(UTILSRC)/makedepend IMAKESRC = $(CONFIGSRC) XAUTHSRC = $(LIBSRC)/Xau XLIBSRC = $(LIBSRC)/X XMUSRC = $(LIBSRC)/Xmu TOOLKITSRC = $(LIBSRC)/Xt AWIDGETSRC = $(LIBSRC)/Xaw OLDXLIBSRC = $(LIBSRC)/oldX XDMCPLIBSRC = $(LIBSRC)/Xdmcp XILIBSRC = $(EXTENSIONSRC)/lib/xinput BDFTOSNFSRC = $(FONTSRC)/tools/bdftosnf BDFTOPCFSRC = $(FONTSRC)/tools/bdftopcf MKFONTDIRSRC = $(FONTSRC)/tools/mkfontdir EXTENSIONSRC = $(TOP)/extensions DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a EXTENSIONLIB = -lXext DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11_s.a XLIB = $(EXTENSIONLIB) -lX11_s DEPXAUTHLIB = $(USRLIBDIR)/libXau.a XAUTHLIB = -lXau DEPXMULIB = $(USRLIBDIR)/libXmu.a XMULIB = -lXmu DEPOLDXLIB = $(USRLIBDIR)/liboldX.a OLDXLIB = -loldX DEPXTOOLLIB = $(USRLIBDIR)/libXt_s.a XTOOLLIB = -lXt_s DEPXAWLIB = $(USRLIBDIR)/libXaw.a XAWLIB = -lXaw DEPXILIB = $(USRLIBDIR)/libXi.a XILIB = -lXi LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) DEPLIBS1 = $(DEPLIBS) DEPLIBS2 = $(DEPLIBS) DEPLIBS3 = $(DEPLIBS) ########################################################################### # Imake rules for building libraries, programs, scripts, and data files # rules: $XConsortium: Imake.rules,v 1.70 90/05/04 16:57:30 keith Exp $ ########################################################################### # start of Imakefile # # Imakefile for xtetris in . # # Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr # Login # # Started on Sat Jun 25 15:43:45 1994 vr # Last update Tue Apr 4 02:11:36 1995 mtds # SRCS = xtv.c Grab.c OBJS = xtv.o Grab.o CDEBUGFLAGS = -g DEPLIBS = DEFINES = LOCAL_LIBRARIES = -lXaw -lXext -lXmu -lXt -lX11 PROGRAM = xtv all:: xtv xtv: $(OBJS) $(DEPLIBS) $(RM) $@ ; \ $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) install:: xtv $(INSTALL) -c $(INSTPGMFLAGS) $(INSTALLFLAGS) xtv $(BINDIR) install.man:: xtv.man $(INSTALL) -c $(INSTMANFLAGS) xtv.man $(MANDIR)/xtv.n depend:: $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS) lint: $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS) lint1: $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS) clean:: $(RM) $(PROGRAM) install:: XTv.ad $(INSTALL) -c $(INSTAPPFLAGS) XTv.ad $(XAPPLOADDIR)/XTv ########################################################################### # common rules for all Makefiles - do not edit emptyrule:: clean:: $(RM_CMD) \#* Makefile:: -@if [ -f Makefile ]; then \ echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ else : ; fi ; \ $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) tags:: $(TAGS) -w *.[ch] $(TAGS) -xw *.[ch] > TAGS ########################################################################### # empty rules for directories that do not have SUBDIRS - do not edit install:: @echo "install in $(CURRENT_DIR) done" install.man:: @echo "install.man in $(CURRENT_DIR) done" Makefiles:: includes:: ########################################################################### # dependencies generated by makedepend xtv-1.1.orig/TODO100600 1750 1750 206 6406173245 13521 0ustar jkominekjkominek* A man page. * Make the "Grab" widget grabbing the colormap. * Make the "Grab" widget adaptating to the depth of the remote display. xtv-1.1.orig/Xmtds.h100600 1750 1750 3232 6401337510 14313 0ustar jkominekjkominek/* ** Xmtds.h for Xmtds ** ** Made by Hydrix ** Login ** ** Started on Mon Dec 5 22:57:09 1994 hydrix ** Last update Mon Dec 5 23:00:45 1994 hydrix */ #ifndef __XMTDS_H__ #define __XMTDS_H__ 1 #define XmtdsCBackground "Background" #define XmtdsCBlockHeight "BlockHeight" #define XmtdsCBlockWidth "BlockWidth" #define XmtdsCCallback "Callback" #define XmtdsCColorList "ColorList" #define XmtdsCComm "Comm" #define XmtdsCDisplayName "DisplayName" #define XmtdsCFd "Fd" #define XmtdsCForeground "Foreground" #define XmtdsCGameHeight "GameHeight" #define XmtdsCGameWidth "GameWidth" #define XmtdsCInterval "Interval" #define XmtdsCPixHeight "PixHeight" #define XmtdsCPixWidth "PixWidth" #define XmtdsCProgram "Program" #define XmtdsCRasterHeight "RasterHeight" #define XmtdsCRasterWidth "RasterWidth" #define XmtdsCShadowColor "ShadowColor" #define XmtdsCSlave "Slave" #define XmtdsCUserData "UserData" #define XmtdsNbackground "background" #define XmtdsNblockHeight "blockHeight" #define XmtdsNblockWidth "blockWidth" #define XmtdsNcolorList "colorList" #define XmtdsNcomm "comm" #define XmtdsNdisplayName "displayName" #define XmtdsNfd "fd" #define XmtdsNforeground "foreground" #define XmtdsNgameHeight "gameHeight" #define XmtdsNgameWidth "gameWidth" #define XmtdsNinterval "interval" #define XmtdsNpixHeight "pixHeight" #define XmtdsNpixWidth "pixWidth" #define XmtdsNprogram "program" #define XmtdsNrasterHeight "rasterHeight" #define XmtdsNrasterWidth "rasterWidth" #define XmtdsNscoreCallback "scoreCallback" #define XmtdsNshadowColor "shadowColor" #define XmtdsNslave "slave" #define XmtdsNuserData "userData" #endif /* __XMTDS_H__ */ xtv-1.1.orig/XmtdsI.h100600 1750 1750 3321 6401337513 14426 0ustar jkominekjkominek/* ** XmtdsI.h for Xmtds ** ** Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr) ** Login ** ** Started on Thu Jan 12 23:27:08 1995 mtds ** Last update Thu Jan 12 23:37:46 1995 mtds */ #ifndef __XMTDSI_H__ #define __XMTDSI_H__ 1 #include #include void *malloc(); void *realloc(); #define EXIT_FAILURE exit(255) #define EXIT_SUCCEED exit(0) #define BUF_SIZE 512 #define SYSCALL_ERROR(syscall) {perror(syscall);fprintf(stderr,"%s %d\n",\ __FILE__,__LINE__);\ EXIT_FAILURE;} #define MALLOC(ptr,size,comm) {if (((ptr) = malloc(size)) == NULL)\ {perror("malloc");\ printf("File %s Line %d : %s\n",\ __FILE__,__LINE__,comm);\ EXIT_FAILURE;}} #define REALLOC(ptr,size,comm) {if (((ptr) = realloc((ptr),(size))) == NULL)\ {perror("realloc");\ printf("File %s Line %d : %s\n",\ __FILE__,__LINE__,comm);\ EXIT_FAILURE;}} /* Xlib */ #define LOOKUP_STRING_BUFSIZ 512 #define XFS_WIDTH(xfs) (((xfs)->max_bounds).width) #define XFS_HEIGHT(xfs) ((xfs)->descent+(xfs)->ascent) #define XFS_DESCENT(xfs) ((xfs)->descent) #define XFS_FID(xfs) ((xfs)->fid) /* Xtoolkit */ #define W_SCREEN(w) DefaultScreen(XtDisplay(w)) #define W_DEPTH(w) DefaultDepth(XtDisplay(w),W_SCREEN(w)) #define W_BPX(w) BlackPixel(XtDisplay(w),W_SCREEN(w)) #define W_WPX(w) WhitePixel(XtDisplay(w),W_SCREEN(w)) #define W_ROOT(w) DefaultRootWindow(XtDisplay(w)) #define W_CMAP(w) DefaultColormap(XtDisplay(w),W_SCREEN(w)) /* algeb */ #define ABS(x) (((x) < 0)?-(x):(x)) #ifndef MAX #define MAX(x,y) ((x)>(y)?(x):(y)) #endif /* MAX */ #ifndef MIN #define MIN(x,y) ((x)<(y)?(x):(y)) #endif /* MIN */ #endif /* __XMTDSI_H__ */ xtv-1.1.orig/xtv.c100600 1750 1750 2554 6401337511 14037 0ustar jkominekjkominek/* ** xtv.c for Mtds in . ** ** Made by MaxTheDogSays (dubray_f@epita.fr && rancur_v@epita.fr ** Login ** ** Started on Tue May 3 23:29:35 1994 mtds ** Last update Tue Apr 4 02:19:53 1995 mtds */ #include #include #include #include #include "Grab.h" typedef struct _appl { XtAppContext app_context; Widget toplevel; Widget grab; } appl; static XrmOptionDescRec options[] = { {"-d", "*displayName", XrmoptionSepArg, NULL}, {"-s", "*interval", XrmoptionSepArg, NULL} }; int main(argc,argv) int argc; char **argv; { appl app; Widget viewport; app.toplevel = XtVaAppInitialize(&(app.app_context), "XTv", options, XtNumber(options), &argc, argv, NULL, NULL); if (argc != 1) usage(); viewport = XtVaCreateWidget("viewport", viewportWidgetClass, app.toplevel, XtNallowHoriz, TRUE, XtNallowVert, TRUE, XtNwidth, 100, XtNheight, 100, NULL); app.grab = XtVaCreateManagedWidget("grab", xmtdsGrabWidgetClass, viewport, NULL); XtManageChild(viewport); XtRealizeWidget(app.toplevel); XtAppMainLoop(app.app_context); } int usage() { fprintf(stderr,"usage: xtv [-s refresh_timeout] [-d display]\n"); exit(255); } xtv-1.1.orig/xtv.lsm100600 1750 1750 727 6406263752 14402 0ustar jkominekjkominekBegin3 Title: xtv Version: 1.1 Entered-date: 97/09/12 Description: Xtv grabs the screen of a remote display. Description: This package includes the "XmtdsGrab" widget Keywords: Xmtds XmtdsGrab widget xtv grab scroll adaptative display remote Author: rancurel@capmedia.fr Maintained-by: anyone who wants to maintain it. Primary-site: sunsite.unc.edu Alternate-site: Original-site: sunsite.unc.edu Platforms: UX Copying-policy: GPL End