|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T w
Length: 3383 (0xd37)
Types: TextFile
Names: »widget.h«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/others/quipu/uips/widget/widget.h«
/* widget.h - definition of the widget structure and assorted constants */
/*
* $Header: /f/osi/others/quipu/uips/widget/RCS/widget.h,v 6.0 89/03/18 23:34:56 mrose Rel $
*
*
* $Log: widget.h,v $
* Revision 6.0 89/03/18 23:34:56 mrose
* Release 5.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