Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "svid3", "", "config" ;
29
 
30
+IF %% __SYSV_TERMINAL_INTERFACE %%
31
 
32
+USE "svid3", "curses.h" ;
33
+USE "svid3", "eti.h" ;
34
 
35
+TYPE FORM, FIELD, FIELDTYPE ;
36
 
37
+CONST int REQ_NEXT_PAGE, REQ_PREV_PAGE, REQ_FIRST_PAGE, REQ_LAST_PAGE ;
38
+CONST int REQ_NEXT_FIELD, REQ_PREV_FIELD, REQ_FIRST_FIELD, REQ_LAST_FIELD ;
39
+CONST int REQ_SNEXT_FIELD, REQ_SPREV_FIELD, REQ_SFIRST_FIELD ;
40
+CONST int REQ_SLAST_FIELD, REQ_LEFT_FIELD, REQ_RIGHT_FIELD, REQ_UP_FIELD ;
41
+CONST int REQ_DOWN_FIELD, REQ_NEXT_CHAR, REQ_PREV_CHAR, REQ_NEXT_LINE ;
42
+CONST int REQ_PREV_LINE, REQ_NEXT_WORD, REQ_PREV_WORD, REQ_BEG_FIELD ;
43
+CONST int REQ_END_FIELD, REQ_BEG_LINE, REQ_END_LINE, REQ_LEFT_CHAR ;
44
+CONST int REQ_RIGHT_CHAR, REQ_UP_CHAR, REQ_DOWN_CHAR, REQ_NEW_LINE ;
45
+CONST int REQ_INS_CHAR, REQ_INS_LINE, REQ_DEL_CHAR, REQ_DEL_PREV ;
46
+CONST int REQ_DEL_LINE, REQ_DEL_WORD, REQ_CLR_EOL, REQ_CLR_EOF ;
47
+CONST int REQ_CLR_FIELD, REQ_OVL_MODE, REQ_INS_MODE, REQ_SCR_FLINE ;
48
+CONST int REQ_SCR_BLINE, REQ_SCR_FPAGE, REQ_SCR_BPAGE, REQ_SCR_FHPAGE ;
49
+CONST int REQ_SCR_BHPAGE, REQ_SCR_FCHAR, REQ_SCR_BCHAR, REQ_SCR_HFLINE ;
50
+CONST int REQ_SCR_HBLINE, REQ_SCR_HFHALF, REQ_SCR_HBHALF, REQ_VALIDATION ;
51
+CONST int REQ_NEXT_CHOICE, REQ_PREV_CHOICE ;
52
 
53
+CONST int NO_JUSTIFICATION, JUSTIFY_RIGHT, JUSTIFY_LEFT, JUSTIFY_CENTER ;
54
 
55
+CONST OPTIONS O_VISIBLE, O_ACTIVE, O_PUBLIC, O_EDIT, O_WRAP, O_BLANK ;
56
+CONST OPTIONS O_AUTOSKIP, O_NULLOK, O_STATIC, O_PASSOK ;
57
+CONST OPTIONS O_NL_OVERLOAD, O_BS_OVERLOAD ;
58
 
59
+CONST FIELDTYPE *TYPE_ALNUM, *TYPE_ALPHA, *TYPE_ENUM, *TYPE_INTEGER ;
60
+CONST FIELDTYPE *TYPE_NUMERIC, *TYPE_REGEXP ;
61
 
