/usr/include/yalecad/dialog.h is in libycadgraywolf-dev 0.1.4+20170307gite1bf319-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /* -----------------------------------------------------------------
FILE: dialog.h
DESCRIPTION:user insert file for dialog box routines.
CONTENTS: typedefs and definitions
DATE: Sep 16, 1989 - original coding.
REVISIONS: Dec 7, 1990 - added update function to dialog box.
----------------------------------------------------------------- */
#ifndef DIALOG_H
#define DIALOG_H
#ifndef lint
static char dialogHId[] = "@(#) dialog.h version 1.4 12/7/90" ;
#endif
#include <yalecad/base.h>
#define LABELTYPE 0
#define INPUTTYPE 1
#define BUTTONTYPE 2
#define CASETYPE 3
typedef struct {
INT row, column, len ;
char *string ;
INT type ;
INT color ;
INT group ; /* used for CASETYPE - initial switch */
/* used for BUTTONTYPE - member of case group */
} TWDIALOGBOX, *TWDIALOGPTR ;
typedef struct {
INT type ;
char *string ;
BOOL bool ;
} TWDRETURNBOX, *TWDRETURNPTR ;
/* build a dialog box and get info */
extern TWDRETURNPTR TWdialog( P3(TWDIALOGPTR fieldp, char *name,
INT (*user_function)() ) ) ;
/*
Arguments:
TWDIALOGPTR fieldp ;
char *name ;
INT (*user_function)() ;
Function:
Creates a dialog box for user to enter data. Return a pointer
to an array of type TWDRETURNPTR of the same size as input argument.
Name is the name given to the dialogbox for .Xdefault
control over the size of the dialog box upon creation.
The easier way to use this routine is to use the TWread_dialog
routine below to create a dialog.h file which has the necessary
input to create the correct input field array. See a sample
dialog file in graphics/example/example.dialog for more details.
User function allows an incremental calculation update.
*/
#ifdef DEBUG
extern TWDIALOGPTR TWread_dialog( P1(char *filename) ) ;
/*
Arguments:
char *filename ;
Function:
Reads file and builds correct data structure, output a dialog.h
file for inclusion in user program and then calls TWdialog.
This allows fast development of dialog boxes for the codes yet
the final result is stored in the program itself.
*/
#endif
#endif /* DIALOG_H */
|