Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://xvisual-1.0.1-1.src.rpm:1058159/xvisual-1.0.1.tar.gz  info  downloads

xvisual/ 40755    765    144           0  6165752612  11221 5ustar  steveusersxvisual/Makefile100600    765    144         670  6145631712  12724 0ustar  steveusersCC=g++
AR=ar
LD=ld
RANLIB=ranlib
CFLAGS= -O 
INCLUDES= -I.
LIBS=-L.
XLIBS= -lXaw3d -lXmu -lXt -lSM -lICE -lXext -lX11 
VLIBS= -lxv

static::	dummy
	make -C ./xv -f Makefile.static all

shared::	dummy
	make -C ./xv -f Makefile.shared all

xvis::	dummy
	make -C ./xvis all

all::	xv xvis 

clean:
	cd ./xv; make -f Makefile.shared distclean; make -f Makefile.static distclean; cd ..
	cd ./xvis; make clean; cd ..

remake:: clean all

dummy:

xvisual/README100644    765    144        1777  6164231407  12203 0ustar  steveusersXVisual Interface Builder.

Distribution 1.0.0
---------------------

System Requirements:-

	Linux 1.2.13 or higher (ELF)
	X11R6
	Athena Xaw3D Widget Set (supplied).

System last tested on the following:-
	
	Linux pre 2.0.4
	X11R6
	Xaw3D.6.0
	libc.so.5.2.18
	binutils 2.6.0.14
	
This system consists of three parts:-
		
	1. Athena Xaw3D widget set. This is supplied since this distribution will not work with
		the standard Athena widget set (Xaw3d.tar.gz).

	2. The xvisual class library. This is a set of C++ class 'wrappers' for the Xaw3D
		widgets. (xv) (static or shared).

	3. The xvisual interface builder itself (xvis).

Thanks for taking the time to have a look at this BETA release. Please mail any 
comments, suggestions, bugs reports, etc to..

	steve@phoenix.bim.napier.ac.uk

Check for further updates at...

	ftp://phoenix.bim.napier.ac.uk/pub/xvisual

Xvisual Homepage is at...

	http://mail.bim.napier.ac.uk/~xvisual

-------------------------------------------------------------------------
Steve Carrie
xvisual/install.xvis100700    765    144         117  6141622101  13626 0ustar  steveusers#!/bin/sh
#

cp ./xvis/xvis /usr/local/bin/xvis
chmod 755 /usr/local/bin/xvis

xvisual/xv/ 40755    765    144           0  6165756504  11662 5ustar  steveusersxvisual/xv/template100644    765    144        1766  6164234401  13511 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

xvisual/xv/X11/ 40700    765    144           0  6141622131  12177 5ustar  steveusersxvisual/xv/X11/xv/ 40700    765    144           0  6141622142  12636 5ustar  steveusersxvisual/xv/X11/xv/xvDropDown.h100644    765    144        2526  6141622146  15241 0ustar  steveusers#ifndef _VxvDropDown_h
#define _VxvDropDown_h


class xvDropDown: public xvCore
{
	
	public:
		xvDropDown();
		xvDropDown(String name, xvCore & parent, int numargs, char **argdata,
				XtCallbackProc button_callback, XtCallbackProc select_callback,
				int vdepth=5, int currentindex=0);
		~xvDropDown();

		void init(String name, xvCore & parent, int numargs,  char **argdata,
			XtCallbackProc button_callback, XtCallbackProc select_callback,
			int vdepth=5, int currentindex=0);

		Widget ID();
		void DropDownOpen();
		int DropDownClose(XtPointer calldata);
		void SetCurrent(int xcur);
		void SetButtonResource(String rname, XtArgVal resource);
		void SetListResource(String rname, XtArgVal resource);
		void SetLabelResource(String rname, XtArgVal resource);
		void SetAllResource(String rname, XtArgVal resource);
		void SetNewList(int numargs, char *argdata[], int currentindex=0);
		void ChangeFont(String name);
		void ChangeWidth(Dimension wid);
		void SetBackground(String name);
		void SetForeground(String name);
		void SetSensitive(Boolean sense);
		
	private:
		void CalcHeights();
 
		xvForm dropform;
		xvLabel droplabel;
		xvButton dropbutton;
		xvPopupShell dropshell;
		xvView dropview;
		xvList droplist;
	
		int bwidth, miscwidth;
		int numlist;
		int ddepth;
		int current;
		int labelwidth;
		char* *copydata;
};


#endif // _VxvDropDown_h
xvisual/xv/X11/xv/xvButton.h100644    765    144        1212  6142402056  14744 0ustar  steveusers#ifndef _VxvButton_h
#define _VxvButton_h

#define XVCENTREBITMAP	0
#define XVLEFTBITMAP		1

class xvButton: public xvCore
{
	
	public:
		xvButton();
		xvButton(char *name, xvCore & parent, XtCallbackProc callback, 
			String client=NULL);
		~xvButton();

		void init(char *name, xvCore & parent, XtCallbackProc callback, 
			String client=NULL);
		void init(char *name, Widget parent, XtCallbackProc callback, 
			String client=NULL);

		void ChangeFont(String fontname);
		int ChangeBitmap(String name, int pixtype=XVBITMAP, int position=XVCENTREBITMAP);

	private:
		xvFont bfont;
		xvBasicBitmap bmap;
		Boolean alloc;
};

#endif // _VxvButton_h
xvisual/xv/X11/xv/xvRepeater.h100644    765    144        1232  6142413703  15243 0ustar  steveusers#ifndef _VxvRepeater_h
#define _VxvRepeater_h

#define XVCENTREBITMAP	0
#define XVLEFTBITMAP	1

class xvRepeater: public xvCore
{
	public:
	  xvRepeater();
	  xvRepeater(String name, xvCore & parent, XtCallbackProc callback, String client,
		XtCallbackProc startcall, XtCallbackProc stopcall);
	  ~xvRepeater();

	  void init(char *name, xvCore & parent, XtCallbackProc callback, String client,
		XtCallbackProc startcall, XtCallbackProc stopcall);
	  void ChangeFont(String fontname);
	  int ChangeBitmap(String name, int pixtype=XVBITMAP, int position=XVCENTREBITMAP);

	private:
		Boolean alloc;
		xvFont bfont;
		xvBasicBitmap bmap;
};

#endif // _VxvRepeater_h
xvisual/xv/X11/xv/xvCore.h100644    765    144       11575  6141622146  14421 0ustar  steveusers#ifndef _VxvCore_h
#define _VxvCore_h

#include <X11/Xaw3d/Form.h>
#include <X11/Xaw3d/Label.h>
#include <X11/Xaw3d/Tree.h>

class xvCore
{
	public:
		~xvCore();

// ************************
//              xvCore Resource methods
//************************
		
		virtual void Hide();
		virtual void Show();
		virtual void Map();
		virtual void Unmap();

		virtual void SetAccelerators(XtAccelerators atable);
		virtual void SetAncestorSensitive(Boolean sense);
		virtual void SetBackground(Pixel b);
		virtual void SetBackground(String colour);
		virtual void SetBackgroundPixmap(Pixmap p);
		virtual void SetBorderColor(Pixel b);
		virtual void SetBorderColor(String colour);
		virtual void SetBorderPixmap(Pixmap p);
		virtual void SetBorderWidth(Dimension b);
		virtual Dimension GetBorderWidth();
		virtual void SetColormap(Colormap c);
		virtual void SetDepth(int d);
		virtual int GetDepth();
		virtual void SetDestroyCallback(XtCallbackProc d);
		virtual void SetHeight(Dimension h);
		virtual Dimension GetHeight();
		virtual void SetMappedWhenManaged(Boolean m);
		virtual void SetSensitive(Boolean s);
		virtual void SetTranslations(XtTranslations trans);
		virtual void OverrideTranslations(XtTranslations trans);
		virtual void AugmentTranslations(XtTranslations trans);
		virtual void SetWidth(Dimension xw);
		virtual Dimension GetWidth();
		virtual void SetX(Position x);
		virtual Position GetX();
		virtual void SetY(Position y);
		virtual Position GetY();
		virtual void SetXY(Position x, Position y);
		virtual void GetXY(Position *x, Position *y);
		virtual void SetGeometry(Position x, Position y, Dimension wid, Dimension h);
		virtual void GetGeometry(Position*x, Position *y, Dimension *wid, Dimension *h);
		virtual void SetSize(Dimension wid, Dimension h);
		virtual void GetSize(Dimension *wid, Dimension *h);

		virtual void SetResource(String rname, XtArgVal val);
		virtual void GetResource(String rname, XtArgVal *val);

		virtual void AddEvent(EventMask eventmask, XtEventHandler hander, XtPointer cdata);
		virtual void RemoveEvent(EventMask eventmask, XtEventHandler hander, XtPointer cdata);
		virtual void AddGrab(Boolean exclusive, Boolean sprung);
		virtual void RemoveGrab();


// ********************************
//		Widget-Specific Resources
// ********************************

		virtual void SetLabel(String lab);
		virtual void SetFont(XFontStruct *xfs);
		virtual void SetForeground(Pixel fg);
		virtual void SetForeground(String colour);
		virtual void SetFontSet(XFontSet xfnt);
		virtual void SetJustify(XtJustify xj);
		virtual void SetCallback(XtCallbackProc callback);
		virtual void SetInternalHeight(Dimension ih);
		virtual Dimension GetInternalHeight();
		virtual void SetInternalWidth(Dimension iw);
		virtual Dimension GetInternalWidth();
		virtual void SetCursorName(String cname);
		virtual void SetCursor(Cursor curs);
	
// ********************************
//		Constraint Resources
// ********************************

		virtual void SetIcon(Pixmap ico);
		virtual void SetHSpace(Dimension hs);
		virtual void SetVSpace(Dimension vs);
		virtual void SetBottomEdge(XawEdgeType bedge);
		virtual void SetLeftEdge(XawEdgeType ledge);
		virtual void SetRightEdge(XawEdgeType redge);
		virtual void SetTopEdge(XawEdgeType tedge);
		virtual void SetRelHorizontal(xvCore & wg);
		virtual void SetRelVertical(xvCore & wg);
		virtual void SetRelative(xvCore & hg, xvCore & vg);
		virtual void SetResizable(Boolean srz);
		virtual void SetVertDistance(int vd);
		virtual int GetVertDistance();
		virtual void SetHorizDistance(int hd);
		virtual int GetHorizDistance();
		virtual void SetDistance(int hd, int vd);
		virtual void GetDistance(int *hd, int *vd);
		virtual void SetDefaultDistance(int dd);
		virtual void SetTreeGC(GC ngc);
		virtual void SetTreeParent(Widget parent);
		virtual void SetTreeParent(xvCore & parent);
		virtual void SetFixedPosition(Boolean fix);

// ***********************
//              ThreeD Methods
// ***********************

		virtual void SetShadowWidth(Dimension sw);
		virtual void SetTopShadowPixel(Pixel tsp);
		virtual void SetTopShadowPixel(String colour);
		virtual void SetBottomShadowPixel(Pixel bsp);
		virtual void SetBottomShadowPixel(String colour);
		virtual void SetTopShadowContrast(int tsc);
		virtual void SetBottomShadowContrast(int bsc);
		virtual void SetUserData(XtPointer ud);
		virtual void SetBeNiceToColormap(Boolean bntc);

