UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ek_def.h
1 #if !defined(__N_EK_DEF_H_)
2 #define __N_EK_DEF_H_
3 
4 
5 
6 #define SEL_YES 0x02
7 #define SEL_NO (0xff ^ SEL_YES)
8 #define CUR_YES 0x01
9 #define CUR_NO (0xff ^ CUR_YES)
10 #define NO_AUTO_SELECT 0x4000
11 #define NO_AUTO_SELECT_ (0x4000 ^ 0xffff)
12 
13 
14 extern XmString Sname;
15 extern Widget LWidget;
16 struct YList_;
17 #ifdef _NO_PROTO_
18 typedef void (*PrintStrProc)();
19 typedef void (*InputStrProc)();
20 #else
21 typedef void (*PrintStrProc)(char* str,int n);
22 typedef void (*InputStrProc)(struct YList_* lst,int row,char* str);
23 #endif
24 
25 typedef struct {
26  short width;
27  short inp;
28  char* format;
29  } FormatCol;
30 
31 typedef struct {
32  short n_cols;
33  short shift;
34  short cur,column;
35  FormatCol* format;
36  InputStrProc cb;
37  } CList;
38 
39 typedef struct YList_ {
40  char* name;
41  char* Title;
42  char* anno;
43  short n_rows;
44  short n_cols;
45  int m_rows;
46  int c_row;
47  int t_row;
48  short no_print;
49  short n_select;
50  char* select;
51  PrintStrProc PrStr;
52  int s_row[2];
53  char* fontname;
54  Widget list;
55  Widget scroll;
56  CallB cb;
57  CList *clist;
58  Widget Twidget;
59  Widget awidget;
60  } YList;
61 
62 
63 #ifdef _NO_PROTO_
64 
65 void RefreshList();
66 void RefreshRow();
67 int ListSelect();
68 void SetCursorList();
69 void print_warning();
70 void print_question();
71 
72 void RemoveInformation();
73 void RemoveWarning();
74 void RemoveError();
75 void RemoveQuestion();
76 void WarningCB();
77 void SetInputColumn();
78 int GetSelect();
79 
80 #else
81 
82 void RefreshList(YList* lst,int title,int anno);
83 void RefreshRow(YList* lst,int row);
84 int ListSelect(YList* lst,int cur);
85 void SetCursorList(YList* lst,int cur);
86 void print_warning(XtCallbackProc ok_routine,caddr_t ok_closure,
87 char * format,...);
88 void print_question(XtCallbackProc ok_routine,caddr_t ok_closure,
89  XtCallbackProc no_routine,caddr_t no_closure,
90  char * format,...);
91 
92 void RemoveInformation(void);
93 void RemoveWarning(void);
94 void RemoveError(void);
95 void RemoveQuestion(void);
96 void WarningCB(Widget w, caddr_t client_data, caddr_t call_data);
97 
98 void SetInputColumn(YList* lst,int n,int change_cur);
99 int GetSelect(YList* lst,int cur);
100 
101 #endif
102 
103 #endif
104 
Definition: ek_def.h:39
Definition: ek_def.h:31
Definition: ek_def.h:25