xa_prg.c File Reference


Detailed Description

Programming-functions PRG_.

=====================================================
Liste_Funktionen_Beginn:

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_Cre__
PRG_Cre_CB

PRG_Del__
PRG_Del_CB
PRG_Del_Del_CB

IO_wri_wri
IO_wri_ope

Liste_Funktionen_Ende:
=====================================================

#include "../xa/MS_Def0.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gdk/gdkkeysyms.h>
#include "../gtk/ut_gtk.h"
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_os.h"
#include "../ut/ut_obj.h"
#include "../ut/ut_umem.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_txfil.h"
#include "../gr/ut_UI.h"
#include "../gr/ut_DL.h"
#include "../gr/ut_GL.h"
#include "../gr/ut_gr.h"
#include "../db/ut_DB.h"
#include "../xa/xa_ed.h"
#include "../xa/xa_mem.h"
#include "../xa/ut_ui_TX.h"
#include "../xa/xa_ui_gr.h"

Data Structures

struct  FormVar

Defines

#define CKBTYP   1
#define INPTYP   2

Functions

 typedef_MemTab (FormVar)
 typedef_MemTab (ObjRange)
static MemTab (FormVar)
int PRG_Cre__ ()
int PRG_Del_Del_CB (void *parent, void *data)
int PRG_Del_CB (char *cNam)
int PRG_Del__ ()
int PRG_win__ (GtkWidget *parent, void *data)
gint PRG_ButtonPress (GtkWidget *widget, GdkEventButton *event, gpointer data)
gint PRG_KeyRelease (GtkWidget *parent, GdkEventKey *event)
gint PRG_KeyPress (GtkWidget *parent, GdkEventKey *event)
int PRG_ent_CB (GtkWidget *parent, GdkEventAny *event)
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, int sInd, int vTyp, int vInd)
int PRG_addWp (int rNr, GtkWidget *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_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

char AP_dir_prg [128]
 directory for programs
char AP_sym_prg [64]
 symbolic directory for programs
char APP_act_nam [64]
static FILE * IO_fp = NULL
static FILE * PRG_fp = NULL
static GtkWidget * PRG_win0
static GtkWidget * PRG_box


Define Documentation

#define CKBTYP   1

#define INPTYP   2


Function Documentation

typedef_MemTab ( FormVar   ) 

typedef_MemTab ( ObjRange   ) 

static MemTab ( FormVar   )  [static]

int PRG_Cre__ (  ) 

int PRG_Del_Del_CB ( void *  parent,
void *  data 
)

int PRG_Del_CB ( char *  cNam  ) 

int PRG_Del__ (  ) 

int PRG_win__ ( GtkWidget *  parent,
void *  data 
)

gint PRG_ButtonPress ( GtkWidget *  widget,
GdkEventButton *  event,
gpointer  data 
)

gint PRG_KeyRelease ( GtkWidget *  parent,
GdkEventKey *  event 
)

gint PRG_KeyPress ( GtkWidget *  parent,
GdkEventKey *  event 
)

int PRG_ent_CB ( GtkWidget *  parent,
GdkEventAny *  event 
)

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,
int  sInd,
int  vTyp,
int  vInd 
)

int PRG_addWp ( int  rNr,
GtkWidget *  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_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 
)


Variable Documentation

char AP_dir_prg[128]

directory for programs

char AP_sym_prg[64]

symbolic directory for programs

char APP_act_nam[64]

FILE* IO_fp = NULL [static]

FILE* PRG_fp = NULL [static]

GtkWidget* PRG_win0 [static]

GtkWidget * PRG_box [static]


Generated on Sat May 30 09:31:57 2009 for gCAD3D by  doxygen 1.5.6