/*
	Public header file for magtape widget
*/

#ifndef MAGTAPE_H
#define MAGTAPE_H

#define TAPE_IDLE 10
#define TAPE_FORWARD 20
#define TAPE_REVERSE 30
#define TAPE_REWIND 40

#define GAPLEN (0.75*0.0254)
#define BLOCKLEN(words,density) ((((double)(words))*7.0/((double)(density)))*0.0254+(GAPLEN))
#define TAPELENGTH (2400.0*12.0*0.0254)

/* global variable applicationdata */
typedef struct
{
} MagTapeApplicationData, *MagTapeApplicationDataPtr;

extern WidgetClass XsmagTapeWidgetClass;
typedef struct _XsMagTapeClassRec *XsMagTapeWidgetClass;
typedef struct _XsMagTapeRec *XsMagTapeWidget;

#define XtNbackgroundColor	"backgroundColor"
#define XtNdone			"done"
#define XtNtapeLabel		"tapeLabel"
#define XtCTapeLabel		"TapeLabel"
#define XtNunitNo		"unitNo"
#define XtCUnitNo		"UnitNo"

#define XtNvisualInfo		"visualInfo"
#define XtCVisualInfo		"VisualInfo"
#define XtRVisualInfo		"VisualInfo"

/* exported functions */
extern int XsmagTapeIdle(XsMagTapeWidget);
extern int XsmagTapeCommand(XsMagTapeWidget, int, double );


#endif