62
+FUNC int pos_form_cursor ( FORM * ) ;
63
+FUNC int data_ahead ( FORM * ) ;
64
+FUNC int data_behind ( FORM * ) ;
65
+FUNC int form_driver ( FORM *, int ) ;
66
+FUNC int set_form_fields ( FORM *, FIELD ** ) ;
67
+FUNC FIELD **form_fields ( FORM * ) ;
68
+FUNC int field_count ( FORM * ) ;
69
+FUNC int move_field ( FIELD *, int, int ) ;
70
+FUNC int set_field_fore ( FIELD *, chtype ) ;
71
+FUNC chtype field_fore ( FIELD * ) ;
72
+FUNC int set_field_back ( FIELD *, chtype ) ;
73
+FUNC chtype field_back ( FIELD * ) ;
74
+FUNC int set_field_pad ( FIELD *, int ) ;
75
+FUNC int field_pad ( FIELD * ) ;
76
+FUNC int set_field_buffer ( FIELD *, int, char * ) ;
77
+FUNC char *field_buffer ( FIELD *, int ) ;
78
+FUNC int set_field_status ( FIELD *, int ) ;
79
+FUNC int field_status ( FIELD * ) ;
80
+FUNC int set_max_field ( FIELD *, int ) ;
81
+FUNC int field_info ( FIELD *, int *, int *, int *, int *, int *, int * ) ;
82
+FUNC int dynamic_field_info ( FIELD *, int *, int *, int * ) ;
83
+FUNC int set_field_just ( FIELD *, int ) ;
84
+FUNC int field_just ( FIELD * ) ;
85
+FUNC FIELD *new_field ( int, int, int, int, int, int ) ;
86
+FUNC FIELD *dup_field ( FIELD *, int, int ) ;
87
+FUNC FIELD *link_field ( FIELD *, int, int ) ;
88
+FUNC int free_field ( FIELD * ) ;
89
+FUNC int set_field_opts ( FIELD *, OPTIONS ) ;
90
+FUNC int field_opts_on ( FIELD *, OPTIONS ) ;
91
+FUNC int field_opts_off ( FIELD *, OPTIONS ) ;
92
+FUNC OPTIONS field_opts ( FIELD * ) ;
93
+FUNC int set_field_userptr ( FIELD *, char * ) ;
94
+FUNC char *field_userptr ( FIELD * ) ;
95
+FUNC int set_field_type ( FIELD *, FIELDTYPE *, ... ) ;
96
+FUNC FIELDTYPE *field_type ( FIELD * ) ;
97
+FUNC char *field_arg ( FIELD * ) ;
98
+FUNC FIELDTYPE *new_fieldtype ( int (*) (), int (*) () ) ;
99
+FUNC int free_fieldtype ( FIELDTYPE * ) ;
100
+FUNC int set_fieldtype_arg ( FIELDTYPE *, char * (*) (), char * (*) (),
101
			      void (*) () ) ;
102
+FUNC FIELDTYPE *link_fieldtype ( FIELDTYPE *, FIELDTYPE * ) ;
103
+FUNC int set_form_init ( FORM *, void (*) () ) ;
104
+FUNC int set_form_term ( FORM *, void (*) () ) ;
105
+FUNC int set_field_init ( FORM *, void (*) () ) ;
106
+FUNC int set_field_term ( FORM *, void (*) () ) ;
107
+TYPEDEF void ( *~form_fn ) () ;
108
+FUNC ~form_fn form_init ( FORM * ) ;
109
+FUNC ~form_fn form_term ( FORM * ) ;
110
+FUNC ~form_fn field_init ( FORM * ) ;
111
+FUNC ~form_fn field_term ( FORM * ) ;
112
+FUNC FORM *new_form ( FIELD ** ) ;
113
+FUNC int free_form ( FORM * ) ;
114
+FUNC int set_new_page ( FIELD *, int ) ;
115
+FUNC int new_page ( FIELD * ) ;
116
+FUNC int set_form_opts ( FORM *, OPTIONS ) ;
117
+FUNC int form_opts_on ( FORM *, OPTIONS ) ;
118
+FUNC int form_opts_off ( FORM *, OPTIONS ) ;
119
+FUNC OPTIONS form_opts ( FORM * ) ;
120
+FUNC int set_form_page ( FORM *, int ) ;
121
+FUNC int form_page ( FORM * ) ;
122
+FUNC int set_current_field ( FORM *, FIELD * ) ;
123
+FUNC FIELD *current_field ( FORM * ) ;
124
+FUNC int field_index ( FIELD * ) ;
125
+FUNC int post_form ( FORM * ) ;
126
+FUNC int unpost_form ( FORM * ) ;
127
+FUNC int set_form_usrptr ( FORM *, char * ) ;
128
+FUNC char *form_usrptr ( FORM * ) ;
129
+FUNC int set_form_win ( FORM *, WINDOW * ) ;
130
+FUNC WINDOW *form_win ( FORM * ) ;
131
+FUNC int set_form_sub ( FORM *, WINDOW * ) ;
132
+FUNC WINDOW *form_sub ( FORM * ) ;
133
+FUNC int scale_form ( FORM *, int *, int * ) ;
134
 
135
+ENDIF