		virtual Pixel stringToPixel(String colname);

// *********************
//              Other methods
// *********************

		virtual Pixmap SetBitmapInfo(char *bits, unsigned int sw, unsigned int sh, 
			String resource=NULL);	
		virtual Pixmap SetBitmapInfo(unsigned char *bits, unsigned int sw, unsigned int sh, 
			String resource=NULL);	
		virtual Pixmap SetPixmapInfo(char **bits, String resource=NULL);

		virtual void SetBitmap(Pixmap pix);
		virtual Widget ID();

	protected:
		Widget w;
		Pixmap icon, iconmask;
};

#endif // _VxvCore_hxvisual/xv/X11/xv/xvLabel.h100644    765    144         757  6142410463  14506 0ustar  steveusers#ifndef _VxvLabel_h
#define _VxvLabel_h

#define XVCENTREBITMAP	0
#define XVLEFTBITMAP	1

class xvLabel: public xvCore
{
	public:
		xvLabel();
		xvLabel(String name, xvCore & parent);
		~xvLabel();

		void init(String name, xvCore & parent);
		void init(String name, Widget parent);
		void ChangeFont(String fontname);
		int ChangeBitmap(String name, int pixtype=XVBITMAP, int position=XVCENTREBITMAP);

	protected:
		Boolean alloc;
		xvFont bfont;
		xvBasicBitmap bmap;
};


#endif _VxvLabel_h
xvisual/xv/X11/xv/xvList.h100644    765    144        1337  6141622146  14417 0ustar  steveusers#ifndef _VxvList_h
#define _VxvList_h

#include <X11/Xaw3d/List.h>

class xvList: public xvCore
{
	public:
		xvList();
		xvList(String name, xvCore & parent, XtCallbackProc callback, 
			int numdata, char **listdata, int columns);
		~xvList();

		void init(String name, xvCore & parent, XtCallbackProc callback, 
			int numdata, char **listdata, int columns);

		void init(String name, Widget parent, XtCallbackProc callback, 
			int numdata, char **listdata, int columns);

 		void SetList(int numdata, char **listdata);
		void Highlight(int item);
		void Unhighlight();
		XawListReturnStruct *ShowCurrent();
		int GetLongest();
		void ChangeFont(String fontname);

	private:
		Boolean alloc;
		xvFont bfont;
};

#endif // _VxvList_h
xvisual/xv/X11/xv/xvContext.h100644    765    144        1637  6146562647  15151 0ustar  steveusers#ifndef _VxvContext_h
#define _VxvContext_h

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>

class xvContext: public xvCore
{
	public:
		xvContext();
		xvContext(String name, int argc, char **argv);
		~xvContext();

		void init(String name, int argc, char **argv);
		XtAppContext GetContext();
		void ServiceEvent(); 

		void RegisterWorkProc(XtWorkProc proc, XtPointer cdata);
		void UnregisterWorkProc();

		void AddAction(String acname, XtActionProc proc);
		
		XtActionHookId AddActionHook(XtActionHookProc proc, XtPointer clientdata);
		void RemoveActionHook();	

		void Error(String message);
		void ErrorMsg(String name, String etype, String eclass, String edefault, String *params,
			Cardinal *numpar);

	private:
		Display *ContextDisplay;
		XtAppContext ContextContext;
		XEvent ContextEvent;
		XtWorkProcId wproc;
		XtActionHookId waction;
		Boolean actionset;
		int flushcount;
};

#endif // _VxvContext_h
xvisual/xv/X11/xv/xvMenuBar.h100644    765    144        1332  6141622146  15030 0ustar  steveusers#ifndef _VxvMenuBar_h
#define _VxvMenuBar_h

class xvMenuBar: public xvCore
{
	public:
	  xvMenuBar();
	  xvMenuBar(String name, xvCore & parent, int num, char **menuinfo, Boolean manage=TRUE);	 
	  ~xvMenuBar();

	  void init(String name, xvCore & parent, int num, char **menuinfo, Boolean manage=TRUE);	 

	  Widget GetButton(char *name);
	  void SetResource(String name, String resource, XtArgVal val);
	  void SetAllResource(String resource, XtArgVal val);
	  void ManageChildren(Boolean manage=TRUE);
	  void ChangeFont(String fontname);

	private:
	  void setupMenu(int num, char **menuinfo);

	  int numbuttons;
	  Widget MenuButtons[30];
	  char *menulist[30];	
	  Boolean alloc;
	  xvFont bfont;
};

#endif _VxvMenuBar_h
xvisual/xv/X11/xv/xvPanner.h100644    765    144        1257  6141622146  14730 0ustar  steveusers#ifndef _VxvPanner_h
#define _VxvPanner_h

class xvPanner: public xvCore
{
	public:
		xvPanner();
		xvPanner(String name, xvCore & parent, XtCallbackProc callback,
			Dimension sizeH, Dimension sizeW, Position InitX, Position InitY);
		~xvPanner();

		void init(String name, xvCore & parent, XtCallbackProc callback,
			Dimension sizeH, Dimension sizeW, Position InitX, Position InitY); 		

		void SetSliderPosition(Position XPos, Position YPos);
		void SetSliderSize(Dimension sx, Dimension sy);
		void SetCanvasSize(Dimension sx, Dimension sy);
		void SetdefaultScale(Dimension sca);
		void Where(Position *XPos, Position *YPos);

	private:
		Boolean alloc;
};

#endif // _VxvPanner_h
xvisual/xv/X11/xv/xvPopupMenu.h100644    765    144        1576  6141622146  15441 0ustar  steveusers#ifndef _VxvPopupMenu_h
#define _VxvPopupMenu_h

class xvPopupMenu: public xvPopupShell
{
	public:
		xvPopupMenu();
		xvPopupMenu(char *name, char *header, int argc, char **argv, 
			XtCallbackProc proclist[], xvCore & parent);
		~xvPopupMenu();
	  
		void init(char *name, char *header, int argc, char **argv, 
			XtCallbackProc proclist[], xvCore & parent);

		void MenuEntry(String name, String newname);
		void EntryResource(String name, String resname, XtArgVal res);

		void CheckEntry(char *name);
		void UnCheckEntry(char *name);
		
		Widget GetWidget(char *name);
		void AllResource(String resname, XtArgVal res);
		void ChangeFont(String fontname);
		
	private:
		int findentry(char *name);

		int numentries;
		Widget Sep;
		Widget WidgetList[20];
		Widget MyParent;
		char *listentry[20];
		Pixmap mark;
		XtTranslations mtranslations;
		xvFont bfont;
};

#endif // _VxvPopupMenu_h
xvisual/xv/X11/xv/xvFileList.h100644    765    144        3107  6141622146  15214 0ustar  steveusers#ifndef _VxvFileList_h
#define _VxvFileList_h

#define XVFILELIST	0
#define XVDIRLIST	1
#define XVALLLIST	2

#define XVRELATIVEPATH	0
#define XVABSOLUTEPATH	1

class xvFileList: public xvView, public xvList
{
	public:
		xvFileList();
		xvFileList(String name, xvCore & parent, String path, int mode, Boolean hidden,
				XtCallbackProc filelist_callback, Boolean manage=TRUE);
		~xvFileList();

		void init(String name, xvCore & parent, String path, int mode, Boolean hidden,
				XtCallbackProc filelist_callback, Boolean manage=TRUE);

		int SetNewPath(String pathname, int mode, Boolean hidden);

		void GetResource(String resname, XtArgVal *val);
		void SetResource(String resname, XtArgVal val);
		void SetFixedPosition(Boolean val);

		char *GetSelectedItem(XtPointer call, int pathmode);
		char *Directory(String path);

		void SetForeground(String name);
		void SetForeground(Pixel fg);
		void SetBackground(String name);
		void SetBackground(Pixel bg);

		void Map();
		void Unmap();
		void SetSensitive(Boolean sense);
		void SetMappedWhenManaged(Boolean man);
		
		void AddEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata);
		void RemoveEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata);

	private:

		int NewPath(String pathname, int mode, Boolean hidden);
		int GetNumEntries(String pathname);
		int ParseFileTree(String pathname);
		
		char currentpath[180];
		char workingbuffer[180];
		char dirbuffer[180];

		char* *filelist;
		struct dirent *superlist;

		int numfiles, numentries, datamode;
		Boolean allocflag, hiddenflag;

};

#endif // _VxvFileList_h
xvisual/xv/X11/xv/xvToggle.h100644    765    144        1405  6142410715  14717 0ustar  steveusers#ifndef _VxvToggle_h
#define _VxvToggle_h

#define XVCENTREBITMAP	0
#define XVLEFTBITMAP	1

class xvToggle: public xvCore
{
	public:
		xvToggle();
		xvToggle(String name, xvCore & parent, XtCallbackProc callback,
				String radiodata=NULL);
		~xvToggle();

		void init(String name, xvCore & parent, XtCallbackProc callback,
				String radiodata=NULL);
				
		void ChangeGroup(xvCore & group);
		void ChangeCurrent(String rdata);
		void UnSetGroup();
		XtPointer GetCurrent();
		void ChangeFont(String fontname);
		int ChangeBitmap(String name, int pixtype=XVBITMAP, int position=XVCENTREBITMAP);
	
		void On();
		void Off();
		void State(Boolean statex);
		Boolean GetState();

	private:
		Boolean alloc;	  
		xvFont bfont;
		xvBasicBitmap bmap;
};

#endif // _VxvToggle_h
xvisual/xv/X11/xv/xv.h100644    765    144        4545  6141622146  13567 0ustar  steveusers// Basic XT Includes

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xcms.h>
#include <X11/xpm.h>

// Athena Includes

#include <X11/Xaw3d/ThreeD.h>
#include <X11/Xaw3d/SmeThreeD.h>
#include <X11/Xaw3d/AsciiSink.h>
#include <X11/Xaw3d/AsciiSrc.h>
#include <X11/Xaw3d/AsciiText.h>
#include <X11/Xaw3d/Box.h>
#include <X11/Xaw3d/Cardinals.h>
#include <X11/Xaw3d/Command.h>
#include <X11/Xaw3d/Dialog.h>
#include <X11/Xaw3d/Form.h>
#include <X11/Xaw3d/Grip.h>
#include <X11/Xaw3d/Label.h>
#include <X11/Xaw3d/List.h>
#include <X11/Xaw3d/MenuButton.h>
#include <X11/Xaw3d/MultiSink.h>
#include <X11/Xaw3d/MultiSrc.h>
#include <X11/Xaw3d/Panner.h>
#include <X11/Xaw3d/Porthole.h>
#include <X11/Xaw3d/Repeater.h>
#include <X11/Xaw3d/Reports.h>
#include <X11/Xaw3d/Scrollbar.h>
#include <X11/Xaw3d/Simple.h>
#include <X11/Xaw3d/SimpleMenu.h>
#include <X11/Xaw3d/Sme.h>
#include <X11/Xaw3d/SmeBSB.h>
#include <X11/Xaw3d/SmeLine.h>
#include <X11/Xaw3d/StripChart.h>
#include <X11/Xaw3d/Text.h>
#include <X11/Xaw3d/TextSink.h>
#include <X11/Xaw3d/TextSrc.h>
#include <X11/Xaw3d/Toggle.h>
#include <X11/Xaw3d/Tree.h>
#include <X11/Xaw3d/Viewport.h>

