]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkKWBlackBox.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkKWBlackBox.cxx
index 501ebef7d2707b894d53ac9e78d9fb09e9511d29..3df2005599c64c1f11bb3940eebb209baccee6d4 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkKWBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/12/02 10:21:40 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/12/02 13:37:54 $
+  Version:   $Revision: 1.4 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -349,12 +349,16 @@ namespace bbtk
                KW::GetApplication()->AddWindow((vtkKWWindowBase*)win);
                win->Create();
                win->SetResizable(0,0);
-               bbUserCreateWidget(win->GetFrame());
 
+               bbUserCreateWidget(win->GetFrame());            
                KW::GetApplication()->Script("place %s -x 0 -y 0 -width %d -height %d",
                                             bbGetOutputWidget()->GetWidgetName(),
                                             bbGetInputWinWidth(),
                                             bbGetInputWinHeight());
+               
+
+
+
 
                /*
                bbGetOutputWidget()->SetParent(win);
@@ -404,7 +408,19 @@ namespace bbtk
   }
   //=========================================================================
   
-  
+  /*
+  //=========================================================================
+  void KWBlackBox::bbPlaceWidget()
+  {
+    vtkKWFrame* parent = (vtkKWFrame*)(bbGetOutputWidget()->GetParent());
+    bbGetOutputWidget->GetApplication()->Script("place %s -x 0 -y 0 -width %s -height %s",
+                                               bbGetOutputWidget()->GetWidgetName(),
+                                               parent->GetWidth(),
+                                               parent->GetHeight());
+  }
+  //=========================================================================
+  */
+
   /*
   // LG 24/11/08 : New widget pipeline
   void KWBlackBox::bbCreateWidgetAndEventHandler(vtkKWWidget* parent)
@@ -444,7 +460,7 @@ namespace bbtk
     
   */
   
-  vtkKWWidget*  KWBlackBox::bbCreateWidgetOfInput(const std::string& in, vtkKWWidget* parent)
+  vtkKWWidget*  KWBlackBox::bbCreateWidgetOfInput(const std::string& in, vtkKWFrame* parent)
   {
     vtkKWWidget* w = 0;
     // If input is connected