]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxBlackBox.h
Another ugly bug fixed in pipeline executing (bad transfer to parent in some cases...
[bbtk.git] / kernel / src / bbtkWxBlackBox.h
index f11ddebe5367aaa8705df473e93c533663564b54..bfa37e78cfd215cfa9d0b6e7c9ab045acd6d2f1a 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:15 $
-  Version:   $Revision: 1.18 $
+  Date:      $Date: 2008/11/13 14:46:43 $
+  Version:   $Revision: 1.19 $
 ========================================================================*/
 
 
@@ -224,10 +224,25 @@ namespace bbtk
   public:                                                              \
   inline void bbUserCreateWidget()                                     \
   {                                                                    \
-    bbtkDebugMessageInc("process",1,"**> Creating widget for ["                \
+    bbtkDebugMessageInc("wx",1,"**> Creating widget for ["             \
                        <<bbGetFullName()<<"]"<<std::endl);             \
     CALLBACK();                                                                \
-    bbtkDebugMessageInc("process",2,"<** Creating widget for ["                \
+    bbtkDebugMessageInc("wx",1,"<** Creating widget for ["             \
+                       <<bbGetFullName()<<"]"<<std::endl);             \
+  }
+  
+  //======================================================================
+
+  //======================================================================
+  /// Defines the bbUserOnShow method
+#define BBTK_ON_SHOW_WIDGET(CALLBACK)                                  \
+  public:                                                              \
+  inline void bbUserOnShow()                                   \
+  {                                                                    \
+    bbtkDebugMessageInc("wx",1,"**> Showing ["         \
+                       <<bbGetFullName()<<"]"<<std::endl);             \
+    CALLBACK();                                                                \
+    bbtkDebugMessageInc("wx",1,"<** Showing ["         \
                        <<bbGetFullName()<<"]"<<std::endl);             \
   }