]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Wed, 6 Feb 2008 14:14:22 +0000 (14:14 +0000)
committerguigues <guigues>
Wed, 6 Feb 2008 14:14:22 +0000 (14:14 +0000)
27 files changed:
kernel/src/bbtkBlackBoxDescriptor.cxx
kernel/src/bbtkBlackBoxDescriptor.h
kernel/src/bbtkBlackBoxInputDescriptor.h
kernel/src/bbtkBlackBoxOutputDescriptor.h
kernel/src/bbtkComplexBlackBoxDescriptor.cxx
kernel/src/bbtkComplexBlackBoxInputDescriptor.cxx
kernel/src/bbtkComplexBlackBoxInputDescriptor.h
kernel/src/bbtkComplexBlackBoxOutputDescriptor.cxx
kernel/src/bbtkComplexBlackBoxOutputDescriptor.h
kernel/src/bbtkUserBlackBoxDescriptor.h
kernel/src/bbtkUserBlackBoxInputDescriptor.cxx
kernel/src/bbtkUserBlackBoxInputDescriptor.h
kernel/src/bbtkUserBlackBoxMacros.h
kernel/src/bbtkUserBlackBoxOutputDescriptor.cxx
kernel/src/bbtkUserBlackBoxOutputDescriptor.h
kernel/src/bbtkWxBlackBox.h
kernel/src/bbtkWxBrowser.cxx
kernel/src/bbtkWxBrowser.h
packages/itk/doc/bbdoc/header.html.in
packages/std/doc/bbdoc/header.html.in
packages/std/src/bbstdMagicBox.h
packages/void-bbtk-package.tgz
packages/wx/doc/bbdoc/header.html.in
packages/wx/src/bbwxNotebook.h
packages/wx/src/bbwxSizer.h
packages/wx/src/bbwxSlider.h
packages/wx/src/bbwxSplit.h

index 15f88d85d48c73f75376635e9d07553843338b7e..c81206d1c75946e72848571b71f6b419ce4c9ecb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/06 09:27:52 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -24,6 +24,8 @@
 #include "bbtkMessageManager.h"
 #include "bbtkPackage.h"
 #include "bbtkUtilities.h"
+#include "bbtkUserBlackBoxDescriptor.h"
+#include "bbtkWxBlackBox.h"
 
 namespace bbtk
 {
@@ -244,7 +246,7 @@ namespace bbtk
       << author << "</TD></TR>\n";
     (s) << "<TR><TD style='vertical-align: top;'><b> Category(s) </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'>  " 
       << category << "</TD></TR>\n";
-    (s) << "<TR><TD style='vertical-align: top;'><b> Include </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'>  " 
+    (s) << "<TR><TD style='vertical-align: top;'><b> To use it </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'>  include " 
        << GetPackage()->GetName() << "</TD></TR>\n";
     (s) << "</TABLE>\n";
 
@@ -254,43 +256,81 @@ namespace bbtk
     
     //-------------
     // Inputs
-    std::string col("#CCCCFF");
-    
+    std::string titlecol("#BBBBFF");
+    std::string usercol("#FFFFFF");
+    std::string ubbcol("#DDFFFF");
+    std::string wxbbcol("#EEFFFF");
+
+
     // (s) << "<h3 class=\"subsection\">Inputs</h3>\n";
     (s) << "<p><TABLE border=1 cellspacing=0 cellpadding=3>\n";
-    (s) << "<TR><TD colspan=3 align=center bgcolor=\""<<col
+    (s) << "<TR><TD colspan=3 align=center bgcolor=\""<<titlecol
       <<"\">Inputs</TD></TR>\n";
+
+    std::vector<std::string> user_defined;
+    std::vector<std::string> ubb_defined;
+    std::vector<std::string> wxbb_defined;
+
     const BlackBoxDescriptor::InputDescriptorMapType& imap = 
       GetInputDescriptorMap();
-    
     InputDescriptorMapType::const_iterator in;
-    
     for ( in = imap.begin();  in != imap.end(); ++in ) 
     {
-          std::string name(in->second->GetName());
-          Utilities::html_format(name);
-       
-          std::string type("<");
-          type += in->second->GetTypeName();    
-          type += ">";
-          Utilities::html_format(type);
+      // Skips system-defined inputs
+      std::string col(usercol);
+      int iotype = 0;
+      if (in->second->GetCreatorTypeInfo() == 
+         typeid(UserBlackBoxDescriptor))
+       {
+         col = ubbcol; 
+         iotype = 1;
+       }
+      else if (in->second->GetCreatorTypeInfo() == 
+              typeid(WxBlackBoxDescriptor))
+       {
+         col = wxbbcol; 
+         iotype = 2;
+       }
 
-          std::string descr(in->second->GetDescription());
-          //Utilities::html_format(descr);
-
-          (s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
-              << "<TD style='vertical-align: top;'><I><PRE> "<<type<<" </PRE></I></TD>"
-              << "<TD style='vertical-align: top;'>"<<descr<<"</TD></TR>\n";
-       
+      std::string name(in->second->GetName());
+      Utilities::html_format(name);
+      
+      std::string type("<");
+      type += in->second->GetTypeName();    
+      type += ">";
+      Utilities::html_format(type);
+      
+      std::string descr(in->second->GetDescription());
+      //Utilities::html_format(descr);
+      
+      std::string out = 
+       "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+       +"\"><B><PRE> "+name+" </PRE></B></TD>"
+       + "<TD style='vertical-align: top;' bgcolor=\""+col
+       +"\"><I><PRE> "+type+" </PRE></I></TD>"
+       + "<TD style='vertical-align: top;' bgcolor=\""+col
+       +"\">"+descr+"</TD></TR>\n";
+      
+      if (iotype==0) user_defined.push_back(out);
+      else if (iotype==1) ubb_defined.push_back(out);
+      else if (iotype==2) wxbb_defined.push_back(out);
+      
     }
-    // (s) << "</TABLE>\n";
-    
-    
+
+    std::vector<std::string>::iterator hi;
+    for (hi=user_defined.begin();hi!=user_defined.end();++hi) s << *hi;
+    for (hi=wxbb_defined.begin();hi!=wxbb_defined.end();++hi) s << *hi;
+    for (hi=ubb_defined.begin();hi!=ubb_defined.end();++hi) s << *hi;
+
+    user_defined.clear();
+    ubb_defined.clear();
+    wxbb_defined.clear();
+
     //-------------
     // Outputs
     // (s) << "<h3 class=\"subsection\">Outputs</h3>\n";
     // (s) << "<TABLE border=1 cellspacing=0>\n";
-    (s) << "<TR><TD colspan=3 align=center bgcolor=\""<<col
+    (s) << "<TR><TD colspan=3 align=center bgcolor=\""<<titlecol
       <<"\">Outputs</TD></TR>\n";
     
     const BlackBoxDescriptor::OutputDescriptorMapType& omap = 
@@ -299,26 +339,53 @@ namespace bbtk
     BlackBoxDescriptor::OutputDescriptorMapType::const_iterator o;
     
     for ( o = omap.begin();  o != omap.end(); ++o ) 
-    {
-          std::string name(o->second->GetName());
-          Utilities::html_format(name);
-
-          std::string type("<");
-          type += o->second->GetTypeName();    
-          type += ">";
-          Utilities::html_format(type);
+      {
+       std::string col(usercol);
+       int iotype = 0;
+       if (o->second->GetCreatorTypeInfo() == 
+           typeid(UserBlackBoxDescriptor))
+         {
+           col = ubbcol; 
+           iotype = 1;
+         }
+       else if (o->second->GetCreatorTypeInfo() == 
+                typeid(WxBlackBoxDescriptor))
+         {
+           col = wxbbcol; 
+           iotype = 2;
+         }
        
-          std::string descr(o->second->GetDescription());
-          //Utilities::html_format(descr);
+       std::string name(o->second->GetName());
+       Utilities::html_format(name);
        
+       std::string type("<");
+       type += o->second->GetTypeName();    
+       type += ">";
+       Utilities::html_format(type);
        
-          (s) << "<TR><TD style='vertical-align: top;'><B><PRE> "<<name<<" </PRE></B></TD>"
-              << "<TD style='vertical-align: top;'><I><PRE> "<<type<<" </PRE></I></TD>"
-              << "<TD style='vertical-align: top;'>"<<descr<<"</TD></TR>\n";
+       std::string descr(o->second->GetDescription());
+       //Utilities::html_format(descr);
        
-    }
-    (s) << "</TABLE>\n";
+       std::string out = 
+         "<TR><TD style='vertical-align: top;' bgcolor=\"" + col
+         +"\"><B><PRE> "+name+" </PRE></B></TD>"
+         + "<TD style='vertical-align: top;' bgcolor=\""+col
+         +"\"><I><PRE> "+type+" </PRE></I></TD>"
+         + "<TD style='vertical-align: top;' bgcolor=\""+col
+         +"\">"+descr+"</TD></TR>\n";
+       
+       if (iotype==0) user_defined.push_back(out);
+       else if (iotype==1) ubb_defined.push_back(out);
+       else if (iotype==2) wxbb_defined.push_back(out);
+       
+      }
+    
+    for (hi=user_defined.begin();hi!=user_defined.end();++hi) s << *hi;
+    for (hi=wxbb_defined.begin();hi!=wxbb_defined.end();++hi) s << *hi;
+    for (hi=ubb_defined.begin();hi!=ubb_defined.end();++hi) s << *hi;
 
+    (s) << "</TABLE>\n";
+    
     //------------
     // End
 
index 1c15241daa8343ec353391fb63198c645b6cff78..1d0ee5d66510d69b0126d079932cddbb805aeb82 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 12:16:55 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -155,7 +155,7 @@ namespace bbtk
     std::string mAuthor;
     /// The category of the black box
     std::string mCategory;    
-    /// The kind of box
+    /// The kind of box (standard / adaptor)
     Kind mKind;
     /// The Package to which the box belongs
     Package *mPackage;
index 0462c0ccc9519749a2e45861e09fbe57b17d29ee..19c578f91514093d6635413b51b590e5f2f8a844 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxInputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -34,8 +34,6 @@
 
 namespace bbtk
 {
-  
-  
   class BBTK_EXPORT BlackBoxInputDescriptor
   {
   public:
@@ -46,14 +44,18 @@ namespace bbtk
     
     
     /// Ctor with name and description
-    BlackBoxInputDescriptor( const std::string& name,
-                            const std::string& description,
-                            OptionType option = MANDATORY,
-                            bool copy_construct = true)
-      : mName(name), mDescription(description), 
+    BlackBoxInputDescriptor(TypeInfo creator_type_info,
+                           const std::string& name,
+                           const std::string& description,
+                           OptionType option = MANDATORY,
+                           bool copy_construct = true)
+      : mCreatorTypeInfo(creator_type_info),
+       mName(name), mDescription(description), 
        mOption(option), mCopyConstruct(copy_construct) 
     {}
     
+    /// Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor
+    TypeInfo GetCreatorTypeInfo() { return mCreatorTypeInfo; }
     /// Returns the name of the input
     const std::string& GetName() const { return mName; }
     /// Returns the description of the input
@@ -74,8 +76,12 @@ namespace bbtk
     
   private:
     /// Default ctor is private
-    BlackBoxInputDescriptor() : mName(""), mDescription(""), 
+    BlackBoxInputDescriptor() : mCreatorTypeInfo(typeid(void)),
+                               mName(""), mDescription(""), 
                                mOption(OPTIONAL) {}
+
+    /// The TypeInfo of the BlackBoxDescriptor which created this descriptor
+    TypeInfo mCreatorTypeInfo;
     /// The name of the input
     std::string mName;
     /// The description of the input
index eb1164f9f46abe2557c935e1c5acc98d40e2b52c..c4196715c4153718ece6783acfdbd098bbe6fefc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxOutputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 namespace bbtk
 {
   
-  
   class BBTK_EXPORT BlackBoxOutputDescriptor
   {
   public:
     /// Ctor with name and description
-    BlackBoxOutputDescriptor( const std::string& name,
+    BlackBoxOutputDescriptor( TypeInfo creator_type_info,
+                             const std::string& name,
                              const std::string& description,
                              bool copy_construct = true)
-      : mName(name), mDescription(description), 
+      : mCreatorTypeInfo(creator_type_info),
+       mName(name), mDescription(description), 
        mCopyConstruct(copy_construct) 
     {}
-    
+
+    /// Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor
+    TypeInfo GetCreatorTypeInfo() { return mCreatorTypeInfo; }
     /// Returns the name of the output
     const std::string& GetName() const { return mName; }
     /// Returns the description of the output
@@ -67,7 +70,11 @@ namespace bbtk
     
   private:
     /// Default ctor is private
-    BlackBoxOutputDescriptor() : mName(""), mDescription("") {}
+    BlackBoxOutputDescriptor() : mCreatorTypeInfo(typeid(void)),
+                                mName(""), mDescription("") {}
+
+    /// The TypeInfo of the BlackBoxDescriptor which created this descriptor
+    TypeInfo mCreatorTypeInfo;
     /// The name of the output
     std::string mName;
     /// The description of the output
index f6f6f4b14df01f43cf89dc6e3c07ef86fd990129..a6b40e6aa0e3706d3094da042f1c5f12bdcb24d7 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -37,6 +37,7 @@ namespace bbtk
   {
     bbtkDebugMessageInc("Kernel",9,"ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(\""<<name<<"\")"<<std::endl);
     SetTypeName(name);
+    AddToCategory("script");
     mPrototype = new ComplexBlackBox(name+std::string("Prototype"),this);
     bbtkDebugDecTab("Kernel",9);
   }
@@ -181,12 +182,14 @@ namespace bbtk
                  <<input<<"\"");
       }
     
-    AddInputDescriptor ( new ComplexBlackBoxInputDescriptor ( name,
-                                                             help,
-                                                             box,
-                                                             input,
-                                                             bb->bbGetInputType(input)));
-                                                            
+    AddInputDescriptor ( new ComplexBlackBoxInputDescriptor 
+                        ( typeid(ComplexBlackBoxDescriptor),
+                          name,
+                          help,
+                          box,
+                          input,
+                          bb->bbGetInputType(input)));
+    
     
     bbtkDebugDecTab("Kernel",5);
   }
@@ -219,7 +222,8 @@ namespace bbtk
       }
     
     AddOutputDescriptor ( new ComplexBlackBoxOutputDescriptor 
-                         ( name,
+                         ( typeid(ComplexBlackBoxDescriptor),
+                           name,
                            help,
                            box,
                            output,
@@ -298,7 +302,7 @@ namespace bbtk
     std::string inc = GetScriptFileName();
     if (inc.size()>0) 
       {
-    (s) << "<TR><TD style='vertical-align: top;'><b> Include </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'>  " 
+    (s) << "<TR><TD style='vertical-align: top;'><b> Use command </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> include " 
       << inc << "</TD></TR>\n";
        
       }
index fcec38b21db5b9669e2ae20f14f5c3fbf153830e..f32344f3012bc1ba63658e57255a9731d64eafa5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxInputDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,13 +27,15 @@ namespace bbtk
 {
 
   
-  ComplexBlackBoxInputDescriptor::ComplexBlackBoxInputDescriptor( const std::string& name,
-                                                                   const std::string& description,
-                                                                   const std::string& target,
-                                                                 const std::string& input,
-TypeInfo type)                 
+  ComplexBlackBoxInputDescriptor::
+  ComplexBlackBoxInputDescriptor( TypeInfo creator_type_info,
+                                 const std::string& name,
+                                 const std::string& description,
+                                 const std::string& target,
+                                 const std::string& input,
+                                 TypeInfo type)                        
     : 
-    BlackBoxInputDescriptor(name,description),
+    BlackBoxInputDescriptor(creator_type_info,name,description),
     mTarget(target),
     mInput(input),
     mType(type)
index 1cd39a154aedaed9992bcd553c029b6d33972963..99d029ce45abba88f8fd3a78a67ff1b0b6e17999 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxInputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -35,11 +35,13 @@ namespace bbtk
 {
 
 
-  class BBTK_EXPORT ComplexBlackBoxInputDescriptor : public bbtk::BlackBoxInputDescriptor
+  class BBTK_EXPORT ComplexBlackBoxInputDescriptor : 
+    public bbtk::BlackBoxInputDescriptor
   {
   public:
       
-    ComplexBlackBoxInputDescriptor( const std::string& name,
+    ComplexBlackBoxInputDescriptor( TypeInfo creator_type_info,
+                                   const std::string& name,
                                    const std::string& description,
                                    const std::string& target,
                                    const std::string& input,
@@ -63,8 +65,9 @@ namespace bbtk
     
   private:
     /// Default ctor is private 
-    ComplexBlackBoxInputDescriptor() : BlackBoxInputDescriptor("",""),
-                                      mType(typeid(void)) {}
+    ComplexBlackBoxInputDescriptor() : 
+      BlackBoxInputDescriptor(typeid(void),"",""),
+      mType(typeid(void)) {}
     std::string mTarget;
     std::string mInput;
     TypeInfo mType;
index 8d5c5d84092a19c66545a1360f2a19022398eb47..504199a350164513b1daf2f1f1d870c22ea7bcf1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxOutputDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,13 +27,15 @@ namespace bbtk
 {
 
 
-  ComplexBlackBoxOutputDescriptor::ComplexBlackBoxOutputDescriptor( const std::string& name,
-                                                                   const std::string& description,
-                                                                   const std::string& target,
-                                                                   const std::string& output,
-                                                                   TypeInfo type)                      
+  ComplexBlackBoxOutputDescriptor::
+  ComplexBlackBoxOutputDescriptor( TypeInfo creator_type_info,
+                                  const std::string& name,
+                                  const std::string& description,
+                                  const std::string& target,
+                                  const std::string& output,
+                                  TypeInfo type)                       
     : 
-    BlackBoxOutputDescriptor(name,description),
+    BlackBoxOutputDescriptor(creator_type_info,name,description),
     mTarget(target),
     mOutput(output),
     mType(type)
index dff02047db1d25d674c7ce0ab26a95dfaf4edcdd..62f2a9dca2a17258f51a44b948f8591046b03860 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBoxOutputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,11 +36,13 @@ namespace bbtk
 {
 
 
-  class BBTK_EXPORT ComplexBlackBoxOutputDescriptor : public bbtk::BlackBoxOutputDescriptor
+  class BBTK_EXPORT ComplexBlackBoxOutputDescriptor : 
+    public bbtk::BlackBoxOutputDescriptor
   {
   public:
       
-    ComplexBlackBoxOutputDescriptor( const std::string& name,
+    ComplexBlackBoxOutputDescriptor( TypeInfo creator_type_info,
+                                    const std::string& name,
                                     const std::string& description,
                                     const std::string& target,
                                     const std::string& output,
@@ -66,7 +68,8 @@ namespace bbtk
   private:
     /// Default ctor is private 
     ComplexBlackBoxOutputDescriptor() : 
-      BlackBoxOutputDescriptor("",""), mType(typeid(void))  {}
+      BlackBoxOutputDescriptor(typeid(void),"",""), 
+      mType(typeid(void))  {}
     std::string mTarget;
     std::string mOutput;
     TypeInfo mType;
index 7f42a759dedcc89fda9bf7516c9d96cfebd19797..5346a28e792a3f3775724ce2ba41d8e57b85119e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -41,19 +41,33 @@ namespace bbtk
   public:
     UserBlackBoxDescriptor() 
     {  
-      AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxProcessMode",
-                                                              "Set the process mode of the box (Pipeline | Always | Reactive)", 
-                                                              new bbtk::UserBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode), 
-                                                              new bbtk::UserBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
-      AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxExecute",
-                                                              "Any change signal received by this input executes the box", 
-                                                              new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute), 
-                                                              new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
-      
-      AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor("BoxChange",
-                                                                "Propagates modification of the box", 
-                                                                new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange), 
-                                                                new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
+      // Creates the input 'BoxProcessMode'
+      AddInputDescriptor
+       (new 
+        bbtk::UserBlackBoxInputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxProcessMode",
+         "Sets the processing mode of the box (Pipeline | Always | Reactive)", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
+      // Creates the input 'BoxExecute'
+      AddInputDescriptor
+       (new
+        bbtk::UserBlackBoxInputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxExecute",
+         "Any signal received by this input executes the box", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
+      // Creates the output 'BoxChange'      
+      AddOutputDescriptor
+       (new 
+        bbtk::UserBlackBoxOutputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxChange",
+         "Signal modifications of the box", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
     }
   };
     
index 38a8077201e2323a4bbd355fef1dd80acc034ab8..91d0ed6f83780764168d963397bbb5dde90303e0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxInputDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 namespace bbtk
 {
   
-  UserBlackBoxInputDescriptor::UserBlackBoxInputDescriptor( const std::string& name,
-                                                           const std::string& description,
-                                                           UserBlackBoxGetFunctor* getfunctor,
-                                                           UserBlackBoxSetFunctor* setfunctor,
-                                                           bool copy_construct) 
+  UserBlackBoxInputDescriptor::
+  UserBlackBoxInputDescriptor( TypeInfo creator_type_info,
+                              const std::string& name,
+                              const std::string& description,
+                              UserBlackBoxGetFunctor* getfunctor,
+                              UserBlackBoxSetFunctor* setfunctor,
+                              bool copy_construct) 
     : 
-    BlackBoxInputDescriptor(name,description,MANDATORY,copy_construct),
+    BlackBoxInputDescriptor(creator_type_info,
+                           name,description,MANDATORY,copy_construct),
     mGetFunctor(getfunctor),
     mSetFunctor(setfunctor)
   {  
index a5cce852099dff7f1abc069a757e153275019ace..2132e94ad804a6c30150c070eafb328b8c83142b 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxInputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,7 +36,8 @@ namespace bbtk
 {
 
 
-  class BBTK_EXPORT UserBlackBoxInputDescriptor : public bbtk::BlackBoxInputDescriptor
+  class BBTK_EXPORT UserBlackBoxInputDescriptor : 
+    public bbtk::BlackBoxInputDescriptor
   {
   public:
     //typedef enum {
@@ -45,7 +46,8 @@ namespace bbtk
     //} InputType;
 
       
-    UserBlackBoxInputDescriptor( const std::string& name,
+    UserBlackBoxInputDescriptor( TypeInfo creator_type_info,
+                                const std::string& name,
                                 const std::string& description,
                                 UserBlackBoxGetFunctor* getfunctor,
                                 UserBlackBoxSetFunctor* setfunctor,
@@ -68,7 +70,8 @@ namespace bbtk
     
   private:
     /// Default ctor is private 
-    UserBlackBoxInputDescriptor() : BlackBoxInputDescriptor("","") {}
+    UserBlackBoxInputDescriptor() : 
+      BlackBoxInputDescriptor(typeid(void),"","") {}
     /// The functor on the Get method
     UserBlackBoxGetFunctor* mGetFunctor;
     /// The functor on the Set method
index 660d8b655698175bef0ae02d4f8228a2923512aa..10b12acff5d87463bb62337579546405db47d16d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxMacros.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 /// Describes a UserBlackBox input (to be put inside the UBB description block)
 #define BBTK_INPUT(CLASS,NAME,DESCR,TYPE)                              \
   AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor             \
-                    (#NAME,DESCR,                                      \
+                    (typeid(CLASS ## Descriptor),                      \
+                     #NAME,DESCR,                                      \
                      new bbtk::UserBlackBoxTGetFunctor<CLASS,TYPE,TYPE > \
                      (&CLASS::bbGetInput##NAME),                       \
                      new bbtk::UserBlackBoxTSetFunctor<CLASS,TYPE,TYPE > \
 /// Describes a UserBlackBox output (to be put inside the UBB description block)
 #define BBTK_OUTPUT(CLASS,NAME,DESCR,TYPE)                             \
   AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor           \
-                     (#NAME,DESCR,                                     \
+                     (typeid(CLASS ## Descriptor),#NAME,DESCR,                         \
                       new bbtk::UserBlackBoxTGetFunctor<CLASS,TYPE,TYPE > \
                       (&CLASS::bbGetOutput##NAME),                     \
                       new bbtk::UserBlackBoxTSetFunctor<CLASS,TYPE,TYPE > \
 /// Describes a UserBlackBox input (to be put inside the UBB description block)
 #define BBTK_INPUT_NOCOPY(CLASS,NAME,DESCR,TYPE)                       \
   AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor             \
-                    (#NAME,DESCR,                                      \
+                    (typeid(CLASS ## Descriptor),#NAME,DESCR,                                  \
                      new bbtk::UserBlackBoxTGetFunctor<CLASS,TYPE,TYPE > \
                      (&CLASS::bbGetInput##NAME),                       \
                      new bbtk::UserBlackBoxTSetFunctor<CLASS,TYPE,TYPE > \
 /// Describes a UserBlackBox output (to be put inside the UBB description block)
 #define BBTK_OUTPUT_NOCOPY(CLASS,NAME,DESCR,TYPE)                      \
   AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor           \
-                     (#NAME,DESCR,                                     \
+                     (typeid(CLASS ## Descriptor),#NAME,DESCR,                         \
                       new bbtk::UserBlackBoxTGetFunctor<CLASS,TYPE,TYPE > \
                       (&CLASS::bbGetOutput##NAME),                     \
                       new bbtk::UserBlackBoxTSetFunctor<CLASS,TYPE,TYPE > \
 /// Describes a template UserBlackBox input (to be put inside the template UBB description block)
 #define BBTK_TEMPLATE_INPUT(CLASS,NAME,DESCR,TYPE)                     \
   AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor             \
-                    (#NAME,DESCR,                                      \
+                    (typeid(CLASS ## Descriptor),#NAME,DESCR,                                  \
                      new bbtk::UserBlackBoxTGetFunctor<CLASS<T>,TYPE,TYPE > \
                      (&CLASS<T>::bbGetInput##NAME),                    \
                      new bbtk::UserBlackBoxTSetFunctor<CLASS<T>,TYPE,TYPE > \
 /// Describes a template UserBlackBox output (to be put inside the template UBB description block)
 #define BBTK_TEMPLATE_OUTPUT(CLASS,NAME,DESCR,TYPE)                    \
   AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor           \
-                     (#NAME,DESCR,                                     \
+                     (typeid(CLASS ## Descriptor),#NAME,DESCR,                         \
                       new bbtk::UserBlackBoxTGetFunctor<CLASS<T>,TYPE,TYPE > \
                       (&CLASS<T>::bbGetOutput##NAME),                  \
                       new bbtk::UserBlackBoxTSetFunctor<CLASS<T>,TYPE,TYPE > \
 /// Describes a 2 template params UserBlackBox input (to be put inside the UBB description block)
 #define BBTK_TEMPLATE2_INPUT(CLASS,NAME,DESCR,TYPE)                    \
   AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor             \
-                    (#NAME,DESCR,                                      \
+                    (typeid(CLASS ## Descriptor),#NAME,DESCR,                                  \
                      new bbtk::UserBlackBoxTGetFunctor<CLASS<T1,T2>,TYPE,TYPE >        \
                      (&CLASS<T1,T2>::bbGetInput##NAME),                \
                      new bbtk::UserBlackBoxTSetFunctor<CLASS<T1,T2>,TYPE,TYPE >        \
 /// Describes a 2 template params UserBlackBox output (to be put inside the UBB description block)
 #define BBTK_TEMPLATE2_OUTPUT(CLASS,NAME,DESCR,TYPE)                   \
   AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor           \
-                     (#NAME,DESCR,                                     \
+                     (typeid(CLASS ## Descriptor),#NAME,DESCR,                         \
                       new bbtk::UserBlackBoxTGetFunctor<CLASS<T1,T2>,TYPE,TYPE > \
                       (&CLASS<T1,T2>::bbGetOutput##NAME),              \
                       new bbtk::UserBlackBoxTSetFunctor<CLASS<T1,T2>,TYPE,TYPE > \
index df4d5881af017b051c5aa8d7affa246af6f3bd44..484cd1e203b89f623c4f375bbab502e3c99f4687 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxOutputDescriptor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 13:23:46 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,13 +27,16 @@ namespace bbtk
 {
 
 
-  UserBlackBoxOutputDescriptor::UserBlackBoxOutputDescriptor( const std::string& name,
-                                                             const std::string& description,
-                                                             UserBlackBoxGetFunctor* getfunctor,
-                                                             UserBlackBoxSetFunctor* setfunctor,
-                                                             bool copy_construct ) 
+  UserBlackBoxOutputDescriptor::
+  UserBlackBoxOutputDescriptor( TypeInfo creator_type_info,
+                               const std::string& name,
+                               const std::string& description,
+                               UserBlackBoxGetFunctor* getfunctor,
+                               UserBlackBoxSetFunctor* setfunctor,
+                               bool copy_construct ) 
     : 
-    BlackBoxOutputDescriptor(name,description,copy_construct),
+    BlackBoxOutputDescriptor(creator_type_info,
+                            name,description,copy_construct),
     mGetFunctor(getfunctor),
     mSetFunctor(setfunctor)
   {    
index 794587c4a7534e03f8669d06e8e896f2218a1435..5dae5219707e320896410f5be60f8916e5665c48 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxOutputDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,11 +36,13 @@ namespace bbtk
 {
 
 
-  class BBTK_EXPORT UserBlackBoxOutputDescriptor : public bbtk::BlackBoxOutputDescriptor
+  class BBTK_EXPORT UserBlackBoxOutputDescriptor : 
+    public bbtk::BlackBoxOutputDescriptor
   {
   public:
       
-    UserBlackBoxOutputDescriptor( const std::string& name,
+    UserBlackBoxOutputDescriptor( TypeInfo creator_type_info,
+                                 const std::string& name,
                                  const std::string& description,
                                  UserBlackBoxGetFunctor* getfunctor,
                                  UserBlackBoxSetFunctor* setfunctor,
@@ -62,7 +64,8 @@ namespace bbtk
     
   private:
     /// Default ctor is private 
-    UserBlackBoxOutputDescriptor() : BlackBoxOutputDescriptor("","") {}
+    UserBlackBoxOutputDescriptor() : 
+      BlackBoxOutputDescriptor(typeid(void),"","") {}
     /// The functor on the Get method
     UserBlackBoxGetFunctor* mGetFunctor;
     /// The functor on the Set method
index fcd35bebf7e314d01885953a86e50c745aa01fe4..8159ba8a7e7289a08932f14542c10e7dea69ed47 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/28 14:32:54 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -189,19 +189,19 @@ namespace bbtk
   // UserBlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(WxBlackBox,bbtk::UserBlackBox);
   BBTK_NAME("WxBlackBox");
-  //  BBTK_INPUT_NOCOPY(WxBlackBox,WinParent,"Parent widget box",
-  //               WxParentToChildData*);
+  BBTK_DESCRIPTION("Widget box. The inputs marked with (*) are only used if the widget is not inserted in another widget.\n");
+  BBTK_CATEGORY("widget");
   BBTK_INPUT(WxBlackBox,WinTitle,
-            "Title of the window (only used if the box is the top window of a Parent-Child hierarchy)",
+            "Title of the window (*)",
             std::string);
   BBTK_INPUT(WxBlackBox,WinWidth,
-            "Width of the window (only used if the box is the top window of a Parent-Child hierarchy)",int);
+            "Width of the window (*)",int);
   BBTK_INPUT(WxBlackBox,WinHeight,
-            "Height of the window (only used if the box is the top window of a Parent-Child hierarchy)",int);
+            "Height of the window (*)",int);
   BBTK_INPUT(WxBlackBox,WinDialog,
-            "Set to 'true' to have a dialog window, i.e. which is modal (steals the focus until closed) (only used if the box is the top window of a Parent-Child hierarchy)",bool);
+            "Set to 'true' to create a dialog window, i.e. which blocks the pipeline until it is closed (modal) (*)",bool);
   BBTK_INPUT(WxBlackBox,WinHide,
-            "Any signal received hides the window (only active if the box is the top window of a Parent-Child hierarchy)",Void);
+            "Any signal received hides the window (*)",Void);
   BBTK_OUTPUT(WxBlackBox,Widget,"Output widget",wxWindow*);
   BBTK_END_DESCRIBE_BLACK_BOX(WxBlackBox);
   //=================================================================
index f0df6cff60d91ac1f13732b79141bc4ce3ed21b2..3776e1f4f949c60680025516d6cb1de3a05d387c 100644 (file)
@@ -31,6 +31,7 @@ namespace bbtk
       bwd_id,
       fwd_id,
       home_id,
+      reload_id,
       index_id,
       url_id,
       html_id
@@ -41,6 +42,7 @@ namespace bbtk
     EVT_BUTTON(bwd_id, WxBrowser::OnBackButton )
     EVT_BUTTON(fwd_id, WxBrowser::OnForwardButton )
     EVT_BUTTON(home_id, WxBrowser::OnHomeButton )
+    EVT_BUTTON(reload_id, WxBrowser::OnReloadButton )
     EVT_BUTTON(index_id, WxBrowser::OnMakeIndexButton )
     EVT_TEXT_ENTER(url_id, WxBrowser::OnURLEnter )
     EVT_HTML_LINK_CLICKED(html_id, WxBrowser::OnLinkClicked)
@@ -79,6 +81,11 @@ namespace bbtk
     bsizer->Add ( mwxHomeButton, 0, wxALIGN_CENTRE | 
                  wxLEFT | wxTOP | wxBOTTOM , 10 );
     
+    mwxReloadButton = new wxButton( panel, reload_id,_T("."),wxDefaultPosition,
+                                   wxDefaultSize,wxBU_EXACTFIT);
+    bsizer->Add ( mwxReloadButton, 0, wxALIGN_CENTRE | 
+                 wxTOP | wxBOTTOM , 10 );
+
     mwxMakeIndexButton = new wxButton( panel, index_id,
                                       _T("*"),wxDefaultPosition,
                                       wxDefaultSize,wxBU_EXACTFIT);
@@ -121,6 +128,8 @@ namespace bbtk
     panel      -> SetAutoLayout(true);
     panel      -> Layout();
 
+    GoHome();
+
     /*
     Connect( mwxBackButton->GetId(), 
             wxEVT_COMMAND_BUTTON_CLICKED , 
@@ -181,7 +190,7 @@ namespace bbtk
   //========================================================================
 
   //========================================================================
-  void WxBrowser::OnHomeButton(wxCommandEvent& )
+  void WxBrowser::GoHome()
   {
     std::string url = ConfigurationFile::GetInstance().Get_url();
     url += "/bbtkWebSite/menu.html";
@@ -189,6 +198,21 @@ namespace bbtk
   }
   //========================================================================
 
+  //========================================================================
+  void WxBrowser::OnHomeButton(wxCommandEvent& )
+  {
+    GoHome();
+  }
+  //========================================================================
+
+  //========================================================================
+  void WxBrowser::OnReloadButton(wxCommandEvent& )
+  {
+    std::string s = wx2std(mwxHtmlWindow->GetOpenedPage());
+    GoTo(s);
+  }
+  //========================================================================
+
   //========================================================================
   void WxBrowser::OnMakeIndexButton(wxCommandEvent& )
   {
index 2554a179318a871706f90e74e6f54c9cdf8b6bbf..131b77ee97bd020b47d7e02820108d7e2e9f49ea 100644 (file)
@@ -41,10 +41,12 @@ namespace bbtk
     WxBrowser ( wxWindow *parent, wxSize size );
  
     bool GoTo(std::string&);
+    void GoHome();
 
     void OnBackButton(wxCommandEvent& );
     void OnForwardButton(wxCommandEvent& );
     void OnHomeButton(wxCommandEvent& );
+    void OnReloadButton(wxCommandEvent& );
     void OnMakeIndexButton(wxCommandEvent& );
     void OnLinkClicked(wxHtmlLinkEvent& );
     void OnURLEnter( wxCommandEvent&);
@@ -59,6 +61,7 @@ namespace bbtk
     wxButton* mwxBackButton;
     wxButton* mwxForwardButton;
     wxButton* mwxHomeButton;
+    wxButton* mwxReloadButton;
     wxButton* mwxMakeIndexButton;
  
    // any class wishing to process wxWidgets events must use this macro
index b0e7b0ad2a6f7d3bc14ff88bc33a09c6d6d0c0a1..28c72c2880b3cb3e3d2593f32fbadc3bbdffd23e 100644 (file)
@@ -4,5 +4,9 @@
 <p>
 Version <b>@BBTK_PACKAGE_MAJOR_VERSION@.@BBTK_PACKAGE_MINOR_VERSION@.@BBTK_PACKAGE_BUILD_VERSION@</b> - 
 by <b>@BBTK_PACKAGE_AUTHOR@</b>
+
 <p>
 @BBTK_PACKAGE_DESCRIPTION@
+
+<p>
+ <a href="../../doxygen/@BBTK_PACKAGE_NAME@/index.html">Doxygen documentation</a> of the source code
index b0e7b0ad2a6f7d3bc14ff88bc33a09c6d6d0c0a1..28c72c2880b3cb3e3d2593f32fbadc3bbdffd23e 100644 (file)
@@ -4,5 +4,9 @@
 <p>
 Version <b>@BBTK_PACKAGE_MAJOR_VERSION@.@BBTK_PACKAGE_MINOR_VERSION@.@BBTK_PACKAGE_BUILD_VERSION@</b> - 
 by <b>@BBTK_PACKAGE_AUTHOR@</b>
+
 <p>
 @BBTK_PACKAGE_DESCRIPTION@
+
+<p>
+ <a href="../../doxygen/@BBTK_PACKAGE_NAME@/index.html">Doxygen documentation</a> of the source code
index c4226c9b8fdacd839b39f6ab7c895d3877a6b253..3b084b35cfb6ee4794222ba7bc1a1a884b33e5a2 100644 (file)
@@ -67,16 +67,20 @@ namespace bbstd
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   BBTK_CATEGORY("adaptor");
   BBTK_DESCRIPTION("MagicBox");
-     AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor
-                    ("In","Input data",
-                     new bbtk::UserBlackBoxTGetFunctor<MagicBox,bbtk::Data,bbtk::Data>
-                     (&MagicBox::bbGetInputIn),
-                     new MagicBoxSetFunctor (&MagicBox::bbSetInputIn) ) );
-     AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor
-                     ("Out","Output data",
-                      new bbtk::UserBlackBoxTGetFunctor<MagicBox,bbtk::Data,bbtk::Data>
-                      (&MagicBox::bbGetOutputOut),
-                      new MagicBoxSetFunctor (&MagicBox::bbSetOutputOut) ) );
+  AddInputDescriptor
+  (new bbtk::UserBlackBoxInputDescriptor
+   (typeid(MagicBoxDescriptor),
+    "In","Input data",
+    new bbtk::UserBlackBoxTGetFunctor<MagicBox,bbtk::Data,bbtk::Data>
+    (&MagicBox::bbGetInputIn),
+    new MagicBoxSetFunctor (&MagicBox::bbSetInputIn) ) );
+  AddOutputDescriptor
+  (new bbtk::UserBlackBoxOutputDescriptor
+   (typeid(MagicBoxDescriptor),
+    "Out","Output data",
+    new bbtk::UserBlackBoxTGetFunctor<MagicBox,bbtk::Data,bbtk::Data>
+    (&MagicBox::bbGetOutputOut),
+    new MagicBoxSetFunctor (&MagicBox::bbSetOutputOut) ) );
   BBTK_END_DESCRIBE_BLACK_BOX(MagicBox);
 }
 // namespace bbstd
index 098e1cf51fb7e73e6e674755fcfeb6b5cbf810b2..204999418092f313ef2227ed921f7080dc1ac50c 100644 (file)
Binary files a/packages/void-bbtk-package.tgz and b/packages/void-bbtk-package.tgz differ
index b0e7b0ad2a6f7d3bc14ff88bc33a09c6d6d0c0a1..28c72c2880b3cb3e3d2593f32fbadc3bbdffd23e 100644 (file)
@@ -4,5 +4,9 @@
 <p>
 Version <b>@BBTK_PACKAGE_MAJOR_VERSION@.@BBTK_PACKAGE_MINOR_VERSION@.@BBTK_PACKAGE_BUILD_VERSION@</b> - 
 by <b>@BBTK_PACKAGE_AUTHOR@</b>
+
 <p>
 @BBTK_PACKAGE_DESCRIPTION@
+
+<p>
+ <a href="../../doxygen/@BBTK_PACKAGE_NAME@/index.html">Doxygen documentation</a> of the source code
index c4875ac86133034d9e05309e51a44d7bebfbc243..bc0ab8a8ac3dcc73c9938bd7dd6926f1f1028e9a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxNotebook.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/06 07:30:09 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:24 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -80,7 +80,7 @@ namespace bbwx
   BBTK_NAME("Notebook");
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Notebook widget (wxNotebook)");
-  BBTK_CATEGORY("widget");
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_INPUT(Notebook,Widget1,"widget 1",wxWindow*);
   BBTK_INPUT(Notebook,Widget2,"widget 2",wxWindow*);
   BBTK_INPUT(Notebook,Widget3,"widget 3",wxWindow*);
index a2e756d8c516ce39b7b570ff11503fb003ac2680..efb9b0dbc4697f5c440f1750d0ca782fd181b634 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSizer.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/06 07:30:09 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/02/06 14:14:24 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -80,7 +80,7 @@ namespace bbwx
   BBTK_NAME("Sizer");
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Sizer widget (wxSizer)");
-  BBTK_CATEGORY("widget");
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   
   BBTK_INPUT(Sizer,Widget1,"widget 1",wxWindow*);
   BBTK_INPUT(Sizer,Widget2,"widget 2",wxWindow*);
index 3a17e3d3b168711c42ac452d19b2939475422480..b61f5b9d6a65796406a9d0a699b13f50d96dee55 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSlider.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 12:16:56 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/02/06 14:14:24 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -147,7 +147,7 @@ namespace bbwx
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(Slider,bbtk::WxBlackBox);
   BBTK_NAME("Slider");
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
-  BBTK_CATEGORY("widget");
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_DESCRIPTION("Slider widget (wxSlider)");
   BBTK_INPUT(Slider,In,"Initial position of the slider (default 0)",int);
   BBTK_INPUT(Slider,Min,"Minimum value of the slider (default 0)",int);
index d40218282753621047c4493e4a7ca402e596d44d..56a87f898e02341823bdc443e26d847452d906e8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSplit.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/05 12:16:56 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/02/06 14:14:24 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -99,7 +99,7 @@ namespace bbwx
   BBTK_NAME("Split");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Widget which splits a window in two fixed size parts (wxSplitterWindow)");
-  BBTK_CATEGORY("widget");
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_INPUT(Split,Widget1,"Upper or left widget",wxWindow*);
   BBTK_INPUT(Split,Widget2,"Lower or right widget",wxWindow*);
   BBTK_INPUT(Split,Orientation,"Orientation (default 0), 0=Horizontal , 1=Vertical",int);