gCAD3D 2.35
xa_prg.c File Reference

Programming-functions. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_os.h"
#include "../ut/ut_obj.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_txfil.h"
#include "../ut/ut_cast.h"
#include "../ut/ut_gtypes.h"
#include "../ut/ut_TX.h"
#include "../gui/gui__.h"
#include "../ut/func_types.h"
#include "../gr/ut_DL.h"
#include "../gr/ut_GL.h"
#include "../gr/ut_gr.h"
#include "../db/ut_DB.h"
#include "../xa/xa_edi__.h"
#include "../xa/xa_mem.h"
#include "../xa/xa_ui_gr.h"
#include "../xa/xa.h"
#include "../xa/xa_ato.h"

Data Structures

struct  FormVar
 

Macros

#define CKBTYP   1
 
#define RDBTYP   2
 
#define INPTYP   3
 

Functions

 typedef_MemTab (FormVar)
 
 typedef_MemTab (ObjRange)
 
static MemTab (FormVar)
 
int PRG_Del_Del_CB (MemObj *mo, void **data)
 
int PRG_Del_CB (char *cNam)
 
int PRG_Del__ ()
 
int PRG_win__ (MemObj *mo, void **data)
 
int PRG_ent_CB (MemObj *mo, void **data)
 
int PRG_ent_msg ()
 
int PRG_sel_CB (long dli, int typ, long ind, char *sbuf)
 
int PRG_key_CB (char *keyCode)
 
int PRG_sel_disp (char *cbuf, int mode)
 
int PRG_inp_nxt (int mode)
 
int PRG_dec_defLn (char *cbuf)
 
int PRG_eval_expr (char **cmd, char *cbuf)
 
int PRG_eval_subst (char *cbuf)
 
int PRG_dec_dbg (char *cBuf)
 
int PRG_start ()
 
int PRG_CB (char *fnam, char *dirNam)
 
int PRG_Loa ()
 
int PRG_dlg__ ()
 
int PRG_addRec (int rTyp, long sInd, int vTyp)
 
int PRG_addWp (int rNr, MemObj *w1)
 
int PRG_def_ini (int typ, long ind, char *lBuf, int lNr)
 
int PRG_update ()
 
int PRG_Ed ()
 
int PRG_ckb_len (int iSta)
 
int PRG_ckb_mod (int iSta, int iNr)
 
int PRG_intern_exit ()
 
int PRG_dumpRec ()
 
int IO_wri_wri (char *lBuf)
 
int IO_wri_ope (char *lBuf)
 
int APT_decode_print (char *cbuf, char *data, int *atyp, double *atab, int aNr)
 

Variables

static FILE * IO_fp =NULL
 
static FILE * PRG_fp = NULL
 
static MemObj PRG_win0
 
static MemObj PRG_box
 

Detailed Description

Programming-functions.

=====================================================
List_functions_start:
PRG_Ed Edit active program
PRG_Loa make List of all available programs
PRG_CB CB from List-selection
PRG_start (re)run program
PRG_win__ main-DLG-Window
PRG_ButtonPress
PRG_key_CB special-key pressed in mainWin
PRG_KeyPress special-key pressed in programWin
PRG_ent_CB enter inputField-callback
PRG_ent_msg new inputField; display prompt-message
PRG_sel_CB selection-callback; CAD-Core reports selection
PRG_inp_nxt change Inputfield
PRG_dec_defLn check if Line cBuf is a Definitionline & decode
PRG_eval_subst evaluate String; eg change ""P<V1>=.." -> "P5=.."
PRG_eval_expr evaluate IF-expression
PRG_update read data from form; copy data -> prog.
PRG_dlg__ fill FormTab
PRG_def_ini decode definitionLine, update dialog-window
PRG_addRec add record to FormTab
PRG_addWp add widget-pointer to last record
PRG_sel_disp display obj temporary
PRG_inp_nxt change Inputfield
PRG_ckb_len get lenght of this CheckboxChain;
PRG_ckb_mod test if CheckboxChain has changed ..
PRG_dumpRec dump FormTab
PRG_intern_exit kill all internal vars
PRG_Cre__
PRG_Cre_CB
List_functions_end:
=====================================================

Macro Definition Documentation

#define CKBTYP   1
#define RDBTYP   2
#define INPTYP   3

Function Documentation

typedef_MemTab ( FormVar  )
typedef_MemTab ( ObjRange  )
static MemTab ( FormVar  )
static
int PRG_Del_Del_CB ( MemObj mo,
void **  data 
)
int PRG_Del_CB ( char *  cNam)
int PRG_Del__ ( )
int PRG_win__ ( MemObj mo,
void **  data 
)
int PRG_ent_CB ( MemObj mo,
void **  data 
)
int PRG_ent_msg ( )
int PRG_sel_CB ( long  dli,
int  typ,
long  ind,
char *  sbuf 
)
int PRG_key_CB ( char *  keyCode)
int PRG_sel_disp ( char *  cbuf,
int  mode 
)
int PRG_inp_nxt ( int  mode)
int PRG_dec_defLn ( char *  cbuf)
int PRG_eval_expr ( char **  cmd,
char *  cbuf 
)
int PRG_eval_subst ( char *  cbuf)
int PRG_dec_dbg ( char *  cBuf)
int PRG_start ( )
int PRG_CB ( char *  fnam,
char *  dirNam 
)
int PRG_Loa ( )
int PRG_dlg__ ( )
int PRG_addRec ( int  rTyp,
long  sInd,
int  vTyp 
)
int PRG_addWp ( int  rNr,
MemObj w1 
)
int PRG_def_ini ( int  typ,
long  ind,
char *  lBuf,
int  lNr 
)
int PRG_update ( )
int PRG_Ed ( )
int PRG_ckb_len ( int  iSta)
int PRG_ckb_mod ( int  iSta,
int  iNr 
)
int PRG_intern_exit ( )

PRG_intern_exit kill all internal vars

int PRG_dumpRec ( )
int IO_wri_wri ( char *  lBuf)
int IO_wri_ope ( char *  lBuf)
int APT_decode_print ( char *  cbuf,
char *  data,
int *  atyp,
double *  atab,
int  aNr 
)
APT_decode_print sourceObj (text) from atomicObjs; resolv PT,VC,..
used for print content of PT, VC, .. with "PRI"
eg "x-coord,y-coord,z-coord" from point (no obj-type)
data can be NULL for pt,vc ..
see also SRC_dbo SRC_src_ato

Variable Documentation

FILE* IO_fp =NULL
static
FILE* PRG_fp = NULL
static
MemObj PRG_win0
static
MemObj PRG_box
static