gCAD3D 2.40
xa_app.c File Reference

applicationInterface for plugins APP_ More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_os.h"
#include "../ut/func_types.h"
#include "../xa/xa_mem.h"
#include "../xa/xa_uid.h"
#include "../xa/xa.h"

Functions

int APP_browse_label (char *fNam, char *label)
 
int APP_browse__ (char *filnam)
 
int APP_edit (char *filnam, int mode)
 
int APP_Help (char *appNam, char *label)
 
int APP_Open (char *wTit, char *filter, void *funcNam)
 ================================================================ More...
 
int APP_Save (char *wTit, char *defNam, void *funcNam)
 ================================================================ More...
 
int APP_htm_fop (FILE **fpo)
 
int APP_htm_print (FILE *fpo, char *txt)
 

Variables

char AP_mod_dir [128]
 
APP_OBJ_NAMUI_User_appNamTab
 

Detailed Description

applicationInterface for plugins APP_

=====================================================
List_functions_start:
APP_Help simple help
APP_Open select file from list, callback.
APP_Save simple save
APP_htm_fop open a temp-file for a html-dumpFile
APP_htm_print write into open htm-file
List_functions_end:
=====================================================
=====================================================
List_functions_start:
PLU_free kernel-free; see PLU_realloc
PLU_realloc kernel-realloc
PLU_close ReEnable Ctrl Y
PLU_unl unload plugin
PLU_Loa reStart remote
PLU_restart exec plugin
PLU_appNamTab_set provide names for application-objects
PLU_appNamTab_get return name of AppNam[iNam]
PLU_oid_appNam create name (oid) for application-object
List_functions_end:
=====================================================

Function Documentation

int APP_browse_label ( char *  fNam,
char *  label 
)
* html-browse <filnam>
* do not wait for end of process.
* filnam = NULL using default <temp>/temp.htm
*
*
int APP_browse__ ( char *  filnam)
* html-browse <filnam>
* do not wait for end of process.
* filnam = NULL using default <temp>/temp.htm
*
*
int APP_edit ( char *  filnam,
int  mode 
)
* <edit> <filnam>
* mode = 0 - waits for end of process
* 1 - do not wait for end of process
*
int APP_Help ( char *  appNam,
char *  label 
)
* call html-browser.
* Input:
* appNam used for html-filename (use global var APP_act_nam)
* label is added to filename (html-chapter).
* Example:
* appNam=PED; label="#chapter1"; AP_lang="en"
* result: browse "<docdir>/html/PED_en.htm#chapter1"
* see also IE_cad_help
*
int APP_Open ( char *  wTit,
char *  filter,
void *  funcNam 
)

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

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

* APP_Open select file from list, callback.
* filter eg "*" or "*.gcad"
* prototype funcNam:
* int funcNam ((char *filNam, char *dirNam);
*
int APP_Save ( char *  wTit,
char *  defNam,
void *  funcNam 
)

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

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

int APP_htm_fop ( FILE **  fpo)
int APP_htm_print ( FILE *  fpo,
char *  txt 
)

Variable Documentation

char AP_mod_dir[128]
APP_OBJ_NAM* UI_User_appNamTab