]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxBlackBox.h
* Major changes on IOStatus update / propagation
[bbtk.git] / kernel / src / bbtkWxBlackBox.h
index e2857e0d47c57d0f87ce4d0b548272b77bbb138a..2d9084c43f9102696717954adeb434957ea66d5e 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 11:17:13 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2008/12/08 12:54:27 $
+  Version:   $Revision: 1.22 $
 ========================================================================*/
 
 
@@ -125,9 +125,9 @@ namespace bbtk
     virtual void bbUserOnHide() {}
     //==================================================================    
 
-         // LG 24/11/08 : New widget pipeline
-         void bbCreateWidgetAndEventHandler(wxWindow* parent); 
 
+   // LG 24/11/08 : New widget pipeline
+    void bbCreateWidgetAndEventHandler(wxWindow* parent); 
          
   protected:
     
@@ -144,30 +144,32 @@ namespace bbtk
     //==================================================================    
     /// User callback for creating the widget associated to the box
     /// ** Must be defined **
-         // LG 24/11/08 : New widget pipeline
-         virtual void bbUserCreateWidget(wxWindow* parent) 
+    // LG 24/11/08 : New widget pipeline
+    virtual void bbUserCreateWidget(wxWindow* parent) 
     {
       bbtkError(bbGetTypeName()<<" is a WxBlackBox whose bbUserCreateWidget methods is not overloaded : is it a feature or a bug ?!?");
     }
     //==================================================================    
 
 
-         wxWindow* bbCreateWidgetOfInput(const std::string& in, wxWindow* parent);
+    //==================================================================    
+    // For layout widgets : creates and returns the widget 
+    // of the box connected to input in
+    wxWindow* bbCreateWidgetOfInput(const std::string& in, wxWindow* parent);
+    //==================================================================    
 
 
     //==================================================================
     /// Main processing method of the box.
-    virtual IOStatus bbBackwardUpdate( Connection::Pointer caller );
+    //  No more overloaded
+    //  virtual void bbBackwardUpdate( Connection::Pointer caller );
     //==================================================================
 
-
 
     //==================================================================
-    /// Overloaded processing method for WxBlackBoxes :
-    /// 1) if the widget is null then 
-    ///    calls the user defined widget creation method : bbUserCreateWidget()
-    /// 2) calls the user defined processing method : bbUserProcess()
-    /// 3) displays the window : bbShowWindow();
+    /// Overloaded processing method for WxBlackBoxes which handles 
+    /// the window creation if needed
     virtual void bbProcess();
     //==================================================================
 
@@ -215,12 +217,13 @@ namespace bbtk
     /// on a contained window
     /// Is set to true before transfering update to parent 
     /// in order to not re-transfer a second time...
+    /*
     bool bbmUpdateTransferedToParent;
 
     bool bbGetUpdateTransferedToParent() const { return bbmUpdateTransferedToParent; }
     void bbSetUpdateTransferedToParent(bool b) 
     { bbmUpdateTransferedToParent = b; }
-
+    */
   };
   //=================================================================