// xv Includes

#include <X11/xv/xvCore.h>
#include <X11/xv/xvRegion.h>
#include <X11/xv/xvGC.h>
#include <X11/xv/xvFont.h>
#include <X11/xv/xvBasicBitmap.h>
#include <X11/xv/xvFontList.h>
#include <X11/xv/xvGraphic.h>
#include <X11/xv/xvCursor.h>

#include <X11/xv/xvGrip.h>
#include <X11/xv/xvBox.h>
#include <X11/xv/xvContext.h>
#include <X11/xv/xvForm.h>
#include <X11/xv/xvWindow.h>
#include <X11/xv/xvButton.h>
#include <X11/xv/xvRepeater.h>
#include <X11/xv/xvDialog.h>
#include <X11/xv/xvEditField.h>
#include <X11/xv/xvLabel.h>
#include <X11/xv/xvList.h>
#include <X11/xv/xvMenuBar.h>
#include <X11/xv/xvPanner.h>
#include <X11/xv/xvPopupShell.h>
#include <X11/xv/xvPopupTransientShell.h>
#include <X11/xv/xvPulldownMenu.h>
#include <X11/xv/xvScrollbar.h>
#include <X11/xv/xvToggle.h>
#include <X11/xv/xvTree.h>
#include <X11/xv/xvView.h>
#include <X11/xv/xvVisualForm.h>
#include <X11/xv/xvVisualList.h>
#include <X11/xv/xvPopupMenu.h>
#include <X11/xv/xvPopupDialog.h>
#include <X11/xv/xvDropDown.h>
#include <X11/xv/xvMsgBox.h>
#include <X11/xv/xvFileDialog.h>
#include <X11/xv/xvSizer.h>
#include <X11/xv/xvBitmap.h>
#include <X11/xv/xvTimer.h>
#include <X11/xv/xvFileList.h>
#include <X11/xv/xvEditWindow.h>xvisual/xv/X11/xv/xvView.h100644    765    144        1060  6141622146  14407 0ustar  steveusers#ifndef _VxvView_h
#define _VxvView_h

class xvView: public xvCore
{
	public:
		xvView();
		xvView(String name, xvCore & parent, Boolean manage=TRUE, 
			Boolean HScrollbar=FALSE, Boolean VScrollbar=FALSE);
		~xvView();

		void init(String name, xvCore & parent, Boolean manage=TRUE, 
			Boolean HScrollbar=FALSE, Boolean VScrollbar=FALSE);

		void init(String name, Widget parent, Boolean manage=TRUE, 
			Boolean HScrollbar=FALSE, Boolean VScrollbar=FALSE);

		void ManageChildren(Boolean manage=TRUE);		

	private:
		Boolean alloc;
};

#endif // _VxvView_h
xvisual/xv/X11/xv/xvFileDialog.h100644    765    144        3453  6165755240  15514 0ustar  steveusers#ifndef _VxvFileDialog_h
#define _VxvFileDialog_h

class xvFileDialog:public xvCore
{
	public:
		xvFileDialog();
		xvFileDialog(String name, xvCore & parent, String pathname,
				XtCallbackProc filelist_callback, XtCallbackProc dirlist_callback,
				XtCallbackProc ok_callback, XtCallbackProc cancel_callback,
				XtCallbackProc err_callback, XtActionProc edit_callback,
				xvContext & appcontext, String mask, Boolean maskActive=FALSE,
				Boolean allowDirchange=TRUE);
		~xvFileDialog();

		void init(String name, xvCore & parent, String pathname,
				XtCallbackProc filelist_callback, XtCallbackProc dirlist_callback,
				XtCallbackProc ok_callback, XtCallbackProc cancel_callback,
				XtCallbackProc err_callback, XtActionProc edit_callback,
				xvContext & appcontext, String mask, Boolean maskActive=FALSE,
				Boolean allowDirchange=TRUE);

		void ClearError(XtPointer calldata);
		void NewPath(String pathname);
		void EditEntry();
		
		String File(XtPointer call);
		String Directory(XtPointer call);

		String SelectedFile(String returnpathname);
		void UpdateFileBox(String newstr);

	private:
		
		void UpdateFileList();
		void UpdateDirList();
		int GetNumEntries(String pathname);
		int ParseFileTree(String pathname, int entries);
		void ToggleClick(Widget wd, XtPointer cl, XtPointer ca);

		xvForm tform;
		xvLabel tflabel, tdlabel, tfblabel, pathlabel;
		xvView tfbview, tdview;
		xvList tdlist, tfblist;
		xvButton ok, cancel;
		xvLabel rspacer, bspacer;
		xvEditField tfedit;
		xvToggle ttoggle;
		xvMsgBox tmsg;

		char currentpath[180];
		char currentfile[40];
		char currentnum[30];
		char filemask[80];
		char* *filelist;
		char* *dirlist;
		struct dirent *superlist;
		struct stat *statlist;

		int numfiles, numdirs, numentries;
		Boolean usemask;
		int allocflag, hiddenflag;
};

#endif // _VxvFileDialog_h
xvisual/xv/X11/xv/xvWindow.h100644    765    144        1347  6141622146  14754 0ustar  steveusers#ifndef _VxvWindow_h
#define _VxvWindow_h


class xvWindow: public xvGraphic
{
	public:
		xvWindow();
		xvWindow(String name, String classname, xvCore &TopLevel);
		~xvWindow();

		void init(String name, String classname, xvCore &TopLevel);
		void Open();
		void Close();
		void MovePointer(int x, int y);
		void SetWindowResource(String resname, XtArgVal res);
		void GetWindowResource(String resname, XtArgVal *res);
	
		Widget GetParent();
		int LoadNewIcon(String name, int pixtype=XVBITMAP);
		void ReleaseBorder();
		void FixBorder(Dimension width, Dimension height);
		void SetWindowLocation(Position x, Position y);

	private:
	  Widget BParent;
	  Boolean BOpen;
	  Boolean alloc;
	  xvBasicBitmap iconmap;
};

#endif // _VxvWindow_h
xvisual/xv/X11/xv/stop.xbm100600    765    144        5732  6141622146  14445 0ustar  steveusers#ifndef _Vstop_xbm
#define _Vstop_xbm

#define stop_width 58
#define stop_height 59
static char stop_bits[] = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff,
  0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00,
  0x00, 0x80, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff,
  0xff, 0x1f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00,
  0x00, 0xf0, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff,
  0xff, 0xff, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00,
  0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xff,
  0xff, 0xff, 0x07, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00,
  0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0xe0, 0xff, 0xff, 0xff,
  0xff, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00,
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0x7f, 0x10, 0xe0,
  0x70, 0xe0, 0xff, 0x00, 0xf8, 0x3f, 0xd3, 0x6c, 0xe6, 0xcc, 0xff, 0x00,
  0xf8, 0x3f, 0xd7, 0x2c, 0xcf, 0xcc, 0xff, 0x00, 0xf8, 0x3f, 0xfe, 0x3c,
  0xcf, 0xcc, 0xff, 0x00, 0xf8, 0x7f, 0xf8, 0x3c, 0xcf, 0xe0, 0xff, 0x00,
  0xf8, 0xff, 0xf1, 0x3c, 0xcf, 0xfc, 0xff, 0x00, 0xf8, 0xbf, 0xf3, 0x3c,
  0xcf, 0xfc, 0xff, 0x00, 0xf8, 0x3f, 0xf3, 0x7c, 0xe6, 0xfc, 0xff, 0x00,
  0xf8, 0x3f, 0x78, 0xf8, 0x70, 0xf8, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
  0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff,
  0xff, 0xff, 0xff, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00,
  0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xc0, 0xff, 0xff, 0xff,
  0xff, 0xff, 0x1f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00,
  0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xfe, 0xff, 0xff,
  0xff, 0xff, 0x03, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00,
  0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff,
  0xff, 0x7f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00,
  0x00, 0xc0, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x80, 0xff, 0xff,
  0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00,
  0x00, 0x00, 0xfe, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, };

#endifxvisual/xv/X11/xv/xlogo11100644    765    144         431  6141622146  14144 0ustar  steveusers#ifndef _Vxlogo11_
#define _Vxlogo11_


#define xlogo11_width 11
#define xlogo11_height 11

static char xlogo11_bits[] = {
 0x0f, 0x04, 0x0f, 0x02, 0x1e, 0x01, 0x3c, 0x01, 0xb8, 0x00, 0x58, 0x00,
 0xe8, 0x00, 0xe4, 0x01, 0xc4, 0x03, 0xc2, 0x03, 0x81, 0x07 };

#endif // _Vxlogo11_
xvisual/xv/X11/xv/xvPopupShell.h100644    765    144        1010  6141622146  15563 0ustar  steveusers#ifndef _VxvPopupShell_h
#define _VxvPopupShell_h


class xvPopupShell: public xvCore
{
	public:
		xvPopupShell();
		xvPopupShell(String name, xvCore & parent);
		~xvPopupShell();
	  
		void init(String name, xvCore & parent);
		void Open();
		void Open(Position x, Position y);
		void Close();
		
	protected:
		void init(String name, xvCore & parent, WidgetClass wid, String header, XtTranslations mt);	
		void PlaceShell();
		Widget shell;
		Widget MyParent;

	private:
		Boolean alloc;
};

#endif // _VxvPopupShell_h
xvisual/xv/X11/xv/xvForm.h100644    765    144         731  6141622146  14364 0ustar  steveusers#ifndef _VxvForm_h
#define _VxvForm_h


class xvForm: public xvCore
{
	public:
		xvForm();
		xvForm(String name, xvCore & parent, Boolean show=TRUE, Boolean doit=TRUE);
		~xvForm();

		void init(String name, xvCore & parent, Boolean show=TRUE, Boolean doit=TRUE);
		void init(String name, Widget parent, Boolean show=TRUE, Boolean doit=TRUE);	

		void DoLayout(Boolean doit);
		void ManageChildren(Boolean manage=TRUE);
	private:
		Boolean alloc;
};


#endif // _VxvForm_h
xvisual/xv/X11/xv/xvDialog.h100644    765    144        1074  6141622146  14701 0ustar  steveusers#ifndef _VxvDialog_h
#define _VxvDialog_h

class xvDialog: public xvCore
{
	public:
		xvDialog();
		xvDialog(String name, xvCore &  parent, String header, String defaultdata);
		~xvDialog();

		void init(String name, xvCore &  parent, String header, String defaultdata);
	
		String GetDialog();
		void AddButton(String name, XtCallbackProc callback, XtPointer client_data);
		void ChangeFont(String fontname);

	protected:
		void init(String name, Widget parent, String header, String defaultdata);

	private:
		Boolean alloc;
		xvFont bfont;	
};


#endif // _VxvDialog_h
xvisual/xv/X11/xv/xvPulldownMenu.h100644    765    144        1465  6141622146  16137 0ustar  steveusers#ifndef _VxvPulldownMenu_h
#define _VxvPulldownMenu_h


class xvPulldownMenu: public xvCore
{
	public:
		xvPulldownMenu();
		xvPulldownMenu(char *name, int argc, char **argv, XtCallbackProc proclist[], Widget parent);
		~xvPulldownMenu();
	  
		void init(char *name, int argc, char **argv, XtCallbackProc proclist[], Widget parent);
	 
