]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBox.h
Fixed Window deletion mechanism
[bbtk.git] / kernel / src / bbtkBlackBox.h
index ce1117fed4214d3f691a80f384436b7545ecba28..21bf67be52e52b9043ce8b299f37c70e74159df8 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2009/05/14 14:43:33 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2009/05/28 08:12:05 $
+  Version:   $Revision: 1.26 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -44,6 +44,7 @@
 #define __bbtkBlackBox_h__
 
 #include "bbtkSystem.h"
+#include "bbtkMessageManager.h"
 #include "bbtkBlackBoxDescriptor.h"
 #include "bbtkBlackBoxInputConnector.h"
 //#include "bbtkBlackBoxOutputConnector.h"
 #include <boost/signal.hpp>
 #include <boost/bind.hpp>
 
+
+#define bbtkBlackBoxMessage(key,level,mess) \
+  bbtkMessage(key,level,"["<<bbGetName()<<"] "<<mess)
+#define bbtkBlackBoxDebugMessage(key,level,mess)       \
+  bbtkDebugMessage(key,level,"["<<bbGetName()<<"] "<<mess)
+
 namespace bbtk
 {
 
@@ -369,8 +376,9 @@ namespace bbtk
 
     virtual void Check(bool recursive = true);
 
-       virtual void bbUserOnShow() { }
-       void bbUserOnShowWidget(std::string nameInput);
+    virtual void bbSetShown(bool) {}
+    virtual bool bbIsShown() { return false; }
+    virtual void bbUserOnShow() {}
 
   protected:
     //==================================================================
@@ -469,20 +477,6 @@ namespace bbtk
     void bbComputePostProcessStatus();
     //==================================================================
 
-    //==================================================================
-    /// Specific methods for window creation during pipeline execution
-    /// Creates the window associated to the box (called after bbUpdateInputs)
-    /// Does nothing here. Overloaded in WxBlackBox.
-    // virtual void bbCreateWindow() { }
-    /// Shows the window associated to the box 
-    /// (called after bbProcess during bbExecute)
-    /// Does nothing here but overloaded in WxBlackBox and WxContainerBlackBox
-    //    virtual void bbShowWindow(Connection::Pointer caller) { }
-    //    virtual void bbHideWindow() {}
-    //    virtual void bbCloseWindow() { }
-    //==================================================================
-
     //@}
   public: