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 MENU, ITEM ;
36
 
37
+CONST int REQ_LEFT_ITEM, REQ_RIGHT_ITEM, REQ_UP_ITEM, REQ_DOWN_ITEM ;
38
+CONST int REQ_SCR_ULINE, REQ_SCR_DLINE, REQ_SCR_DPAGE, REQ_SCR_UPAGE ;
39
+CONST int REQ_FIRST_ITEM, REQ_LAST_ITEM, REQ_NEXT_ITEM, REQ_PREV_ITEM ;
40
+CONST int REQ_TOGGLE_ITEM, REQ_CLEAR_PATTERN, REQ_BACK_PATTERN ;
41
+CONST int REQ_NEXT_MATCH, REQ_PREV_MATCH ;
42
 
43
+CONST OPTIONS O_SELECTABLE ;
44
+CONST OPTIONS O_ONEVALUE, O_SHOWDESC, O_ROWMAJOR, O_IGNORECASE ;
45
+CONST OPTIONS O_SHOWMATCH, O_NONCYCLIC ;
46
 
47
+FUNC int set_menu_fore ( MENU *, chtype ) ;
48
+FUNC chtype menu_fore ( MENU * ) ;
49
+FUNC int set_menu_back ( MENU *, chtype ) ;
50
+FUNC chtype menu_back ( MENU * ) ;
51
+FUNC int set_menu_grey ( MENU *, chtype ) ;
52
+FUNC chtype menu_grey ( MENU * ) ;
53
+FUNC int set_menu_pad ( MENU *, int ) ;
54
+FUNC int menu_pad ( MENU * ) ;
55
 
56
+FUNC int pos_menu_cursor ( MENU * ) ;
57
 
58
+FUNC int menu_driver ( MENU *, int ) ;
59
 
60
+FUNC int set_menu_format ( MENU *, int, int ) ;
61
+FUNC void menu_format ( MENU *, int *, int * ) ;
62
 
63
+FUNC int set_item_init ( MENU *, void (*) () ) ;
64
+FUNC int set_item_term ( MENU *, void (*) () ) ;
65
+FUNC int set_menu_init ( MENU *, void (*) () ) ;
66
+FUNC int set_menu_term ( MENU *, void (*) () ) ;
67
+TYPEDEF void ( *~menu_fn ) () ;
68
+FUNC ~menu_fn item_init ( MENU * ) ;
69
+FUNC ~menu_fn item_term ( MENU * ) ;
70
+FUNC ~menu_fn menu_init ( MENU * ) ;
71
+FUNC ~menu_fn menu_term ( MENU * ) ;
72
 
73
+FUNC int set_current_item ( MENU *, ITEM * ) ;
74
+FUNC ITEM *current_item ( MENU * ) ;
75
+FUNC int set_top_row ( MENU *, int ) ;
76
+FUNC int top_row ( MENU * ) ;
77
+FUNC int item_index ( ITEM * ) ;
78
+FUNC char *item_name ( ITEM * ) ;
79
+FUNC char *item_description ( ITEM * ) ;
80
 
81
+FUNC ITEM *new_item ( char *, char * ) ;
82
+FUNC int free_item ( ITEM * ) ;
83
 
84
+FUNC int set_item_opts ( ITEM *, OPTIONS ) ;
85
+FUNC int item_opts_on ( ITEM *, OPTIONS ) ;
86
+FUNC int item_opts_off ( ITEM *, OPTIONS ) ;
87
+FUNC OPTIONS item_opts ( ITEM * ) ;
88
 
89
+FUNC int set_item_userptr ( ITEM *, char * ) ;
90
+FUNC char *item_userptr ( ITEM * ) ;
91
 
92
+FUNC int set_item_value ( ITEM *, int ) ;
93
+FUNC int item_value ( ITEM * ) ;
94
 
95
+FUNC int item_visible ( ITEM * ) ;
96
 
97
+FUNC int set_menu_items ( MENU *, ITEM ** ) ;
98
+FUNC ITEM **menu_items ( MENU * ) ;
99
+FUNC int item_count ( MENU * ) ;
100
 
101
+FUNC int set_menu_mark ( MENU *, char * ) ;
102
+FUNC char *menu_mark ( MENU * ) ;
103
 
104
+FUNC MENU *new_menu ( ITEM ** ) ;
105
+FUNC int free_menu ( MENU * ) ;
106
 
107
+FUNC int set_menu_opts ( MENU *, OPTIONS ) ;
108
+FUNC int item_menu_on ( MENU *, OPTIONS ) ;
109
+FUNC int item_menu_off ( MENU *, OPTIONS ) ;
110
+FUNC OPTIONS menu_opts ( MENU * ) ;
111
 
112
+FUNC int set_menu_pattern ( MENU *, char * ) ;
113
+FUNC char *menu_pattern ( MENU * ) ;
114
 
115
+FUNC int post_menu ( MENU * ) ;
116
+FUNC int unpost_menu ( MENU * ) ;
117
 
118
+FUNC int set_menu_useptr ( MENU *, char * ) ;
119
+FUNC char *menu_useptr ( MENU * ) ;
120
 
121
+FUNC int set_menu_win ( MENU *, WINDOW * ) ;
122
+FUNC WINDOW *menu_win ( MENU * ) ;
123
+FUNC int set_menu_sub ( MENU *, WINDOW * ) ;
124
+FUNC WINDOW *menu_sub ( MENU * ) ;
125
+FUNC int scale_window ( MENU *, int *, int * ) ;
126
 
127
+ENDIF