		void MenuEntry(String name, String newname);
		void CheckEntry(char *name);
		void UnCheckEntry(char *name);
		void EntryResource(String name, String resname, XtArgVal res);
		void AllResource(String resname, XtArgVal res);
		Widget GetWidget(char *name);
		void ChangeFont(String name);

	private:
	  int findentry(char *name);

	  int numentries;
	  Widget WidgetList[20];
	  char *listentry[20];
	  Pixmap mark;
	  Boolean alloc;
	  xvFont bfont;
};

#endif // _VxvPulldownMenu_h
xvisual/xv/X11/xv/xvMsgBox.h100644    765    144        1323  6141622146  14676 0ustar  steveusers#ifndef _VxvMsgBox_h
#define _VxvMsgBox_h

#define XVMSGSIMPLEWARN 0
#define XVMSGSIMPLEFATAL 1
#define XVMSGSIMPLECHOICE 2

class xvMsgBox: public xvPopupShell
{
	public:
		xvMsgBox();
		xvMsgBox(String name, xvCore & parent, String message, 
			int type, String back,
			XtCallbackProc b1_call, XtCallbackProc b2_call = (XtCallbackProc) NULL);

		~xvMsgBox();

		void init(String name, xvCore & parent, String message, 
			int type, String back,
			XtCallbackProc b1_call, XtCallbackProc b2_call=(XtCallbackProc) NULL);

		int Result();

		void ChangeFont(String name);

	private:

		xvForm msgform;
		xvLabel msgicon, msglabel, spr, spb;
		xvButton b1, b2;	
		int result;	
		char *backcolor;
};


#endif // _VxvMsgBox_h
xvisual/xv/X11/xv/downptr100600    765    144         531  6141622146  14340 0ustar  steveusers#ifndef _Vdownptr_
#define _Vdownptr_

#define downptr_width 16
#define downptr_height 16
static char downptr_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
   0xfe, 0x7f, 0xfc, 0x3f, 0xf8, 0x1f, 0xf0, 0x0f, 0xe0, 0x07, 0xc0, 0x03,
   0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};


#endif // _Vdownptr_xvisual/xv/X11/xv/warn.xbm100644    765    144        5654  6141622146  14442 0ustar  steveusers#define warn_width 58
#define warn_height 59
static char warn_bits[] = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xce,
  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0x01, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x87, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
  0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x07, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01,
  0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x00,
  0x00, 0x00, 0xe0, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00,
  0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x38, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00,
  0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x60, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x1c, 0x30, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x78,
  0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x78, 0xc0, 0x01, 0x00, 0x00,
  0x00, 0x00, 0x06, 0x78, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x07, 0x78,
  0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x78, 0x00, 0x03, 0x00, 0x00,
  0x00, 0x80, 0x03, 0x30, 0x00, 0x07, 0x00, 0x00, 0x00, 0x80, 0x01, 0x30,
  0x00, 0x06, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x30, 0x00, 0x0e, 0x00, 0x00,
  0x00, 0xc0, 0x00, 0x30, 0x00, 0x0c, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x30,
  0x00, 0x1c, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00,
  0x00, 0x70, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30,
  0x00, 0x30, 0x00, 0x00, 0x00, 0x38, 0x00, 0x78, 0x00, 0x70, 0x00, 0x00,
  0x00, 0x18, 0x00, 0x78, 0x00, 0x60, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x30,
  0x00, 0xe0, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00,
  0x00, 0x0e, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x06, 0x00, 0x00,
  0x00, 0x80, 0x01, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00,
  0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x80, 0x03, 0x00, 0x00,
  0x00, 0x00, 0x07, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
  0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0xc0, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x0c, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00,
  0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x60, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x18, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00,
  0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, };
xvisual/xv/X11/xv/query.xbm100644    765    144        5657  6141622146  14643 0ustar  steveusers#define query_width 58
#define query_height 59
static char query_bits[] = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff,
  0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x0f, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00,
  0x00, 0x0f, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00,
  0x00, 0x38, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00,
  0x00, 0xa0, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00,
  0x00, 0x05, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00, 0x80, 0x02, 0x00, 0x00,
  0x00, 0x00, 0x05, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
  0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0xa0, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x14, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00,
  0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x30, 0x00,
  0x18, 0x00, 0x00, 0xc6, 0x03, 0x00, 0x60, 0x00, 0x18, 0x00, 0x00, 0x8f,
  0x07, 0x00, 0x60, 0x00, 0x18, 0x00, 0x00, 0x8f, 0x07, 0x00, 0x60, 0x00,
  0x0c, 0x00, 0x00, 0x86, 0x07, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x80,
  0x07, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x80, 0x03, 0x00, 0xc0, 0x00,
  0x0c, 0x00, 0x00, 0xc0, 0x01, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0xe0,
  0x00, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x30, 0x00, 0x00, 0xc0, 0x00,
  0x0c, 0x00, 0x00, 0x18, 0x00, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x18,
  0x00, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00,
  0x0c, 0x00, 0x00, 0x38, 0x00, 0x00, 0xc0, 0x00, 0x18, 0x00, 0x00, 0x7c,
  0x00, 0x00, 0x60, 0x00, 0x18, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x60, 0x00,
  0x18, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x60, 0x00, 0x30, 0x00, 0x00, 0x38,
  0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00,
  0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x60, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x18, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00,
  0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x01, 0x00, 0x00,
  0x00, 0x00, 0x06, 0x00, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00,
  0x00, 0x05, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x0a, 0x00, 0x00,
  0x00, 0x40, 0x01, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00,
  0x00, 0x38, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00,
  0x00, 0x1c, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x0f, 0x00, 0x00,
  0x00, 0x00, 0x0f, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00,
  0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x3f, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, };
xvisual/xv/X11/xv/xvBox.h100644    765    144         354  6141622146  14212 0ustar  steveusers#ifndef _VxvBox_h
#define _VxvBox_h

class xvBox: public xvCore
{
	public:
		xvBox();
		xvBox(String name, xvCore & parent);
		~xvBox();

		void init(String name, xvCore & parent);

	private:
		Boolean alloc;		
};


#endif // _VxvBox_h
xvisual/xv/X11/xv/xvGC.h100644    765    144        4102  6141622146  13766 0ustar  steveusers#ifndef _VxvGC_h
#define _VxvGC_h

#define XVDEFAULTGC		1
#define XVAUXGC1			2
#define XVAUXGC2			3

class xvGC: public xvCore
{
	public:
		xvGC();
		xvGC(xvCore & object);
		~xvGC();

		// ** init Methods		
		void init(xvCore & object);
		void init(Widget gcw);

		// ** GC Methods
		void GCFlush();
		void GCSetState(Pixel foreground, Pixel background, int func, Pixel plane_mask);
		void GCSetForeground(Pixel foreground);
		void GCSetBackground(Pixel background);
		void GCSetFunction(int func);
		void GCSetPlaneMask(Pixel plane_mask);
		void GCSetLineAttributes(unsigned int line_width, int line_style, 
					int cap_style, int join_style);
		void GCSetDashes(int dash_offset, char dash_list[], int num_elements);
		void GCSetFillStyle(int fill_style);
		void GCSetFillRule(int fill_rule);
		void GCSetTile(Pixmap tile);
		void GCSetStipple(Pixmap stipple);
		void GCSetTSOrigin(int tso_x, int tso_y);
		void GCSetFont(Font font);
		void GCSetClipOrigin(int clip_ox, int clip_oy);
		void GCSetClipMask(Pixmap pix);
		void GCSetClipRectangles(int clip_ox, int clip_oy, XRectangle rect[], 
					int numrec, int xorder);
		void GCSetArcMode(int arc_mode);
		void GCSetSubMode(int sub_mode);
		void GCSetGraphicsExposures(Boolean gexpose);
		
		Status GCQueryBestSize(int vclass, unsigned int width, unsigned int height, 
					unsigned int *width_ret, unsigned int *height_ret);
		Status GCQueryBestTile(unsigned int width, unsigned int height, 
					unsigned int *width_ret, unsigned int *height_ret);
		Status GCQueryBestStipple(unsigned int width, unsigned int height, 
					unsigned int *width_ret, unsigned int *height_ret);

		Window WinID();
		GC GCGetGC();
		void GCSwitchGC(int which);
		void GCRegion(xvRegion & r);
		void GCPointerXY(int *x, int *y, int *rx, int *ry, unsigned int *btn);
		void GCWin2Root(int x, int y, int *tx, int *ty);
		void GCRoot2Win(int x, int y, int *tx, int *ty);

	protected:
		Widget xvwidget;
		GC xvcontext;
		GC maincontext, backupcontext1, backupcontext2;
		Display *xvdisplay;
		Screen *xvscreen;
		Window xvwindow;
		
	private:
		Boolean alloc;
};

#endif // _VxvGC_hxvisual/xv/X11/xv/xvEditField.h100644    765    144        5125  6141622146  15334 0ustar  steveusers#ifndef _VxvEditField_h
#define _VxvEditField_h


class xvEditField: public xvCore
{
	public:
		xvEditField();
		xvEditField(String name, xvCore & parent, XawTextEditType mode, 
			Dimension sizeH, Dimension sizeL,
			XawAsciiType etype=XawAsciiString, String datasrc=NULL, 
			Boolean resizable=TRUE, XtCallbackProc callback=NULL, 
			String clientdata=NULL);
		~xvEditField();

		void init(String name, xvCore & parent, XawTextEditType mode, 
			Dimension sizeH, Dimension sizeL,
			XawAsciiType etype=XawAsciiString, String datasrc=NULL,
			Boolean resizable=TRUE, XtCallbackProc callback=NULL,
			String clientdata=NULL);

		void init(String name, Widget parent, XawTextEditType mode, 
			Dimension sizeH, Dimension sizeL,
			XawAsciiType etype=XawAsciiString, String datasrc=NULL,			
			Boolean resizable=TRUE, XtCallbackProc callback=NULL,
			String clientdata=NULL);

		void ChangeFont(String fontname);
		void SetSelection(XawTextPosition left, XawTextPosition right);
		void UnsetSelection();
		void Position(XawTextPosition *tbegin, XawTextPosition *tend);
		int Replace(XawTextPosition start, XawTextPosition end, XawTextBlock *text);
		XawTextPosition Search(XawTextScanDirection dir, XawTextBlock *text);
		void Invalidate(XawTextPosition from, XawTextPosition to);
		void EnableRedisplay();
		void DisableRedisplay();
		void TextDisplay();
		XawTextPosition TopPosition();
		void SelectionArray(XawTextSelectType *sarray);
		void InsertionPoint(XawTextPosition pos);
		XawTextPosition GetInsertionPoint();
		void SetSource(Widget source, XawTextPosition pos);
		Widget GetSource();
		void DisplayCaret(Boolean visable);
		char *ReturnString(char *ptr);

		Boolean Save();
		Boolean SaveAs(String name);
		Boolean SourceChanged();

		XawTextPosition SourceRead(XawTextPosition pos, XawTextBlock *block,
			int length);
		XawTextPosition SourceReplace(XawTextPosition start, XawTextPosition end, 
			XawTextBlock *text);
		XawTextPosition SourceScan(XawTextPosition pos, XawTextScanType stype,
			XawTextScanDirection dir, int count, Boolean include);
		XawTextPosition SourceSearch(XawTextPosition pos, 
			XawTextScanDirection dir, XawTextBlock *block);

