#include "GedManagement.h"#include "TCL_Global.h"Include dependency graph for GedManagement.c:

Go to the source code of this file.
Functions | |
| static Tcl_Interp * | getGedInterpreter (void) |
| int | sciDestroyGed (int figureId) |
| int | isGedOpenedOn (int figureId) |
| static Tcl_Interp * getGedInterpreter | ( | void | ) | [static] |
Definition at line 70 of file GedManagement.c.
References TCLinterp.
Referenced by isGedOpenedOn(), and sciDestroyGed().
00071 { 00072 return TCLinterp ; 00073 }
Here is the caller graph for this function:

Definition at line 32 of file GedManagement.c.
References FALSE, getGedInterpreter(), NULL, and TRUE.
00033 { 00034 Tcl_Interp * gedInterp = getGedInterpreter() ; 00035 if ( gedInterp != NULL ) 00036 { 00037 /* check is sciGedIsAlive variable exists */ 00038 char * sGedWindowNum = (char * ) Tcl_GetVar( gedInterp, "sciGedIsAlive", TCL_GLOBAL_ONLY ) ; 00039 if ( sGedWindowNum ) 00040 { 00041 /* get the number of the window ged modified */ 00042 int iGedWindowNum ; 00043 sscanf( sGedWindowNum, "%d", &iGedWindowNum ) ; 00044 /* check if ged is opened on the checked window */ 00045 if ( iGedWindowNum == figureId ) 00046 { 00047 return TRUE ; 00048 } 00049 else 00050 { 00051 return FALSE ; 00052 } 00053 } 00054 else 00055 { 00056 return FALSE ; 00057 } 00058 } 00059 else 00060 { 00061 /* tcl has not been initialized yet */ 00062 return FALSE ; 00063 } 00064 }
Here is the call graph for this function:

Definition at line 14 of file GedManagement.c.
References getGedInterpreter(), and isGedOpenedOn().
00015 { 00016 Tcl_Interp * gedInterp = getGedInterpreter() ; 00017 if ( isGedOpenedOn( figureId ) ) 00018 { 00019 /* try to close the ticks editor */ 00020 Tcl_Eval( gedInterp, "catch { destroy .ticks }" ) ; 00021 /* try to close the editor */ 00022 Tcl_Eval( gedInterp, "catch { destroy .axes }" ) ; 00023 return 0 ; 00024 } 00025 else 00026 { 00027 return 1 ; 00028 } 00029 }
Here is the call graph for this function:

1.5.1