]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxBlackBox.cxx
No more transfered execution to parent for widget boxes (buggy...)
[bbtk.git] / kernel / src / bbtkWxBlackBox.cxx
index 01ee4712626af54419e49df5e12a8f8e631fbaa1..e99469cad07d2576e08d2906ed2a2947b86512e3 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 11:17:13 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2008/12/03 09:38:02 $
+  Version:   $Revision: 1.32 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -422,10 +422,12 @@ namespace bbtk
   /// Main processing method of the box.
   void WxBlackBox::bbExecute(bool force)
   {
+    /*
     bbtkDebugMessageInc("process",2,
                        "=> WxBlackBox::bbExecute("<<(int)force<<") ["
                        <<bbGetFullName()<<"]"<<std::endl);
-
+    */
+    /*
     // If the output 'Widget' is connected then 
     // we must execute the parent box
     BlackBox::OutputConnectorMapType::const_iterator i 
@@ -441,16 +443,24 @@ namespace bbtk
          ->GetBlackBoxTo()->bbExecute(force);
 
       }
+    */
+    /*
+    if (false)
+      {
+      }
     // else call 'standard' BlackBox execution method
     else 
       {
-       BlackBox::bbExecute(force);
+    */
+       return AtomicBlackBox::bbExecute(force);
+       /*
       }
     //
 
     bbtkDebugMessageDec("process",2,
                        "<= WxBlackBox::bbExecute() ["
                        <<bbGetFullName()<<"]"<<std::endl);
+       */
   }
   //=========================================================================
 
@@ -477,7 +487,7 @@ namespace bbtk
  
     // If the caller's box to is not the box to connected to the 
     // output 'Widget'
-
+    /*
     BlackBox::OutputConnectorMapType::const_iterator i 
       = bbGetOutputConnectorMap().find("Widget") ;
     if ( i->second->GetConnectionVector().size() != 0 )
@@ -526,6 +536,7 @@ namespace bbtk
                             <<std::endl);
          }
       }
+    */
     /*    
 
     // If the caller is not the connection to the output widget