		void Echo(Boolean echo);
		void Wrap(XawTextWrapMode wrap);
		void Callback(XtCallbackProc callback, String clientdata);
		void AutoWrap(Boolean autowrap);
		void DisplayChars(Boolean ctrl);
		void ResizeMode(XawTextResizeMode rmode);
		void HorizontalScrollBar(XawTextScrollMode hsc);
		void VerticalScrollBar(XawTextScrollMode hsc);
		void SetString(String str);

	private:
		xvFont bfont;
		Widget Source;						
		Widget Sink;
		Boolean alloc;
};

#endif _VxvEditField_h
xvisual/xv/X11/xv/xvPopupDialog.h100600    765    144         563  6141622146  15677 0ustar  steveusers#ifndef _VxvPopupDialog_h
#define _VxvPopupDialog_h


class xvPopupDialog: public xvPopupTransientShell, public xvDialog
{
	public:
		xvPopupDialog();
		xvPopupDialog(String name, xvCore & parent, String header, String defaultdata);
		~xvPopupDialog();
	  
		void init(String name, xvCore & parent, String header, String defaultdata);
			
};

#endif // _VxvPopupDialog_h
xvisual/xv/X11/xv/xvScrollbar.h100644    765    144        1070  6141622146  15421 0ustar  steveusers#ifndef _VXvScrollbar_h
#define _VXvScrollbar_h

class xvScrollbar: public xvCore
{
	public:
	  xvScrollbar();
	  xvScrollbar(String name, xvCore & parent, XtOrientation orient, Dimension sizeL, 
		XtCallbackProc scrollProc, XtCallbackProc thumbProc, XtCallbackProc jumpProc);
	  ~xvScrollbar();

	  void init(String name, xvCore & parent, XtOrientation orient, Dimension sizeL, 
		XtCallbackProc scrollProc, XtCallbackProc thumbProc, XtCallbackProc jumpProc);

	  void SetThumb(float t_pos, float t_size);
	  
	private:
		Boolean alloc;
};

#endif // _VXvScrollbar_h
xvisual/xv/X11/xv/xvGraphic.h100644    765    144        3664  6141622146  15066 0ustar  steveusers#ifndef _VxvGraphic_h
#define _VxvGraphic_h

class xvGraphic: public xvGC
{
	public:
		xvGraphic();
		~xvGraphic();

		void init(xvCore & object);
		void init(Widget wid);

		void GClearArea(int x, int y, unsigned int width, unsigned int height, Boolean exposures);
		void GClearWindow();
		void GCopyArea(xvGC & dest, int sx, int sy, unsigned int width, unsigned int height,
					int dx, int dy);
		void GCopyPlane(xvGC & dest, int sx, int sy, unsigned int width, unsigned int height,
					int dx, int dy, unsigned long plane);
		void GDrawPoint(int x, int y);
		void GDrawPoints(XPoint *points, int npoints, int mode);
		void GDrawLine(int x1, int y1, int x2, int y2);
		void GDrawLines(XPoint *points, int npoints, int mode);
		void GDrawSegments(XSegment *segments, int nseg);		
		void GDrawRectangle(int x, int y, unsigned int width, unsigned int height);
		void GDrawRectangles(XRectangle rectangles[], int nrect);
		void GDrawArc(int x, int y, unsigned int width, unsigned int height,
					int angle1, int angle2);
		void GDrawArcs(XArc *arcs, int narcs);
		void GFillRectangle(int x, int y, unsigned int width, unsigned int height);
		void GFillRectangles(XRectangle *rectangles, int nrect);
		void GFillPolygon(XPoint *points, int npoints, int shape, int mode);
		void GFillArc(int x, int y, unsigned int width, unsigned int height, 
					int angle1, int angle2);
		void GFillArcs(XArc *arcs, int narcs);

		void GPrint(int x, int y, String message);
		void GPrintImage(int x, int y, String message);				

		XImage *GGetImage(int x, int y, unsigned int width, unsigned int height,
					unsigned long plane_mask, int format);

		XImage *GGetSubImage(int x, int y, unsigned int width, unsigned int height,
					unsigned long plane_mask, int format, 
					int dx, int dy, XImage *image=NULL);

		void GPutImage(int sx, int sy, int dx, int sy, unsigned int width, unsigned int height,
					XImage *image=NULL);

	private:
		XImage *gimage;
};

#endif // _VxvGraphic_hxvisual/xv/X11/xv/xvFont.h100644    765    144        1246  6141622146  14411 0ustar  steveusers#ifndef _VxvFont_h
#define _VxvFont_h

class xvFont
{
	public:
		xvFont();
		xvFont(xvCore & object, String fontname);
		~xvFont();

		// ** init Methods		
		void init(xvCore & object, String fontname);
		void init(Widget gcw, String fontname);

		void FLoadFont(String fontname);
		void FUnloadFont();
		int FGetTextWidth(String str);
		XCharStruct *FTextExtents(String string, int *dir, int *ascent, int *descent);
		XFontStruct *FontRef();
		Font FontID();

	protected:
		Widget xvwidget;
		Display *xvdisplay;
		Screen *xvscreen;
		Window xvwindow;

		Font xvfont;
		XFontStruct *xvfontstruct;
		XCharStruct xvcharstruct;

	private:
		Boolean alloc;
};

#endif // _VxvFont_hxvisual/xv/X11/xv/xvFontList.h100644    765    144        1026  6141622146  15241 0ustar  steveusers#ifndef _VxvFontList_h
#define _VxvFontList_h

class xvFontList
{
	public:
		xvFontList();
		xvFontList(xvCore & object, String pattern, int numfonts);
		~xvFontList();

		// ** init Methods		
		void  init(xvCore & object, String pattern, int numfonts);
		void init(Widget gcw, String pattern, int numfonts);

		char **GetList();
		int FontsInList();

	protected:
		Widget xvwidget;
		Display *xvdisplay;
		
		int numreq, numret;
		char* *fontlist;
		XFontStruct *xvfontstruct;

	private:
		Boolean alloc;
};

#endif // _VxvFontList_hxvisual/xv/X11/xv/xvTree.h100644    765    144         564  6141622146  14364 0ustar  steveusers#ifndef _VxvTree_h
#define _VxvTree_h

class xvTree: public xvCore
{
	public:
		xvTree();
		xvTree(String name, xvCore & parent);
		~xvTree();

		void init(String name, xvCore & parent);
		void AutoConfig(Boolean conf);
		void ForceLayout();
		void SetGravity(XtGravity gr);
		void SetSpace(Dimension hs, Dimension vs);

	private:
		Boolean alloc;
};

#endif // _VxvTree_hxvisual/xv/X11/xv/xvRegion.h100644    765    144         771  6141622146  14710 0ustar  steveusers#ifndef _VxvRegion_h
#define _VxvRegion_h

class xvRegion
{
	public:
		xvRegion();
		xvRegion(XPoint points[], int n, int fill_rule);
		~xvRegion();

		void init(XPoint points[], int n, int fill_rule);				
		Region GetRegion();
		void Offset(int dx, int dy);
		void Shrink(int dx, int dy);
		void ClipBox(XRectangle *rect);
		Boolean Empty();
		Boolean PointIn(int x, int y);
		int RectIn(int x, int y, unsigned int width, unsigned int height);		

	private:
		Region myregion;

};


#endif // _VxvRegion_hxvisual/xv/X11/xv/xvBitmap.h100644    765    144         721  6141622146  14674 0ustar  steveusers#ifndef _VxvBitmap_h
#define _VxvBitmap_h

class xvBitmap: public xvLabel, public xvBasicBitmap
{
	public:
		xvBitmap();
		xvBitmap(String name, xvCore & object, Boolean visual=TRUE, int pixtype=XVBITMAP);
		~xvBitmap();

		void init(String name, xvCore & object, Boolean visual=TRUE, int pixtype=XVBITMAP);
		void init(String name, Widget wid, Boolean visual=TRUE, int pixtype=XVBITMAP);

		Pixmap GetPixmap();

	private:
		Boolean vis;
};


#endif // _VxvBitmap_hxvisual/xv/X11/xv/xvGrip.h100644    765    144         600  6141622146  14355 0ustar  steveusers#ifndef _VxvGrip_h
#define _VxvGrip_h

class xvGrip: public xvCore
{
	public:
		xvGrip();
		xvGrip(String name, xvCore & parent, XtCallbackProc callback);
		~xvGrip();

		void init(String name, xvCore & parent, XtCallbackProc callback);
		void init(String name, Widget parent, XtCallbackProc callback);
		
	private:
		XtTranslations gtrans;
		Boolean alloc;
};


#endif // _VxvGrip_h
xvisual/xv/X11/xv/xvTimer.h100644    765    144        1141  6141622146  14555 0ustar  steveusers#ifndef _VxvTimer_h
#define _VxvTimer_h


#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>

class xvTimer: public xvLabel
{
	public:
		xvTimer();
		xvTimer(String name, xvCore & parent, unsigned long timed, 
				XtTimerCallbackProc tcall, Boolean visible=TRUE);
		~xvTimer();
		void init(String name, xvCore & parent, unsigned long timed, 
				XtTimerCallbackProc tcall, Boolean visible=TRUE);
		void Reset();		
		void Reset(unsigned long timed);

	private:
		XtAppContext app_cxt;
		unsigned long interval;
		XtTimerCallbackProc proc;
		XtPointer cdata;
		XtIntervalId intid;
};

#endif // _VxvTimer_h
xvisual/xv/X11/xv/xvSizer.h100644    765    144        2721  6155527206  14604 0ustar  steveusers#ifndef _VxvSizer_h
#define _VxvSizer_h

#define MINWIDTH 26;
#define MINHEIGHT 17;

#define XVSIZEMOVE 0
#define XVSIZEONLY 1
#define XVMOVEONLY 2

class xvSizer: public xvCore
{

	public:
		xvSizer();
		xvSizer(xvWindow & wparent, int x, int y, int wid, int hgt, int mode, int gripsize,
				XtCallbackProc size_callback, XtCallbackProc move_callback,
				XtEventHandler motion_callback, XtEventHandler stop_callback);
		~xvSizer();

		void init(xvWindow & wparent, int x, int y, int wid, int hgt, int mode, int gripsize,
				XtCallbackProc size_callback, XtCallbackProc move_callback,
				XtEventHandler motion_callback, XtEventHandler stop_callback);

		void SizerShow(xvWindow & wparent);
		void SizerHide(xvWindow & wparent);
		void SizerMove(xvWindow & wparent, XtPointer client);
		void SizerSize(xvWindow & wparent, XtPointer client);
		void SizerMotion(xvWindow & wparent);
		void SizerStop(xvWindow & wparent);
		void SizerUnhook(xvWindow & wparent);
		void SizerInfo(int *x, int *y, int *wid, int *hgt);
		void SizerWarp(xvWindow & wparent, int wpx, int wpy, int wid, int hgt);
		Boolean SizerIsVisible();

	private:
	
		xvGrip tl, tm, tr;
		xvGrip bl, bm, br;
		void setColours(xvWindow & wparent);
		XtCallbackProc size_call, move_call;
		XtEventHandler motion_call, stop_call;

