gCAD3D 2.35
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_cre__ ()
 
int Mod_m2s__ ()
 
int Mod_chg__ (int mode)
 
int Mod_ren__ ()
 ================================================================= More...
 
int Mod_del__ ()
 

Variables

char WC_modact_nam [128]
 

Detailed Description

GUI Model-managment-functions.

=====================================================
List_functions_start:
Mod_cre__ create new SubModel
Mod_cre_CB
Mod_m2s__ move Mainmodel > Submodel
Mod_m2s_CB
Mod_chg__ activate other Submodel
Mod_ren__ rename Submodel
Mod_ren_CB
Mod_del__ delete Submodel
List_functions_end:
=====================================================

Function Documentation

void Mod_chg_CB ( char *  modNam)
- load new active SubModel
- set WC_modact_nam = new active Modelname
- RUN
int Mod_del_CB ( MemObj mo,
void **  data 
)
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 (WC_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 WC_modact_nam[128]