DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T w

⟦80100b63a⟧ TextFile

    Length: 3383 (0xd37)
    Types: TextFile
    Names: »widget.h«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/others/quipu/uips/widget/widget.h« 

TextFile

/* widget.h - definition of the widget structure and assorted constants */

/* 
 * $Header: /f/osi/others/quipu/uips/widget/RCS/widget.h,v 7.0 89/11/23 22:09:47 mrose Rel $
 *
 *
 * $Log:	widget.h,v $
 * Revision 7.0  89/11/23  22:09:47  mrose
 * Release 6.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


/*****************************************************************************/
/* File:	widget.h
/* Author:	Paul Sharpe @ GEC Research, Hirst Research Centre.
/* Date:	August 12, 1988.
/* Function:	Definition of the widget structure and assorted constants.
/*
/* DISCLAIMER:
/* This source file is deemed to be public domain: any person may use the
/* code in any way, on two simple provisos -
/*   1 - That this header remains in this file,
/*   2 - It is accepted that neither the author, nor the authors employees
/*       accept any responsibility for the use, abuse or misuse of the
/*       contained code.
/* No guarantee is made by the author to provide maintainance or up-grading
/* of this source. However, any adaptations made to this file will be viewed
/* at least with interest.
/*****************************************************************************/

/* These define the type of the widget involved */
#define FINISH		0
#define LABEL		1
#define COMMAND		2
#define TOGGLE		3
#define DIALOG		4

/* These define functions that aren't really needed */
#define NULLFN		nullfn
#define TOGGLEFN	NULLFN
#define QUITFN		quitfn

/* These define the LABEL wdgt text justification */
#define CENTER		CENTRE
#define CENTRE		1
#define LEFT		2
#define RIGHT		4

/* This defines an expanded widget box */
#define EXPAND		-1

/* This defines a widget position starting on a new line */
#define CRNL		-1

/* This is the default shown length of the dialog string */
#define DIALOGLEN	20

/* This defines the maximum number of levels of active widgets */
#define MAXACTIVE	10
#ifndef BUFLEN
#define BUFLEN		256
#endif

/* This is the height of a widget box, in number of lines */
#define WDGTHGHT	3

typedef struct widget {
    char	type;		/* Type of widget: see the above definitions */
    char	*label;		/* text string label for the widget          */

/* The former is used by LABEL and COMMAND widgets: the latter by COMMAND    */
    char	callch;		/* Character to activate the COMMAND widget  */
    int		(*callfn)();	/* Function called by an activated COMMAND   */

/* ALL widgets need these fields to be set */
    int		x,y;		/* Position of the top right of the window   */
    int		wdth, hght;	/* width and height of the widget window     */

/* These are only used by the DIALOG type widgets                            */
    int		dstrlen;	/* Maximum length of the DIALOG widget str   */
    char	*dstr;		/* Pointer to the DIALOG string to fill in   */

/* These are only used by the TOGGLE type widgets                            */
    char	tindx;		/* Index into the toggle values              */
    char	**tvalues;	/* NULL-terminated array of TOGGLE strings   */

    WINDOW	*wndw;		/* The curses-widget window structure        */
} WIDGET;

#ifndef WIDGETLIB
extern int	nullfn();
extern int	quitfn();
extern WIDGET	*getwidget();
#endif