		int wide, high;
		int px, py;
		int lx, ly;
		int pivotpoint;
		int sizermode;
		int gsize, minheight, minwidth; 
		int maxx, maxy;

		Boolean Sizing, Moving, Visible;
};


#endif // _VxvSizer_h
xvisual/xv/X11/xv/xvCursor.h100644    765    144         567  6141622146  14745 0ustar  steveusers#ifndef _VxvCursor_h
#define _VxvCursor_h

class xvCursor
{
	public:
		xvCursor();
		xvCursor(xvCore & object, unsigned int curs);
		~xvCursor();

		void init(xvCore & object, unsigned int curs);
		void init(Widget wid, unsigned int curs);

		Cursor GetCursor();

	private:	
		Cursor xvcursor;
		int alloc;
		Display *xvdisplay;
		Window xvwindow;
};


#endif // _VxvCursor_hxvisual/xv/X11/xv/xvVisualForm.h100644    765    144         435  6141622146  15551 0ustar  steveusers#ifndef _VxvVisualForm_h
#define _VxvVisualForm_h


class xvVisualForm: public xvForm
{
	public:
		xvVisualForm();
		xvVisualForm(String name, xvCore & parent);
		~xvVisualForm();

		void init(String name, xvCore & parent);

	private:
		xvLabel formlabel;
};


#endif _VxvVisualForm_h
xvisual/xv/X11/xv/timer.xbm100644    765    144        1413  6141622146  14600 0ustar  steveusers#define timer_width 28
#define timer_height 28
static char timer_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00,
   0x00, 0xaf, 0x07, 0x00, 0x80, 0x21, 0x0c, 0x00, 0x60, 0x21, 0x34, 0x00,
   0x10, 0x22, 0x42, 0x00, 0x10, 0x20, 0x40, 0x00, 0x08, 0x20, 0x80, 0x00,
   0x1c, 0x20, 0xc0, 0x01, 0x24, 0x20, 0x20, 0x01, 0x04, 0x20, 0x00, 0x01,
   0x06, 0x20, 0x00, 0x03, 0x02, 0x20, 0x00, 0x02, 0x1e, 0x60, 0xc0, 0x03,
   0x02, 0xc0, 0x00, 0x02, 0x06, 0x80, 0x01, 0x03, 0x04, 0x00, 0x03, 0x01,
   0x04, 0x00, 0x22, 0x01, 0x2c, 0x00, 0xc0, 0x01, 0x18, 0x00, 0xc0, 0x00,
   0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x48, 0x00, 0x60, 0x22, 0x30, 0x00,
   0x80, 0x21, 0x0c, 0x00, 0x00, 0xaf, 0x07, 0x00, 0x00, 0xf8, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00};
xvisual/xv/X11/xv/xvVisualList.h100644    765    144        1755  6141622146  15607 0ustar  steveusers#ifndef _VxvVisualList_h
#define _VxvVisualList_h

class xvVisualList: public xvView, public xvList
{
	public:
		xvVisualList();
		xvVisualList(String name, xvCore & parent, XtCallbackProc callback,
			int numdata, char *listdata[], int columns=1, Boolean design=TRUE);

		~xvVisualList();

		void init(String name, xvCore & parent, XtCallbackProc callback,
			int numdata, char *listdata[], int columns=1, Boolean design=TRUE);

		void GetResource(String resname, XtArgVal *val);
		void SetResource(String resname, XtArgVal val);
		void SetFixedPosition(Boolean val);

		void SetForeground(String name);
		void SetForeground(Pixel fg);
		void SetBackground(String name);
		void SetBackground(Pixel bg);
		void Map();
		void Unmap();
		void SetSensitive(Boolean sense);
		void SetMappedWhenManaged(Boolean man);
		void AddEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata);
		void RemoveEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata);

};

#endif // _VxvVisualList_h
xvisual/xv/X11/xv/xvEditWindow.h100644    765    144        1216  6141622146  15555 0ustar  steveusers#ifndef _VxvEditWindow_h
#define _VxvEditWindow_h

class xvEditWindow: public xvWindow, public xvEditField
{
	
	public:
		xvEditWindow();
		xvEditWindow(xvCore & parent, String header, XawTextEditType mode, 
			String datasource, Dimension xsize, Dimension ysize, 
			XtCallbackProc ok_call, XtCallbackProc cancel_call, String client=NULL);
		~xvEditWindow();

		void init(xvCore & parent, String header, XawTextEditType mode, 
			String datasource, Dimension xsize, Dimension ysize, 
			XtCallbackProc ok_call, XtCallbackProc cancel_call, String client=NULL);


	private:
		xvButton editok, editcancel;
		xvForm editform;
};

#endif // _VxvEditWindow_h
xvisual/xv/X11/xv/xvBasicBitmap.h100644    765    144        1142  6141622146  15654 0ustar  steveusers#ifndef _VxvBasicBitmap_h
#define _VxvBasicBitmap_h

#define XVBITMAP		0
#define XVPIXMAP		1

class xvBasicBitmap
{
	public:
		xvBasicBitmap();
		xvBasicBitmap(String name, xvCore & object, int pixtype=XVBITMAP);
		~xvBasicBitmap();

		void init(String name, xvCore & object, int pixtype=XVBITMAP);
		void init(String name, Widget wid, int pixtype=XVBITMAP);

		int ReadFile(String name, int pixtype=XVBITMAP);
		Pixmap GetPixmap();

	protected:	
		Pixmap xvpixmap;
		Pixmap dxvpixmap;

		Display *xvdisplay;
		Window xvwindow;
		unsigned int width, height;
		int hotx, hoty;	

};


#endif // _VxvBasicBitmap_hxvisual/xv/X11/xv/xvPopupTransientShell.h100644    765    144        1107  6141622146  17462 0ustar  steveusers#ifndef _VxvPopupTransientShell_h
#define _VxvPopupTransientShell_h


class xvPopupTransientShell: public xvCore
{
	public:
		xvPopupTransientShell();
		xvPopupTransientShell(String name, xvCore & parent);
		~xvPopupTransientShell();
	  
		void init(String name, xvCore & parent);
		void Open();
		void Open(Position x, Position y);
		void Close();
		
	protected:
		void init(String name, xvCore & parent, WidgetClass wid, String header, XtTranslations mt);	
		void PlaceShell();
		Widget shell;
		Widget MyParent;

	private:
		Boolean alloc;
};

#endif // _VxvPopupTransientShell_h
xvisual/xv/xvBasicBitmap.cc100644    765    144        4542  6164234412  15013 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/xpm.h>
#include <string.h>
#include <X11/xv/xvCore.h>
#include <X11/xv/xvBasicBitmap.h>

// ---------------------------------------------

xvBasicBitmap::xvBasicBitmap()
{ 
}

// ---------------------------------------------

xvBasicBitmap::xvBasicBitmap(String name, xvCore & object, int ptype)
{
	init(name, object, ptype);
}

// ---------------------------------------------

xvBasicBitmap::~xvBasicBitmap()
{
}

// ---------------------------------------------

void xvBasicBitmap::init(String name, xvCore & object, int pixtype)
{
	init(name, object.ID(), pixtype);
}

// ---------------------------------------------

void xvBasicBitmap::init(String name, Widget wid, int pixtype)
{ 
	xvdisplay=XtDisplay(wid);
	xvwindow=RootWindowOfScreen(XtScreen(wid));
	if (name != NULL) 
		ReadFile(name, pixtype);
}		

// ---------------------------------------------

int xvBasicBitmap::ReadFile(String name, int pixtype)
{
	int bmr=0;
	if (pixtype==XVBITMAP)
		bmr=XReadBitmapFile(xvdisplay, xvwindow, name, &width, &height,
			&xvpixmap, &hotx, &hoty);
	else
		bmr=XpmReadFileToPixmap(xvdisplay, xvwindow, name, &xvpixmap, &dxvpixmap,
			NULL);

	return(bmr);
}

// ---------------------------------------------

Pixmap xvBasicBitmap::GetPixmap()
{
	return(xvpixmap);
}

// ----------------------------------------------
xvisual/xv/xvBitmap.cc100644    765    144        4334  6164234423  14052 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <string.h>
#include <X11/xv/xvCore.h>
#include <X11/xv/xvFont.h>
#include <X11/xv/xvBasicBitmap.h>
#include <X11/xv/xvLabel.h>
#include <X11/xv/xvBitmap.h>

// ---------------------------------------------

xvBitmap::xvBitmap()
{ 
}

// ---------------------------------------------

xvBitmap::xvBitmap(String name, xvCore & object, Boolean visual, int pixtype)
{
	init(name, object, visual, pixtype);
}

// ---------------------------------------------

xvBitmap::~xvBitmap()
{
}

// ---------------------------------------------

void xvBitmap::init(String name, xvCore & object, Boolean visual, int pixtype)
{
	init(name, object.ID(),visual, pixtype);
}

// ---------------------------------------------

void xvBitmap::init(String name, Widget wid, Boolean visual, int pixtype)
{ 
	int ok=0;
	vis=visual;

	if (visual) {
		xvLabel::init(name, wid);
		xvLabel::SetBorderWidth(1);
		xvLabel::SetLabel(name);
	}
	else
		xvBasicBitmap::init(NULL, wid, pixtype);
}

// ---------------------------------------------

Pixmap xvBitmap::GetPixmap()
{
	if (vis)
		return(xvLabel::bmap.GetPixmap());
	else
		return(xvBasicBitmap::GetPixmap());
}

// ----------------------------------------------
xvisual/xv/xvBox.cc100600    765    144        3236  6164234434  13360 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw3d/Box.h>
#include <X11/xv/xvCore.h>
#include <X11/xv/xvBox.h>

// ---------------------------------------------

xvBox::xvBox()
{
	alloc=FALSE;
}

// ---------------------------------------------

xvBox::xvBox(String name, xvCore & parent)
{
	init(name, parent);
}

// ---------------------------------------------

xvBox::~xvBox()
{
	if (alloc) XtDestroyWidget(w);
}

// ---------------------------------------------

void xvBox::init(String name, xvCore & parent)
{
	w=XtVaCreateManagedWidget(name, boxWidgetClass, parent.ID(),
			NULL);
	alloc=TRUE;
}

// ---------------------------------------------

	xvisual/xv/xvButton.cc100600    765    144        5562  6164234447  14113 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw3d/Command.h>
#include <X11/xv/xvCore.h>
#include <X11/xv/xvFont.h>
#include <X11/xv/xvBasicBitmap.h>
#include <X11/xv/xvButton.h>

// -----------------------------------------------------------------

xvButton::xvButton()
{
	alloc=FALSE;
}

// -----------------------------------------------------------------

xvButton::xvButton(char *name, xvCore & parent, XtCallbackProc callback, String client)
{
	init(name, parent, callback, client);
}

// =================================================================

xvButton::~xvButton()
{
	if (alloc) XtDestroyWidget(w);
}

// -----------------------------------------------------------------

void  xvButton::init(char *name, xvCore & parent, XtCallbackProc callback, String client)
{
	init(name, parent.ID(), callback, client);
}

// -----------------------------------------------------------------
void  xvButton::init(char *name, Widget parent, XtCallbackProc callback, String client)
{
	w=XtVaCreateManagedWidget(name, commandWidgetClass, parent, 
	    NULL);
	alloc=TRUE;          
	XtAddCallback(w, XtNcallback, callback, (XtPointer) client);
	bfont.init(w, NULL);
	bmap.init(NULL, w);
}

