gCAD3D 2.35
srcu.c File Reference

Dynamic update numeric strings. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_gtypes.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_txTab.h"
#include "../ut/ut_txfil.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_BitTab.h"
#include "../ut/ut_os.h"
#include "../ut/ut_cast.h"
#include "../gui/gui__.h"
#include "../db/ut_DB.h"
#include "../xa/xa.h"
#include "../xa/xa_ed_mem.h"
#include "../xa/xa_ui.h"
#include "../xa/xa_msg.h"
#include "../xa/xa_sele.h"
#include "../xa/xa_mem.h"

Functions

int SRCU_sel_CB (int src, long dli)
 
int SRCU_key_CB (int key)
 
int SRCU_ent_CB (MemObj *mo, void **data)
 
int SRCU_win__ (MemObj *parent, void **data)
 
int SRCU_tmr_CB__ (void *data)
 
int SRCU_sli_CB (MemObj *mo, void **data)
 
int SRCU_ck_act__ ()
 
int SRCU_win_var (int typ, long dbi, int valNr)
 
int SRCU_tsMax (char *sSrc)
 
int SRCU_analyz__ (int typ, long dbi, int valNr)
 
int SRCU_analyz_val (ObjTXTSRC *tso, int valNr)
 
int SRCU_mod__ (char *newVal)
 
int SRCU_pri_mod (char *sNew)
 
int SRCU_win_e2 (double *dVal, int mode)
 
int SRCU_exit__ ()
 
int SRCU_work_upd (double d1)
 
int SRCU_work__ (int mode)
 
int SRCU_list_vals__ (ObjTXTSRC *tso, char *sl)
 
int SRCU_txt_popCoord (char *sMen, int typ, int parTyp, int iNr)
 

Variables

MemObj UIw_Box_TB
 
int IE_modify
 
char * ObjCodTab []
 
char * NcoTxtTab []
 
char * GcoTxtTab []
 
static MemObj SRCU_tb =GUI_OBJ_NEW
 
static MemObj SRCU_e2
 
static MemObj SRCU_b1
 
static MemObj SRCU_b3
 
static MemObj SRCU_sl1
 
static int SRCU__obj_stat
 
static int SRCU__ED_stat
 
static int SRCU_tmr_stat = 0
 
static int SRCU_valNr = 0
 
static char SRCU_val_def [40]
 
static double SRCU_fakt = 0.
 
static double SRCU_scal
 
static ObjSRC SRCU_obj_pri
 
static ObjTXTSRC SRCU_val_pri
 
static int SRCU_codeOff
 
static char * SRCU_ln_pri
 
static int SRCU_val_siz
 
static int SRCU_isModified
 
static double SRCU_val_cen
 

Detailed Description

Dynamic update numeric strings.

=====================================================
List_functions_start:
SRCU_win_var init window for update variable
SRCU_win__ create window (toolbar)
SRCU_win_e2 set / get act. value
SRCU_sli_CB callback slider
SRCU_tmr_CB__ timer callback
SRCU_work_upd modify value and update
SRCU_list_vals__ get list of all value-objects
SRCU_analyz__ find definition-line; analyze line; find value # <valNr>
SRCU_analyz_val find value nr <valNr>
SRCU_tsMax returns max nr of sourceObjects in sourceString
SRCU_mod__ update model
SRCU_pri_mod modify the primary-sourceline
SRCU_txt_popCoord fix string for popup-menu for modify-value
List_functions_end:
=====================================================

Function Documentation

int SRCU_sel_CB ( int  src,
long  dli 
)
int SRCU_key_CB ( int  key)
int SRCU_ent_CB ( MemObj mo,
void **  data 
)
int SRCU_win__ ( MemObj parent,
void **  data 
)
int SRCU_tmr_CB__ ( void *  data)
int SRCU_sli_CB ( MemObj mo,
void **  data 
)
int SRCU_ck_act__ ( )

if(SRCU_ck_act__()) printf(" is active ..\n");

int SRCU_win_var ( int  typ,
long  dbi,
int  valNr 
)
init window for update variable
valNr the number of the value in the definitionline; first = 0.
Example:
SRCU_win_var (typ_PT, 20L, 1);
// modify second value of "P20=P(100 200 0)"
int SRCU_tsMax ( char *  sSrc)
int SRCU_analyz__ ( int  typ,
long  dbi,
int  valNr 
)
int SRCU_analyz_val ( ObjTXTSRC tso,
int  valNr 
)
int SRCU_mod__ ( char *  newVal)
int SRCU_pri_mod ( char *  sNew)
int SRCU_win_e2 ( double *  dVal,
int  mode 
)
SRCU_win_e2 set / get act. value
mode 0=get 1=set,
int SRCU_exit__ ( )
int SRCU_work_upd ( double  d1)
int SRCU_work__ ( int  mode)
int SRCU_list_vals__ ( ObjTXTSRC tso,
char *  sl 
)
int SRCU_txt_popCoord ( char *  sMen,
int  typ,
int  parTyp,
int  iNr 
)

Variable Documentation

MemObj UIw_Box_TB
int IE_modify
char* ObjCodTab[]
char* NcoTxtTab[]
char* GcoTxtTab[]
MemObj SRCU_tb =GUI_OBJ_NEW
static
MemObj SRCU_e2
static
MemObj SRCU_b1
static
MemObj SRCU_b3
static
MemObj SRCU_sl1
static
int SRCU__obj_stat
static
int SRCU__ED_stat
static
int SRCU_tmr_stat = 0
static
int SRCU_valNr = 0
static
char SRCU_val_def[40]
static
double SRCU_fakt = 0.
static
double SRCU_scal
static
ObjSRC SRCU_obj_pri
static
ObjTXTSRC SRCU_val_pri
static
int SRCU_codeOff
static
char* SRCU_ln_pri
static
int SRCU_val_siz
static
int SRCU_isModified
static
double SRCU_val_cen
static