Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

input.h File Reference

#include <time.h>
#include "basetypes.h"

Data Structures

struct  date
struct  FIELD
struct  FIELDLIST
struct  time

Defines

#define DT_NOYEAR   0
#define DT_YEAR   1
#define DT_MILENIUM   2
#define TM_SEC   FALSE
#define TM_NOSEC   TRUE
#define BoolTrue   'A'
#define BoolFalse   'N'
#define IN_START   0x1
#define IN_INSERT   0x2
#define IN_AUTRET   0x4

Enumerations

enum  { RK_ESC = -2, RK_BACK = -1, RK_ENTER = 0, RK_NEXT = 1 }

Functions

void initfields (struct FIELDLIST *list, int leny, int lenx, int begy, int begx)
void initfield_desc (struct FIELDLIST *list, char *desc, uint y, uint x)
FIELDaddfield (struct FIELDLIST *list, uint len, uint plen, uint y, uint x, char *initstr, int type, int mode, int refresh)
int getinput (struct FIELDLIST *list, struct FIELD *field, int *exitkey)
int fillfields (struct FIELDLIST *list, int *aborted, int *lastkey)
void destroyfields (struct FIELDLIST *list)
void add_input_usr_func (struct FIELD *field, int(*usr_func)(struct FIELD *field, int *ch, int *exitkey, int *endloop))
void add_input_typ (void *put, char *ret, uint len, uint plen, int typ)
void add_initfields (struct FIELDLIST *field, char *desc, uint len, uint begy, uint begx)
int diff_fields (char *put, double start, double end, int err_scr, int typ)
void ret_fields (char *pom, void *put, int typ)
int addfield_type (void *put, char *desc, uint begy, uint begx, uint len, uint plen, double start, double end, int type, int mode)
void printfield_char (char *put, char *desc, uint begy, uint begx, uint len, int type, WINDOW *win)
void printfield_type (void *put, char *desc, uint begy, uint begx, uint len, uint plen, int type, WINDOW *win)
int addfield_date (struct date *put, char *desc, uint begy, uint begx, int type, int mode)
void printfield_date (struct date put, char *desc, uint begy, uint begx, int type, WINDOW *win)
int addfield_time (struct time *put, char *desc, uint begy, uint begx, int type, int mode)
void printfield_time (struct time put, char *desc, uint begy, uint begx, int type, WINDOW *win)
int addfield_button (char *text, uint begy, uint begx, int use_shadow)
void printfield_button (char *text, uint begy, uint begx, int use_shadow, WINDOW *win)

Variables

char input_c [MAX_CHAR+S_T]

Define Documentation

#define BoolFalse   'N'
 

#define BoolTrue   'A'
 

#define DT_MILENIUM   2
 

#define DT_NOYEAR   0
 

#define DT_YEAR   1
 

#define IN_AUTRET   0x4
 

#define IN_INSERT   0x2
 

#define IN_START   0x1
 

#define TM_NOSEC   TRUE
 

#define TM_SEC   FALSE
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
RK_ESC 
RK_BACK 
RK_ENTER 
RK_NEXT 


Function Documentation

void add_initfields struct FIELDLIST   field,
char *    desc,
uint    len,
uint    begy,
uint    begx
 

void add_input_typ void *    put,
char *    ret,
uint    len,
uint    plen,
int    typ
 

void add_input_usr_func struct FIELD   field,
int(*    usr_func)(struct FIELD *field, int *ch, int *exitkey, int *endloop)
 

struct FIELD* addfield struct FIELDLIST   list,
uint    len,
uint    plen,
uint    y,
uint    x,
char *    initstr,
int    type,
int    mode,
int    refresh
 

int addfield_button char *    text,
uint    begy,
uint    begx,
int    use_shadow
 

int addfield_date struct date   put,
char *    desc,
uint    begy,
uint    begx,
int    type,
int    mode
 

int addfield_time struct time   put,
char *    desc,
uint    begy,
uint    begx,
int    type,
int    mode
 

int addfield_type void *    put,
char *    desc,
uint    begy,
uint    begx,
uint    len,
uint    plen,
double    start,
double    end,
int    type,
int    mode
 

void destroyfields struct FIELDLIST   list
 

int diff_fields char *    put,
double    start,
double    end,
int    err_scr,
int    typ
 

int fillfields struct FIELDLIST   list,
int *    aborted,
int *    lastkey
 

int getinput struct FIELDLIST   list,
struct FIELD   field,
int *    exitkey
 

void initfield_desc struct FIELDLIST   list,
char *    desc,
uint    y,
uint    x
 

void initfields struct FIELDLIST   list,
int    leny,
int    lenx,
int    begy,
int    begx
 

void printfield_button char *    text,
uint    begy,
uint    begx,
int    use_shadow,
WINDOW *    win
 

void printfield_char char *    put,
char *    desc,
uint    begy,
uint    begx,
uint    len,
int    type,
WINDOW *    win
 

void printfield_date struct date    put,
char *    desc,
uint    begy,
uint    begx,
int    type,
WINDOW *    win
 

void printfield_time struct time    put,
char *    desc,
uint    begy,
uint    begx,
int    type,
WINDOW *    win
 

void printfield_type void *    put,
char *    desc,
uint    begy,
uint    begx,
uint    len,
uint    plen,
int    type,
WINDOW *    win
 

void ret_fields char *    pom,
void *    put,
int    typ
 


Variable Documentation

char input_c
 


Generated on Wed Apr 2 06:51:16 2003 for TFCC by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001