// -----------------------------------------------------------------

void xvButton::ChangeFont(String fontname)
{
	if (fontname != NULL) {
		bfont.FLoadFont(fontname);
		XtVaSetValues(w, XtNfont, (XtArgVal) bfont.FontRef(), NULL);
	}
}

// -----------------------------------------------------------------

int xvButton::ChangeBitmap(String name, int pixtype, int position)
{
	int err;

	if ((err=bmap.ReadFile(name, pixtype)) == 0)
		if (position==XVCENTREBITMAP)
			XtVaSetValues(w, XtNbitmap, (XtArgVal) bmap.GetPixmap(), NULL);
		else
			XtVaSetValues(w, XtNleftBitmap, (XtArgVal) bmap.GetPixmap(), NULL);
	return(err);
}

// -----------------------------------------------------------------
	xvisual/xv/xvContext.cc100600    765    144        6736  6164234457  14271 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/xv/xvCore.h>
#include <X11/xv/xvContext.h>

#define MAXCOUNT	50

// ---------------------------------------------

xvContext::xvContext()
{
	actionset=FALSE;
}

// ---------------------------------------------

xvContext::xvContext(String name, int argc, char **argv)
{
	init(name, argc, argv);
}

// ---------------------------------------------

xvContext::~xvContext()
{
}

// ---------------------------------------------

XtAppContext xvContext::GetContext()
{
	return(ContextContext);
}

// ---------------------------------------------

void xvContext::init(String name, int argc, char **argv)
{

	w=XtVaAppInitialize(&ContextContext, name, NULL, 0, &argc, argv, 
		NULL, NULL);
	actionset=FALSE;
	ContextDisplay=XtDisplay(w);
	flushcount=0;
}

// ---------------------------------------------

void xvContext::ServiceEvent()
{
	if (XtAppPending(ContextContext) != 0) {
		XtAppNextEvent(ContextContext, &ContextEvent);
		XtDispatchEvent(&ContextEvent);
		flushcount++;
		if (flushcount > MAXCOUNT) {
			flushcount=0;
			XFlush(ContextDisplay);
		}
	}
}

// -------------------------------------------

void xvContext::RegisterWorkProc(XtWorkProc proc, XtPointer cdata)
{
	wproc=XtAppAddWorkProc(ContextContext, proc, cdata);
}

// -------------------------------------------

void xvContext::UnregisterWorkProc()
{
	XtRemoveWorkProc(wproc);
}

// -------------------------------------------

void xvContext::AddAction(String acname, XtActionProc proc)
{
	XtActionsRec thisaction[]= {
		{acname, proc },
	};

	XtAppAddActions(ContextContext, thisaction, XtNumber(thisaction));
}

// -------------------------------------------

XtActionHookId xvContext::AddActionHook(XtActionHookProc proc, XtPointer clientdata)
{
	if (!actionset) {
		waction=XtAppAddActionHook(ContextContext, proc, clientdata);
		actionset=TRUE;
		return(waction);
	}
	else
		return((XtActionHookId) NULL);
}

// -------------------------------------------

void xvContext::RemoveActionHook()
{
	if (actionset) XtRemoveActionHook(waction);
	actionset=FALSE;
}

// -------------------------------------------

void xvContext::Error(String message)
{
	XtAppError(ContextContext, message);
}

// -------------------------------------------

void xvContext::ErrorMsg(String name, String etype, String eclass, String edefault, String *params,
			Cardinal *numpar)
{
	XtAppErrorMsg(ContextContext, name, etype, eclass, edefault, params, numpar);
}

// -------------------------------------------

xvisual/xv/xvCore.cc100600    765    144       37713  6164234472  13551 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
        ******************************************************************************* */

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/xpm.h>
#include <X11/Xaw3d/ThreeD.h>
#include <X11/xv/xvCore.h>
#include <string.h>

// ---------------------------------

xvCore::~xvCore()
{
}

// ---------------------------------

inline void xvCore::Hide() 
{
	XtUnrealizeWidget(w);
}

// ---------------------------------

inline void xvCore::Show()
{
	XtRealizeWidget(w);
	XtMapWidget(w);
}

// ---------------------------------

inline void xvCore::Unmap() 
{
	XtUnmapWidget(w);
}

// ---------------------------------

inline void xvCore::Map()
{
	XtMapWidget(w);
}

// ---------------------------------

inline void xvCore::SetAccelerators(XtAccelerators atable)
{
	XtVaSetValues(w, XtNaccelerators, (XtArgVal) atable, NULL);
}

//----------------------------------

inline void xvCore::SetAncestorSensitive(Boolean sense)
{
	XtVaSetValues(w, XtNancestorSensitive, (XtArgVal) sense, NULL);
}

// ---------------------------------

inline void xvCore::SetBackground(Pixel b)
{
	if (b!=-1)
		XtVaSetValues(w, XtNbackground, (XtArgVal) b, NULL);
}

// ----------------------------------

inline void xvCore::SetBackground(String colour)
{	
	XtVaSetValues(w, XtVaTypedArg, XtNbackground, XtRString, 
				colour, strlen(colour), NULL);
}

// ----------------------------------

inline void xvCore::SetBackgroundPixmap(Pixmap p)
{
	if (p != -1) 
		XtVaSetValues(w, XtNbackgroundPixmap, (XtArgVal) p, NULL);
}

// ---------------------------------

inline void xvCore::SetBorderColor(Pixel b)
{
	if (b != -1)
		XtVaSetValues(w, XtNborderColor, (XtArgVal) b, NULL);
}

// ----------------------------------

inline void xvCore::SetBorderColor(String colour)
{	
	XtVaSetValues(w, XtVaTypedArg, XtNborderColor, XtRString, 
				colour, strlen(colour), NULL);
}

// ----------------------------------

inline void xvCore::SetBorderPixmap(Pixmap p)
{
	if (p != -1) 
		XtVaSetValues(w, XtNborderPixmap, (XtArgVal) p, NULL);
}

// ---------------------------------

inline void xvCore::SetBorderWidth(Dimension b)
{
	XtVaSetValues(w, XtNborderWidth, (XtArgVal) b, NULL);
}

// ---------------------------------

inline Dimension xvCore::GetBorderWidth()
{
	Dimension bw;
	XtVaGetValues(w, XtNborderWidth, &bw, NULL);
	return(bw);
}

// ---------------------------------

inline void xvCore::SetColormap(Colormap c)
{
	XtVaSetValues(w, XtNcolormap, (XtArgVal) c, NULL);
}

// ---------------------------------

inline void xvCore::SetDepth(int d)
{
	XtVaSetValues(w, XtNdepth, (XtArgVal) d, NULL);
}

// ----------------------------------

inline int xvCore::GetDepth()
{
	int d;
	XtVaGetValues(w, XtNdepth, &d, NULL);
	return(d);
}

// ----------------------------------

inline void xvCore::SetDestroyCallback(XtCallbackProc d)
{
	XtAddCallback(w, XtNdestroyCallback, d, 0);
}

// ----------------------------------

inline void xvCore::SetHeight(Dimension h)
{
	XtVaSetValues(w, XtNheight, (XtArgVal) h, NULL);
}

// ----------------------------------

inline Dimension xvCore::GetHeight()
{
	Dimension h;
	XtVaGetValues(w, XtNheight, &h, NULL);
	return(h);
}

// ----------------------------------

inline void xvCore::SetMappedWhenManaged(Boolean m)
{
	XtVaSetValues(w, XtNmappedWhenManaged, (XtArgVal) m, NULL);
}

// ----------------------------------

inline void xvCore::SetSensitive(Boolean s)
{
	XtVaSetValues(w, XtNsensitive, (XtArgVal) s, NULL);
}

// ----------------------------------

inline void xvCore::SetTranslations(XtTranslations trans)
{
	XtVaSetValues(w, XtNtranslations, (XtArgVal) trans, NULL);
}

// ----------------------------------

inline void xvCore::OverrideTranslations(XtTranslations trans)
{
	XtOverrideTranslations(w, trans);
}

// ----------------------------------

inline void xvCore::AugmentTranslations(XtTranslations trans)
{
	XtAugmentTranslations(w, trans);
}

// ----------------------------------

inline void xvCore::SetWidth(Dimension xw)
{
	XtVaSetValues(w, XtNwidth, (XtArgVal) xw, NULL);
}

// ----------------------------------

inline Dimension xvCore::GetWidth()
{
	Dimension xw;
	XtVaGetValues(w, XtNwidth, &xw, NULL);
	return(xw);
}

// ----------------------------------

inline void xvCore::SetX(Position x)
{
	XtVaSetValues(w, XtNx, (XtArgVal) x, NULL);
}

// ----------------------------------

inline Position xvCore::GetX()
{
	Position x;
	XtVaGetValues(w, XtNx, &x, NULL);
	return(x);
}

// ----------------------------------

inline void xvCore::SetY(Position y)
{
	XtVaSetValues(w, XtNy, (XtArgVal) y, NULL);
}

// ---------------------------------

inline Position xvCore::GetY()
{
	Position y;
	XtVaGetValues(w, XtNy, &y, NULL);
	return(y);
}

// ----------------------------------

inline void xvCore::SetXY(Position x, Position y)
{
	XtVaSetValues(w, XtNx, (XtArgVal) x, XtNy, (XtArgVal) y, NULL);
}

// ---------------------------------

inline void xvCore::GetXY(Position *x, Position *y)
{
	XtVaGetValues(w, XtNx, x, XtNy, y, NULL);
}

// ---------------------------------

inline void xvCore::SetResource(String rname, XtArgVal val)
{
	XtVaSetValues(w, rname, (XtArgVal) val, NULL);
}

// ---------------------------------

inline void xvCore::GetResource(String rname, XtArgVal *val)
{
	XtVaGetValues(w, rname, val, NULL);
}

// ---------------------------------

inline void xvCore::SetShadowWidth(Dimension sw)
{
	XtVaSetValues(w, XtNshadowWidth, (XtArgVal) sw, NULL);
}

// ---------------------------------

inline void xvCore::SetTopShadowPixel(Pixel tsp)
{
	if (tsp != -1)
		XtVaSetValues(w, XtNtopShadowPixel, (XtArgVal) tsp, NULL);
}

// ---------------------------------

inline void xvCore::SetTopShadowPixel(String colour)
{	
	XtVaSetValues(w, XtVaTypedArg, XtNtopShadowPixel, XtRString, 
				colour, strlen(colour), NULL);
}

// ---------------------------------

inline void xvCore::SetBottomShadowPixel(Pixel bsp)
{
	if (bsp != -1)
		XtVaSetValues(w, XtNbottomShadowPixel, (XtArgVal) bsp, NULL);
}

// ---------------------------------

inline void xvCore::SetBottomShadowPixel(String colour)
{	
	XtVaSetValues(w, XtVaTypedArg, XtNbottomShadowPixel, XtRString, 
				colour, strlen(colour), NULL);
}

// ---------------------------------

inline void xvCore::SetTopShadowContrast(int tsc)
{
	XtVaSetValues(w, XtNtopShadowContrast, (XtArgVal) tsc, NULL);
}

// ---------------------------------

inline void xvCore::SetBottomShadowContrast(int bsc)
{
	XtVaSetValues(w, XtNbottomShadowContrast, (XtArgVal) bsc, NULL);
}

