~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to incl/tbledt.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
2
.LANGUAGE        C
 
3
.IDENTIFICATION  header file tbledt.h
 
4
.AUTHOR         J.D.Ponz
 
5
.KEYWORDS       Table editor control buffers
 
6
.ENVIRONMENT    Independent
 
7
.VERSION        3.0  1 Feb 1988
 
8
.PURPOSE
 
9
                Define table editor structures.
 
10
.VERSION        3.1  15 Sept 1989, CG 890915
 
11
.VERSION        3.2  24-Nov-1989, added NEXTFIELD (FO)
 
12
 
 
13
 090713         last modif
 
14
------------------------------------------------------------------------*/
 
15
 
 
16
#include <tw.h>      /* TermWindow definitions */
 
17
#include <twhelp.h>      /* TermWindow definitions */
 
18
 
 
19
#define EDT_MAXCOL     64 /* maximum number of columns to be edited */
 
20
#define EDT_MAXROW    100 /* maximum number of rows to be edited */
 
21
#define EDT_MAXCHA   1024 /* maximum number of characters per row edited */
 
22
#define EDT_NAMLEN     20 /* length of window name */
 
23
#define EDT_MAXMOD    128 
 
24
#define EDT_TXTLEN     80 /* length of file names */
 
25
/* TRUE & FALSE maybe defined in other include file.    CG 890915 */
 
26
#ifndef TRUE
 
27
#define TRUE            1 
 
28
#endif
 
29
 
 
30
#ifndef FALSE
 
31
#define FALSE           0
 
32
#endif
 
33
 
 
34
/* DATA WINDOW */
 
35
 
 
36
WINDOW *editor_window     /* pointer to editor window */;
 
37
 
 
38
WINDOW *data_subwindow, *sequence_subwindow, *header_window;
 
39
 
 
40
WINDOW *dialogue_window           /* pointer to the dialogue window */;
 
41
 
 
42
TWHELP *twh                       /* pointer to help */;
 
43
 
 
44
 
 
45
/* GENERAL EDT CONTROL VARIABLES */
 
46
short   cursor_pos[2];           /* cursor position*/
 
47
/* static short   cursor_pos[2]; */          /* cursor position*/
 
48
/*static int     thecol = 0;     */         /* current column number*/
 
49
int     thecol ;              /* current column number*/
 
50
char    edt_term[EDT_NAMLEN]            /* device name */;
 
51
char    edt_termfile[EDT_NAMLEN]          /* term file */;
 
52
int     edt_env                           /* control characters */;
 
53
int     edt_width                           /* actual line width */;
 
54
int     data_lines               /* number of lines in the data window */;
 
55
int     data_columns             /* number of columns in the data window */;
 
56
int     edt_column[EDT_MAXCOL]   /* column index */;
 
57
int     edt_nr                   /* actual number of rows displayed */;
 
58
int     edt_nc                   /* actual number of columns displayed */;
 
59
int     edt_row[EDT_MAXROW]      /* row index */;
 
60
int     edt_wlen                 /* length in word buffer */;
 
61
int     edt_llen                 /* length in line buffer */;
 
62
char    edt_linebuf[EDT_MAXCHA]  /* line buffer */;
 
63
char    edt_wordbuf[EDT_MAXCHA]  /* word buffer */;
 
64
char    edt_charbuf[1]           /* character buffer */;
 
65
int     edt_advance              /* advance flag (TRUE adv., FALSE rev.) */;
 
66
int     edt_mode                 /* editing mode (TABULAR/ROW) */;
 
67
int     edt_status               /* exit status (EXIT/QUIT) */;
 
68
int     edt_action               /* action == TERMINATE */;
 
69
double  edt_vsearch              /* value to search */;
 
70
double  edt_esearch              /* error in the search */;
 
71
char    edt_csearch[EDT_MAXCHA]  /* string to search */;
 
72
int     edt_cstart;
 
73
int     edt_cend;
 
74
 
 
75
/* TABLE CONTROL VARIABLES */
 
76
char    edt_table[EDT_TXTLEN]    /* table name */;
 
77
int     edt_tid;
 
78
int     edt_ncol                 /* number of columns defined in the table */;
 
79
int     edt_nrow                 /* number of rows in the table */;
 
80
int     edt_nacol                /* number of words per row */;
 
81
int     edt_narow                /* number of allocated rows */;
 
82
 
 
83
#define TABULAR        0
 
84
#define ROW            1
 
85
#define TERMINATE      99
 
86
#define NULLACTION     0
 
87
#define INTERRUPT      1
 
88
/* #define EOF            2     not needed ... KB 090710 */
 
89
#define BAD_KEY        3
 
90
#define NEXTCOL        4
 
91
#define PREVCOL        5
 
92
#define RIGHTPAGE      6
 
93
#define LEFTPAGE       7
 
94
#define FIRSTPAGE      8
 
95
#define RESETPAGE      9
 
96
#define QUIT          10 
 
97
#define EXIT          11 
 
98
#define COMMAND       12
 
99
#define NEXTFIELD     13