|
|
BSD 4.3reno
/* widget.h - definition of the widget structure and assorted constants */
/*
* $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/others/quipu/uips/sd/widget.h,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
*/
/*
* $Log: widget.h,v $
* Revision 1.1.1.1 2018/04/24 16:12:56 root
* BSD 4.3reno
*
* Revision 7.0 90/06/12 13:14:32 mrose
* *** empty log message ***
*
* Revision 1.6 90/04/26 10:36:45 emsrdsm
* *** empty log message ***
*
* Revision 1.5 90/04/25 15:07:58 emsrdsm
* i) lint'ed
*
* Revision 1.4 90/04/20 17:58:19 emsrdsm
* i) no more freeing
*
* Revision 1.3 90/04/18 18:28:33 emsrdsm
* fixed i) does not move to leaves
* ii) added default mechanism described using "typeDefaults" file.
* iii) added 'sorting' to attribute display
*
* Revision 1.2 90/03/15 16:33:40 emsrdsm
* y
*
* Revision 1.1 90/03/09 17:41:20 emsrdsm
* Initial revision
*
* Revision 1.1 90/03/09 13:39:34 emsrdsm
* Initial revision
*
*/
/*
* 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
#define DUMMY 6
/* 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
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.