gCAD3D 2.40
xa_mod_gui.c File Reference

GUI Model-managment-functions. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../xa/xa_uid.h"
#include "../ut/func_types.h"
#include "../ut/ut_cast.h"
#include "../ut/ut_os.h"
#include "../ut/ut_umem.h"
#include "../gui/gui__.h"

Functions

void Mod_chg_CB (char *modNam)
 
int Mod_del_CB (MemObj *mo, void **data)
 
int Mod_smNam_get (char *smNam)
 
int Mod_cre__ ()
 
int Mod_m2s__ ()
 
int Mod_chg__ (int mode)
 
int Mod_ren__ ()
 ================================================================= More...
 
int Mod_del__ ()
 

Variables

char AP_modact_nam [128]
 

Detailed Description

GUI Model-managment-functions.

=====================================================
List_functions - see ../xa/xa_mod.c
=====================================================

Function Documentation

void Mod_chg_CB ( char *  modNam)
* - load new active SubModel
* - set AP_modact_nam = new active Modelname
* - RUN
*
int Mod_del_CB ( MemObj mo,
void **  data 
)
int Mod_smNam_get ( char *  smNam)

Mod_smNam_get get new subModelname from user

Output smNam size must be >= 64 retCod -1=cancel; 0=OK

int Mod_cre__ ( )

create new SubModel: save new submodelname; provide new (empty) Modelspace

int Mod_m2s__ ( )

move Mainmodel > Submodel

int Mod_chg__ ( int  mode)
* activate other Submodel
* - save active Model (AP_modact_nam) -> tmp/Model_<submodelname>
* - provide List of Submodelnames
* - Selection -> Mod_chg_CB
* mode 0=save actice Submodel; 1=do not save active Submodel
*
int Mod_ren__ ( )

=================================================================

================================================================= rename active subModel in browser the callback if OK selected.

int Mod_del__ ( )

Variable Documentation

char AP_modact_nam[128]