source: trunk/gui/src/RapptureGUI_Init.c @ 3944

Last change on this file since 3944 was 3658, checked in by gah, 11 years ago

start of simple pdb reader

File size: 1.7 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  RapptureGUI_Init
4 *
5 *  This file contains the function that initializes all of the various
6 *  extensions in this package.
7 * ======================================================================
8 *  AUTHOR:  Michael McLennan, Purdue University
9 *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15
16#include <tcl.h>
17#include <tk.h>
18
19#ifdef BUILD_rappture
20#undef TCL_STORAGE_CLASS
21#define TCL_STORAGE_CLASS DLLEXPORT
22#endif
23
24extern Tcl_AppInitProc Rappturegui_Init;
25extern Tcl_AppInitProc RpCanvHotspot_Init;
26extern Tcl_AppInitProc RpCanvPlacard_Init;
27extern Tcl_AppInitProc RpDxToVtk_Init;
28extern Tcl_AppInitProc RpPdbToVtk_Init;
29extern Tcl_AppInitProc RpDiffview_Init;
30extern Tcl_AppInitProc RpReadPoints_Init;
31
32#ifdef BUILD_Rappture
33__declspec( dllexport )
34#endif
35
36int
37Rappturegui_Init( Tcl_Interp * interp)
38{
39    if (Tcl_InitStubs(interp, "8.4", 0) == NULL) {
40        return TCL_ERROR;
41    }
42    if (Tk_InitStubs(interp, "8.4", 0) == NULL) {
43        return TCL_ERROR;
44    }
45    if (RpDiffview_Init(interp) != TCL_OK) {
46        return TCL_ERROR;
47    }
48    if (RpCanvPlacard_Init(interp) != TCL_OK) {
49        return TCL_ERROR;
50    }
51    if (RpDxToVtk_Init(interp) != TCL_OK) {
52        return TCL_ERROR;
53    }
54    if (RpPdbToVtk_Init(interp) != TCL_OK) {
55        return TCL_ERROR;
56    }
57    if (RpReadPoints_Init(interp) != TCL_OK) {
58        return TCL_ERROR;
59    }
60    if (RpCanvHotspot_Init(interp) != TCL_OK) {
61        return TCL_ERROR;
62    }
63    return TCL_OK;
64}
65
Note: See TracBrowser for help on using the repository browser.