]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkKW.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkKW.cxx
index f4eb6fcd5d31276d505753d9d92bb2fe3446fb7b..36874f1306d4cefae4a1721c2fd3489822121ae3 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkKW.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/29 21:41:32 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/12/12 12:11:21 $
+  Version:   $Revision: 1.3 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 
 
 //#include "vtkConditionVariable.h"
-#include "vtkMultiThreader.h"
+//#include "vtkMultiThreader.h"
 
 #include <ctime>
+
+extern "C" int Bbtk_Init(Tcl_Interp *interp);
+
 namespace bbtk
 {
 
@@ -50,7 +53,8 @@ namespace bbtk
 
   //=========================================================================
   static vtkKWApplication* mgKWApp = 0;
-  static vtkMultiThreader* mgMultiThreader = 0;  /*
+  //static vtkMultiThreader* mgMultiThreader = 0;  
+  /*
   static vtkKWWindowBase* mgKWTopWindow = 0;
   static vtkKWWindowBase* mgKWTopWindowParent = 0;
   static bool mgKWAutoDestroyTopWindow = true;
@@ -113,6 +117,9 @@ namespace bbtk
        mgKWApp = vtkKWApplication::New();
        mgKWApp->SetName("bbtk");
 
+       Bbtk_Init(interp);
+
+
        /*
        if (mgMultiThreader == 0)
          {
@@ -126,7 +133,7 @@ namespace bbtk
        */
 
        // Dies as soon as it starts because no window at this point !!!
-       mgKWApp->Start();
+       //      mgKWApp->Start();
 
        /*
        clock_t endwait;