|
|
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: 3803 (0xedb)
Types: TextFile
Names: »widget.h«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/others/quipu/uips/widget2/widget.h«
/* widget.h - definition of the widget structure and assorted constants */
/*
* $Header: /f/osi/others/quipu/uips/widget2/RCS/widget.h,v 7.1 89/12/06 08:22:18 mrose Exp $
*
*
* $Log: widget.h,v $
* Revision 7.1 89/12/06 08:22:18 mrose
* sync
*
* 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.
*
*/
/*****************************************************************************/
/*This file has been modified;
/*Modifier: Damanjit Mahl @ Brunel University, Uxbridge
/*Date: October 31st, 1989.
/*****************************************************************************/
/*****************************************************************************/
/* 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
#define SCROLLBAR 5
/* 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
/* Thisdefines 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 4
/* This defines the maximum number of levels of active widgets */
#define MAXACTIVE 10
#ifndef BUFLEN
#define BUFLEN 1024
#endif
int lowy;
/* 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;
WIDGET *currwidgets;
char typetoggled;
#ifndef WIDGETLIB
extern int nullfn();
extern int quitfn();
extern WIDGET *getwidget();
#endif