// ---------------------------------

inline void xvCore::SetUserData(XtPointer ud)
{
	XtVaSetValues(w, XtNuserData, (XtArgVal) ud, NULL);
}

// ---------------------------------

inline void xvCore::SetBeNiceToColormap(Boolean bntc)
{
	XtVaSetValues(w, XtNbeNiceToColormap, (XtArgVal) bntc, NULL);
}

// ---------------------------------

inline Widget xvCore::ID()
{
	return(w);
}

// ---------------------------------

inline void xvCore::SetLabel(String lab)
{
	XtVaSetValues(w, XtNlabel, (XtArgVal) lab, NULL);
}

// ---------------------------------	

inline void xvCore::SetFont(XFontStruct *xfs)
{
	XtVaSetValues(w, XtNfont, (XtArgVal) xfs, NULL);
}

// --------------------------------

inline void xvCore::SetForeground(Pixel fg)
{
	if (fg != -1)
		XtVaSetValues(w, XtNforeground, (XtArgVal) fg, NULL);
}

// --------------------------------

inline void xvCore::SetForeground(String colour)
{	
	XtVaSetValues(w, XtVaTypedArg, XtNforeground, XtRString, 
				colour, strlen(colour), NULL);
}

// --------------------------------

inline void xvCore::SetFontSet(XFontSet xfnt)
{
	XtVaSetValues(w, XtNfontSet, (XtArgVal) xfnt, NULL);
}

// --------------------------------

inline void xvCore::SetJustify(XtJustify xj)
{
	XtVaSetValues(w, XtNjustify, (XtArgVal) xj, NULL);
}

// --------------------------------

inline void xvCore::SetCallback(XtCallbackProc callback)
{
	XtVaSetValues(w, XtNcallback, (XtArgVal) callback, NULL);
}

// --------------------------------

inline void xvCore::SetHSpace(Dimension hs)
{
	XtVaSetValues(w, XtNhSpace, (XtArgVal) hs, NULL);
}

// --------------------------------

inline void xvCore::SetVSpace(Dimension vs)
{
	XtVaSetValues(w, XtNvSpace, (XtArgVal) vs, NULL);
}

// --------------------------------

inline void xvCore::SetBottomEdge(XawEdgeType bedge)
{
	XtVaSetValues(w, XtNbottom, (XtArgVal) bedge, NULL);
}

// --------------------------------

inline void xvCore::SetLeftEdge(XawEdgeType ledge)
{
	XtVaSetValues(w, XtNleft, (XtArgVal) ledge, NULL);
}

// --------------------------------

inline void xvCore::SetRightEdge(XawEdgeType redge)
{
	XtVaSetValues(w, XtNright, (XtArgVal) redge, NULL);
}

// --------------------------------

inline void xvCore::SetTopEdge(XawEdgeType tedge)
{
	XtVaSetValues(w, XtNtop, (XtArgVal) tedge, NULL);
}

// --------------------------------

inline void xvCore::SetRelHorizontal(xvCore & wg)
{
	XtVaSetValues(w, XtNfromHoriz, (XtArgVal) wg.ID(), NULL);
}

// -------------------------------

inline void xvCore::SetRelVertical(xvCore &  wg)
{
	XtVaSetValues(w, XtNfromVert, (XtArgVal) wg.ID(), NULL);
}

// -------------------------------

inline void xvCore::SetRelative(xvCore & hg, xvCore & vg)
{
	XtVaSetValues(w, XtNfromHoriz, (XtArgVal) hg.ID(), XtNfromVert, (XtArgVal) vg.ID(), NULL);
}

// -------------------------------

inline void xvCore::SetResizable(Boolean srz)
{
	XtVaSetValues(w, XtNresizable, (XtArgVal) srz, NULL);
}

// -------------------------------

inline void xvCore::SetVertDistance(int vd)
{
	XtVaSetValues(w, XtNvertDistance, (XtArgVal) vd, NULL);
}

// -------------------------------

inline int xvCore::GetVertDistance()
{
	int vd;

	XtVaGetValues(w, XtNvertDistance, &vd, NULL);
	return(vd);
}

// -------------------------------

inline void xvCore::SetHorizDistance(int hd)
{
	XtVaSetValues(w, XtNhorizDistance, (XtArgVal) hd, NULL);
}

// -------------------------------

inline int xvCore::GetHorizDistance()
{
	int vd;

	XtVaGetValues(w, XtNhorizDistance, &vd, NULL);
	return(vd);
}

// -------------------------------

inline void xvCore::SetDistance(int hd, int vd)
{
	XtVaSetValues(w, XtNhorizDistance, hd, XtNvertDistance, vd, NULL);
}

// -------------------------------

inline void xvCore::GetDistance(int *hd, int *vd)
{
	XtVaGetValues(w, XtNhorizDistance, hd, XtNvertDistance, vd, NULL);
}

// -------------------------------

inline void xvCore::SetDefaultDistance(int dd)
{
	XtVaSetValues(w, XtNdefaultDistance, (XtArgVal) dd, NULL);
}

// -------------------------------

inline void xvCore::SetIcon(Pixmap ico)
{
	XtVaSetValues(w, "icon", (XtArgVal) ico, NULL);
}

// -------------------------------

inline Pixmap xvCore::SetBitmapInfo(unsigned char *bits, unsigned int sw, unsigned int sh,
			String resource)
{
	icon=XCreateBitmapFromData(XtDisplay(w), 
		RootWindowOfScreen(XtScreen(w)),
		(char *)bits, sw, sh);

	if (resource != NULL)
		XtVaSetValues(w, resource, (XtArgVal) icon, NULL);

	return(icon);
}

// -------------------------------

inline Pixmap xvCore::SetBitmapInfo(char *bits, unsigned int sw, unsigned int sh,
			String resource)
{
	icon=XCreateBitmapFromData(XtDisplay(w), 
		RootWindowOfScreen(XtScreen(w)),
		bits, sw, sh);

	if (resource != NULL)
		XtVaSetValues(w, resource, (XtArgVal) icon, NULL);

	return(icon);
}

// -------------------------------

inline Pixmap xvCore::SetPixmapInfo(char **bits, String resource)
{
	int ret=XpmCreatePixmapFromData(XtDisplay(w), 
		RootWindowOfScreen(XtScreen(w)),
		bits, &icon, &iconmask, NULL);

	if (ret==0)
		if (resource != NULL)
			XtVaSetValues(w, resource, (XtArgVal) icon, NULL);

	return(icon);
}

// -------------------------------

inline void xvCore::SetInternalWidth(Dimension iw)
{
	XtVaSetValues(w, XtNinternalWidth, (XtArgVal) iw, NULL);
}

// -------------------------------

inline Dimension xvCore::GetInternalWidth()
{
	Dimension iw;
	XtVaGetValues(w, XtNinternalWidth, &iw, NULL);
	return(iw);
}

// -------------------------------

inline void xvCore::SetInternalHeight(Dimension ih)
{
	XtVaSetValues(w, XtNinternalHeight, (XtArgVal) ih, NULL);
}

// -------------------------------

inline Dimension xvCore::GetInternalHeight()
{
	Dimension ih;
	XtVaGetValues(w, XtNinternalHeight, &ih, NULL);
	return(ih);
}

// -------------------------------

inline void xvCore::SetGeometry(Position x, Position y, Dimension wid, Dimension h)
{
	XtVaSetValues(w, XtNx, (XtArgVal) x, 
					XtNy, (XtArgVal) y, 
					XtNwidth, (XtArgVal) wid, 
					XtNheight, (XtArgVal) h, 	
					NULL);
}

// -------------------------------

inline void xvCore::GetGeometry(Position *x, Position *y, Dimension *wid, Dimension *h)
{
	XtVaGetValues(w, XtNx, x, XtNy, y, XtNwidth, wid, XtNheight, h, NULL);
}

// --------------------------------

inline void xvCore::SetSize(Dimension wid, Dimension h)
{
	XtVaSetValues(w, XtNwidth, (XtArgVal) wid, 
					XtNheight, (XtArgVal) h, 	
					NULL);
}

// -------------------------------

inline void xvCore::GetSize(Dimension *wid, Dimension *h)
{
	XtVaGetValues(w, XtNwidth, wid, XtNheight, h, NULL);
}

// --------------------------------

inline void xvCore::AddEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata)
{
	XtAddEventHandler(w, eventmask, FALSE, handler, cdata);
}

// --------------------------------

inline void xvCore::RemoveEvent(EventMask eventmask, XtEventHandler handler, XtPointer cdata)
{
	XtRemoveEventHandler(w, eventmask, FALSE, handler, cdata);
}

// --------------------------------

inline void xvCore::SetTreeGC(GC ngc)
{
	XtVaSetValues(w, XtNtreeGC, (XtArgVal) ngc, NULL);
}

// --------------------------------

inline void xvCore::SetTreeParent(Widget parent)
{
	XtVaSetValues(w, XtNtreeParent, (XtArgVal) parent, NULL);
}

// ---------------------------------

inline void xvCore::SetTreeParent(xvCore & parent)
{
	XtVaSetValues(w, XtNtreeParent, (XtArgVal) parent.ID(), NULL);
}

// ---------------------------------

inline void xvCore::SetBitmap(Pixmap pix)
{
	XtVaSetValues(w, XtNbitmap, (XtArgVal) pix, NULL);
}

// ---------------------------------

inline void xvCore::SetFixedPosition(Boolean fix)
{
	if (fix) 
		XtVaSetValues(w, XtNleft, XawChainLeft, XtNright, XawChainLeft,
					XtNtop, XawChainTop, XtNbottom, XawChainTop, NULL);
	else
		XtVaSetValues(w, XtNleft, XawRubber, XtNright, XawRubber, 
					XtNtop, XawRubber, XtNbottom, XawRubber, NULL);
}

// -----------------------------------

inline void xvCore::SetCursorName(String cname)
{
	XtVaSetValues(w, XtNcursor, None, XtNcursorName, (XtArgVal) NULL, NULL);
	XtVaSetValues(w, XtNcursorName, (XtArgVal) cname, NULL);
}

// ------------------------------------

inline void xvCore::SetCursor(Cursor curs)
{
	XtVaSetValues(w, XtNcursor, (XtArgVal) curs, NULL);
}

// ------------------------------------

inline void xvCore::AddGrab(Boolean exclusive, Boolean sprung)
{
	XtAddGrab(w, exclusive, sprung);
}

// ------------------------------------

inline void xvCore::RemoveGrab()
{
	XtRemoveGrab(w);
}

// ------------------------------------

inline Pixel xvCore::stringToPixel(String colname)
{
	XrmValue from, to;
	Pixel output;
	Boolean testx;

	from.addr=colname;
	from.size=strlen(colname);

	to.addr=(char *) &output;
	to.size=sizeof(Pixel);

	testx=XtConvertAndStore(w, XtRString, &from, XtRPixel, &to);

	if (testx) 
		return(output);	
	else
		return((Pixel) -1);
}

// ----------------------------------------------------
xvisual/xv/xvCursor.cc100644    765    144        3670  6164234506  14117 0ustar  steveusers
/*     *******************************************************************************
	XVisual GUI Development System for Linux/X-Window
	Copyright (C) 1996 Steve Carrie.

        This program is free softw