gCAD3D 2.35
xa_ed.h File Reference

Go to the source code of this file.

Macros

#define ED_mode_step   0
 
#define ED_mode_go   1
 
#define ED_mode_enter   3
 

Functions

int ED_Init ()
 
int ED_Reset ()
 
int ED_Read_Next (char *)
 
int ED_Read_Line (char *buf)
 
char * ED_Read_cPos ()
 
int ED_GetNxtLin (int *, char *)
 
int ED_GetLinNr (char *, int)
 
int ED_get_lnr_act ()
 
int ED_get_mac_fil ()
 
int ED_work_file (char *)
 
int ED_cont_file ()
 
int ED_step ()
 
int ED_go ()
 
int ED_enter ()
 
int ED_skip_start ()
 
int ED_skip_end ()
 
int ED_update ()
 
void ED_set_delay (int)
 
int ED_query_mode ()
 
int ED_query_CmdMode ()
 
int ED_query_fsiz (long *, long *)
 
char * ED_get_actPos ()
 
int ED_add_Def (char *buf)
 
int ED_add_Line (char *buf)
 
int ED_add_Text (int, long, char *)
 
int ED_add_objSel (int, long, char *)
 
int ED_add_objNam (int, int *, long *, char *)
 
int ED_add_objInd (int)
 
int ED_add_objTxt (char *)
 
int ED_add_File (char *, int)
 
int ED_new_File (char *)
 
int ED_Add (char *)
 
void ED_line_work (char *)
 
void ED_lineNr_work (int)
 
void ED_line_enter ()
 
void ED_startKon2 (int)
 
void ED_delete ()
 
void ED_del_deakt ()
 
void ED_del_reakt ()
 
void ED_del_von ()
 
void ED_del_bis ()
 
void ED_del_on ()
 
void ED_del_off ()
 
int ED_work_GO ()
 
int ED_work_STEP ()
 
int ED_work_END ()
 
void ED_work_ENTER ()
 
int ED_work_CurSet (int bis)
 
int ED_Run ()
 

Macro Definition Documentation

#define ED_mode_step   0
#define ED_mode_go   1
#define ED_mode_enter   3

Function Documentation

int ED_Init ( )
int ED_Reset ( )
int ED_Read_Next ( char *  )
int ED_Read_Line ( char *  buf)
Get a copy of the next codeline.
- normal: get codeline ED_lnr_act from memory
- if(APT_mac_fil==1): get next line from file
The size of buf must be mem_cbuf1_SIZ !
Retcode:
0-n LineNr; first Line=0, second line=1 ....
-1 EOF
-2 ?? irgendwas mit MODEL ???
get mepos with ED_Read_cPos
char* ED_Read_cPos ( )
int ED_GetNxtLin ( int *  ,
char *   
)

Liefert naechste Zeile und ZeilenNr. Als Retcod = ihre Länge Dzt nur used for read Fortsetzungszeilen von APT_decode_cv

int ED_GetLinNr ( char *  ,
int   
)
int ED_get_lnr_act ( )

see also AP_lNr_get APT_line_act

int ED_get_mac_fil ( )
int ED_work_file ( char *  )

nächster call an ED_Read_Line soll nicht die nächste aktuelle Zeile liefern sondern zuerst das File filnam abarbeiten CloseFile macht auch ED_Read_Line.

Bei subModel UP_level=-1

int ED_cont_file ( )
int ED_step ( )

used after ED_work_ENTER, ED_work_CurSet(!)

int ED_go ( )

used by ED_work_CurSet, ED_PP_run, ED_work_PP.

int ED_enter ( )

CR by Keyboard; es daf kein CRLF zugefuegt werden ! (sonst doppelt) used by: IE_activate, IE_cad_init1, ED_work_ENTER see ED_query_mode

int ED_skip_start ( )

used by ED_cont_file, ED_work_file <jump, MAC, CALL, return>

int ED_skip_end ( )
int ED_update ( )
void ED_set_delay ( int  )

An den Beginn der Datei rücksetzen; aber kein WC_Init (für JUMP's usw)

int ED_query_mode ( )
value setFunc
0=ED_mode_step ED_step()
1=ED_mode_go = Run ED_go()
3=ED_mode_enter = Edit ED_enter()
int ED_query_CmdMode ( )
aktuelle Zeile into ED_buf1 einlesen, ihren Typ feststellen
Retcod:
-3 deleted Line (1.char '_')
-2 commentline (1.char '#')
-1 empty line
0 Defline (eg "P20=..")
1 Direktcommand
2 IndirektCommand
int ED_query_fsiz ( long *  ,
long *   
)
char* ED_get_actPos ( )
int ED_add_Def ( char *  buf)

einen DefText (zB "P123=" in die Datei einfuegen; muss am Beginn einer zeile liegen.

int ED_add_Line ( char *  buf)

eine komplette Line zufuegen und abarbeiten see also ED_srcLn_add

int ED_add_Text ( int  ,
long  ,
char *   
)
int ED_add_objSel ( int  ,
long  ,
char *   
)
int ED_add_objNam ( int  ,
int *  ,
long *  ,
char *   
)
int ED_add_objInd ( int  )
int ED_add_objTxt ( char *  )
int ED_add_File ( char *  ,
int   
)

Insert Datei filnam in den Hauptbuffer an Position cpos. cpos < 0: hintanhaengen !

int ED_new_File ( char *  )

Ein Datei ins Hauptprog laden

int ED_Add ( char *  )
void ED_line_work ( char *  )
void ED_lineNr_work ( int  )
void ED_line_enter ( )
void ED_startKon2 ( int  )
void ED_delete ( )
void ED_del_deakt ( )
void ED_del_reakt ( )
void ED_del_von ( )
void ED_del_bis ( )
void ED_del_on ( )
void ED_del_off ( )
int ED_work_GO ( )
int ED_work_STEP ( )
int ED_work_END ( )
void ED_work_ENTER ( )

es wurde CR am Keyb eingegeben

int ED_work_CurSet ( int  bis)
Cursor wurde in Editor-Line new_lnr_act gesetzt.
Alle Zeilen bis einschliesslich Zeile new_lnr_act anzeigen (ausfuehren).
Obj der Zeile new_lnr_act hiliten
von der zuletzt bearbeiteten Zeile bis zu lNr new_lnr_act abarbeiten
new_lnr_act -1 query active lineNr (ED_lnr_act)
UT_INT_MAX work from ED_lnr_act to end
int ED_Run ( )