]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Fri, 12 Dec 2008 08:55:20 +0000 (08:55 +0000)
committerguigues <guigues>
Fri, 12 Dec 2008 08:55:20 +0000 (08:55 +0000)
29 files changed:
packages/std/src/bbstdCast.h
packages/std/src/bbstdConcatStrings.h
packages/std/src/bbstdConfiguration.h
packages/std/src/bbstdExecBbiCommand.h
packages/std/src/bbstdExecSystemCommand.h
packages/std/src/bbstdFilesFromDirectory.h
packages/std/src/bbstdGetVectorElement.h
packages/std/src/bbstdMagicBox.h
packages/std/src/bbstdMakeFileName.h
packages/std/src/bbstdRelay.h
packages/std/src/bbstdStringSelect.h
packages/std/src/bbstdStringTo.h
packages/std/src/bbstdStringToVector.h
packages/std/src/bbstdToString.h
packages/std/src/bbstdVectorToString.h
packages/wx/src/bbwxColourSelector.h
packages/wx/src/bbwxColourSelectorButton.cxx
packages/wx/src/bbwxColourSelectorButton.h
packages/wx/src/bbwxCommandButton.cxx
packages/wx/src/bbwxCommandButton.h
packages/wx/src/bbwxDirectorySelector.h
packages/wx/src/bbwxFileSelector.h
packages/wx/src/bbwxInputText.cxx
packages/wx/src/bbwxInputText.h
packages/wx/src/bbwxLayoutLine.h
packages/wx/src/bbwxLayoutSplit.h
packages/wx/src/bbwxLayoutTab.h
packages/wx/src/bbwxRadioButton.cxx
packages/wx/src/bbwxRadioButton.h

index 6f81b3a76f386415bd0ac352a7ee12afa0942ba1..73731a930189296ff445064e6f82b3825846212d 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdCast.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:20 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdCast_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd 
 {
   
   //=================================================================
-  // UserBlackBox declaration
+  // BlackBox declaration
   template <class T, class U>
-  class Cast : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT Cast : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE2_BLACK_BOX_INTERFACE(Cast,bbtk::AtomicBlackBox,T,U);
     BBTK_DECLARE_INPUT(In,T);
@@ -62,7 +63,7 @@ namespace bbstd
   
   
   //=================================================================
-  // UserBlackBox description
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_TEMPLATE2_BLACK_BOX(Cast,bbtk::AtomicBlackBox);
   BBTK_NAME("Cast"+bbtk::HumanTypeName<T1>()+"To"+bbtk::HumanTypeName<T2>());
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
index 6b6d46c9b8400d4dd4eb6804779c771600737235..715154cd1dcf7e919445f878b8ee9261c52ce850 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdConcatStrings.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdConcatStrings_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
-  class ConcatStrings
+  class bbstd_EXPORT ConcatStrings
     : 
     public bbtk::AtomicBlackBox
   {
index 2482997cd466d419eb7c80b99415b5e420b69a81..0c76ab31d6c9f780992f04e2c792efe44bda9750 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdConfiguration.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdConfiguration_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
-  class Configuration
+  class bbstd_EXPORT Configuration
     : 
     public bbtk::AtomicBlackBox
   {
index c4fa1bf5471621c1abbfc0b181bd721f56fe9a6c..7a85a7de5bcc597c34040781542263894978fed1 100755 (executable)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdExecBbiCommand.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdExecBbiCommand_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
 
-  class ExecBbiCommand
+  class bbstd_EXPORT ExecBbiCommand
     : 
   public bbtk::AtomicBlackBox
   {
index 2b4ed1f731461df472776308274204083837c309..6633fafdb84fa78c45b3adb386edf41a2ba6eb97 100755 (executable)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdExecSystemCommand.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdExecSystemCommand_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
 
-  class ExecSystemCommand
+  class bbstd_EXPORT ExecSystemCommand
     : 
   public bbtk::AtomicBlackBox
   {
index 10ec9b226b5859ddfc23a3ce35da3f931db7ba54..125909ba62a6373c58adf652d3ddde351af42092 100644 (file)
@@ -2,51 +2,53 @@
 #define __bbstdFilesFromDirectory_h_INCLUDED__
 #include "bbtkAtomicBlackBox.h"
 #include "iostream"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
 
-class /*BBTK_EXPORT*/ FilesFromDirectory
- : 
-   public bbtk::AtomicBlackBox
-{
-  BBTK_BLACK_BOX_INTERFACE(FilesFromDirectory,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
-  BBTK_DECLARE_INPUT(In,std::string);
-  BBTK_DECLARE_INPUT(Recursive,bool);  
-  BBTK_DECLARE_OUTPUT(Out,std::vector<std::string>);
-  BBTK_PROCESS(Process);
-  void Process();
-  
+  class bbstd_EXPORT FilesFromDirectory
   
+    public bbtk::AtomicBlackBox
+  {
+    BBTK_BLACK_BOX_INTERFACE(FilesFromDirectory,bbtk::AtomicBlackBox);
+    //==================================================================
+    /// User callback called in the box contructor
+    virtual void bbUserConstructor();
+    /// User callback called in the box copy constructor
+    virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
+    /// User callback called in the box destructor
+    virtual void bbUserDestructor();
+    //==================================================================
+    BBTK_DECLARE_INPUT(In,std::string);
+    BBTK_DECLARE_INPUT(Recursive,bool);  
+    BBTK_DECLARE_OUTPUT(Out,std::vector<std::string>);
+    BBTK_PROCESS(Process);
+    void Process();
+    
   private :
-  std::string NormalizePath(std::string const &pathname);
-  int Explore(std::string const &dirpath, bool recursive);
+    std::string NormalizePath(std::string const &pathname);
+    int Explore(std::string const &dirpath, bool recursive);
+    
+    /// List of file names
+    std::vector<std::string> Filenames;
+    /// name of the root directory to explore
+    std::string DirName;
+  };
   
-  /// List of file names
-  std::vector<std::string> Filenames;
-  /// name of the root directory to explore
-  std::string DirName;
-};
-
-//=================================================================
-// UserBlackBox description
-BBTK_BEGIN_DESCRIBE_BLACK_BOX(FilesFromDirectory,bbtk::AtomicBlackBox);
-BBTK_NAME("FilesFromDirectory");
-BBTK_AUTHOR("jpr@creatis.univ-lyon1.fr");
-BBTK_DESCRIPTION("returns the fullPathNames of the files in a Directory");
-BBTK_CATEGORY("");
-BBTK_INPUT(FilesFromDirectory,In,"Directory Name",std::string,"");
-BBTK_INPUT(FilesFromDirectory,Recursive,"Recursive directory exploration",bool,"");
+  //=================================================================
+  // BlackBox description
+  BBTK_BEGIN_DESCRIBE_BLACK_BOX(FilesFromDirectory,bbtk::AtomicBlackBox);
+  BBTK_NAME("FilesFromDirectory");
+  BBTK_AUTHOR("jpr@creatis.univ-lyon1.fr");
+  BBTK_DESCRIPTION("returns the fullPathNames of the files in a Directory");
+  BBTK_CATEGORY("");
+  BBTK_INPUT(FilesFromDirectory,In,"Directory Name",std::string,"");
+  BBTK_INPUT(FilesFromDirectory,Recursive,"Recursive directory exploration",bool,"");
+  
+  BBTK_OUTPUT(FilesFromDirectory,Out,"FullPathNames of the files",std::vector<std::string>,"");
+  BBTK_END_DESCRIBE_BLACK_BOX(FilesFromDirectory);
 
-BBTK_OUTPUT(FilesFromDirectory,Out,"FullPathNames of the files",std::vector<std::string>,"");
-BBTK_END_DESCRIBE_BLACK_BOX(FilesFromDirectory);
 }
 // EO namespace bbstd
 
index 7b58724705464a909a54caee8ef21334d6778e8e..d49110e97408d25befb1a4a5b7cd5970578aba43 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdGetVectorElement.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.4 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdGetVectorElement_INCLUDED_h__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //=================================================================
   // BlackBox declaration
   template <class T>
-  class GetVectorElement : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT GetVectorElement : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE_BLACK_BOX_INTERFACE(GetVectorElement,bbtk::AtomicBlackBox,T);
     BBTK_DECLARE_INPUT(In,std::vector<T>);
index ca4f2cc27b8a29157224266ba654638667b4ff73..ffd86dea3ae581cc7c9862dda5430398f4e754b4 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdMagicBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdMagicBox_h_INCLUDED_H__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //==================================================================
-  class MagicBox
+  class bbstd_EXPORT MagicBox
     : 
     public bbtk::AtomicBlackBox
   {
index 657e7c3539b8ade8bc7592702c8408b39e29b12b..d2591376c096188d3d872fc0c781dd7436693289 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdMakeFileName.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdMakeFileName_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
-  class MakeFileName
+  class bbstd_EXPORT MakeFileName
     :
   public bbtk::AtomicBlackBox
   {
index 676da805fe1fead274b0818bdb6b28451fde4fd2..a2a3ce9a6503298ad8c2d417c52b9ac576f93161 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdRelay.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdRelay_h_INCLUDED_H__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //=======================================================================
   template <class T>
-  class Relay
+  class bbstd_EXPORT Relay
     :
   public bbtk::AtomicBlackBox
   {
index bdb9e455384697fff1f6d4e8040715d9619d8fb9..2e3ab738a7fdf56c63c29863fea497dbca09ebc8 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdStringSelect.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdStringSelect_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //=======================================================================
-  class /*BBTK_EXPORT*/ StringSelect
+  class bbstd_EXPORT StringSelect
     : 
     public bbtk::AtomicBlackBox
   {
index 35bc90929d656d86056f3cfb56985cb5b5eab331..1e6893890844625a61e067c6b2730ab25d2ffcb8 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdStringTo.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdStringTo_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd 
 { 
   //=================================================================
   // BlackBox declaration
   template <class T>
-  class StringTo : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT StringTo : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE_BLACK_BOX_INTERFACE(StringTo,bbtk::AtomicBlackBox,T);
     BBTK_DECLARE_INPUT(In,std::string);
index 5243d1a41bc18758eef47365df3dfb568a560aea..7b515d18fe2477ad8cdd52b1ef4c2c46e77896ae 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdStringToVector.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdStringToVector_INCLUDED_h__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //=================================================================
   // BlackBox declaration
   template <class T>
-  class StringToVector : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT StringToVector : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE_BLACK_BOX_INTERFACE(StringToVector,bbtk::AtomicBlackBox,T);
     BBTK_DECLARE_INPUT(In,std::string);
index 6f08fafb4d7d2edd776ba2f6a16a5f301c6fe80b..ab8c6a2877c48117a2a1d0a1fd5adf676184e693 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdToString.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdToString_h_INCLUDED__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd 
 {  
   //=================================================================
   // BlackBox declaration
   template <class T>
-  class ToString : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT ToString : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE_BLACK_BOX_INTERFACE(ToString,bbtk::AtomicBlackBox,T);
     BBTK_DECLARE_INPUT(In,T);
index 86b6d4ddf063a942a53c8ff5fdac605220eaa7b2..b75907def4a29a30cfa47055e57397ca00a08b28 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdVectorToString.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:27 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:21 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #define __bbstdVectorToString_INCLUDED_h__
 
 #include "bbtkAtomicBlackBox.h"
+#include "bbstd_EXPORT.h"
 
 namespace bbstd
 {
   //=================================================================
   // BlackBox declaration
   template <class T>
-  class VectorToString : public bbtk::AtomicBlackBox
+  class bbstd_EXPORT VectorToString : public bbtk::AtomicBlackBox
   {  
     BBTK_TEMPLATE_BLACK_BOX_INTERFACE(VectorToString,bbtk::AtomicBlackBox,T);
     BBTK_DECLARE_INPUT(In,std::vector<T>);
index 2b9b6f9a444489706271af2ac9a614d992d82b98..4c19eae369ee08d4b0b5108b765e088efb30c292 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelector.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #ifndef __bbWxColourSelector_h__
 #define __bbWxColourSelector_h__
 
-// Include wxBlackBox definition
-#include "bbtkWxBlackBox.h"
+// Include base BlackBox definition
+#include "bbtkAtomicBlackBox.h"
+// Include bbwx_EXPORT symbol definition
+#include "bbwx_EXPORT.h"
 
 // Namespace of the package "wx" is "bbwx" 
 // Namespace associated to packages should be of the form :
@@ -61,25 +63,20 @@ namespace bbwx
 {
 
   //=================================================================
-  class /*BBTK_EXPORT*/ ColourSelector : public bbtk::AtomicBlackBox
+  class bbwx_EXPORT ColourSelector : public bbtk::AtomicBlackBox
   {
     BBTK_BLACK_BOX_INTERFACE(ColourSelector,bbtk::AtomicBlackBox);
     BBTK_DECLARE_OUTPUT(Out,std::string);
     BBTK_PROCESS(Process);
-//    BBTK_CREATE_WIDGET(CreateWidget);
     void Process();
-//    void CreateWidget();
-
   protected:
     virtual void bbUserConstructor();
- // private:
- //   wxColourSelector* mColorDialog;
   };
-
+  
   //=================================================================
   // UserBlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColourSelector,bbtk::AtomicBlackBox);
-  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
+  BBTK_CATEGORY("widget");
   BBTK_NAME("ColourSelector");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Colour Selector dialog (bbfication of wxColourSelector)");
@@ -88,6 +85,6 @@ namespace bbwx
   //=================================================================
 
 }//namespace bbtk
-#endif  // __bbtkWxColourSelector_h__
 
-#endif //_USE_WXWIDGETS_
+#endif  // __bbtkWxColourSelector_h__
+#endif //USE_WXWIDGETS
index 60ff6fd18228e13868238394660d38d7efb68501..f61de883dbe95be403088ca616044c4ae026deda 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelectorButton.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 13:01:32 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #include "bbwxColourSelectorButton.h"
 #include "bbwxPackage.h"
 
+#include <wx/clrpicker.h>
 
 namespace bbwx
 {
+//-------------------------------------------------------------------------
+class wxColourPickerCtrlWidget :public wxPanel
+{
+
+public:
+   wxColourPickerCtrlWidget( ColourSelectorButton* box,
+                             wxWindow *parent,
+                             unsigned char  cr,
+                             unsigned char  cg,
+                             unsigned char  cb  );
+
+   ~wxColourPickerCtrlWidget();
+   void OnColorChange(wxColourPickerEvent& e);
+   void UpdateBox();
+private:
+   wxColourPickerCtrl *picker;
+   ColourSelectorButton *mBox;
+};
+//-------------------------------------------------------------------------
 
 //-------------------------------------------------------------------------
 wxColourPickerCtrlWidget::wxColourPickerCtrlWidget(    ColourSelectorButton* box,
index aef50a25df702588980f645ca9c26ac4db8e04de..3e6a81e449b4fd789a4595ae2565825d72f041c8 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelectorButton.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 11:17:25 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -41,8 +41,7 @@
  * \class bbwx::ColourSelectorButton
  * \brief 
 
- * \class bbwx::wxColourPickerCtrlWidget
- * \brief 
+
  */
 
 #ifdef _USE_WXWIDGETS_
@@ -55,8 +54,7 @@
 
 // Include wxBlackBox definition
 #include "bbtkWxBlackBox.h"
-
-#include <wx/clrpicker.h>
+#include "bbwx_EXPORT.h"
 
 // Namespace of the package "wx" is "bbwx" 
 // Namespace associated to packages should be of the form :
 namespace bbwx
 {
 
-  //=================================================================
-class ColourSelectorButton;
-
-class wxColourPickerCtrlWidget :public wxPanel
-{
 
-public:
-   wxColourPickerCtrlWidget( ColourSelectorButton* box,
-                             wxWindow *parent,
-                             unsigned char  cr,
-                             unsigned char  cg,
-                             unsigned char  cb  );
-
-   ~wxColourPickerCtrlWidget();
-   void OnColorChange(wxColourPickerEvent& e);
-   void UpdateBox();
-private:
-   wxColourPickerCtrl *picker;
-   ColourSelectorButton *mBox;
-};
-
-//------------------------------------------------------------------------
-// The black box
-  class /*BBTK_EXPORT*/ ColourSelectorButton : public bbtk::WxBlackBox
+  //------------------------------------------------------------------------
+  // The black box
+  class bbwx_EXPORT ColourSelectorButton : public bbtk::WxBlackBox
   {
     BBTK_BLACK_BOX_INTERFACE(ColourSelectorButton,bbtk::WxBlackBox);
     BBTK_DECLARE_INPUT(In,std::string);
@@ -96,17 +74,13 @@ private:
     BBTK_CREATE_WIDGET(CreateWidget);
     void Process();
     void CreateWidget(wxWindow*);
-
   protected:
     virtual void bbUserConstructor();
-    /*
-  private:
-     wxColourPickerCtrlWidget* pickerWidget;
-    */
   };
+  //=================================================================
 
   //=================================================================
-  // UserBlackBox description
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColourSelectorButton,bbtk::WxBlackBox);
   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_NAME("ColourSelectorButton");
@@ -120,4 +94,4 @@ private:
 }//namespace bbtk
 #endif  // __bbtkWxColourSelector_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index b56228f3d35c5f6209299166a72f6bd3f0b83b20..e216d9904ad0efc8ab52ac0ed2c306e1a82901ff 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxCommandButton.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 11:31:03 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.14 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 
 namespace bbwx
 {
-  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CommandButton);
-  
+
+
+   //--------------------------------------------------------------------------
+  class CommandButtonWidget : public wxPanel
+  {
+  public:
+    CommandButtonWidget(CommandButton* box, wxWindow *parent, 
+                       wxString title);
+    ~CommandButtonWidget();
+    void OnCommandButton( wxEvent& );
+    void SetLabel(wxString title);
+    void SetColour(wxColour color);
+       
+  private:
+    CommandButton* mBox;
+    wxButton   *mwxCommandButton;
+  }; 
+   
+  //--------------------------------------------------------------------------
+  //--------------------------------------------------------------------------
+
   CommandButtonWidget::CommandButtonWidget(CommandButton* box,
                                           wxWindow *parent, 
                                           wxString title )
@@ -166,7 +185,7 @@ namespace bbwx
   //--------------------------------------------------------------------------
   //-------------------------------------------------------------------------- 
 
-
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CommandButton);
   BBTK_BLACK_BOX_IMPLEMENTATION(CommandButton,bbtk::WxBlackBox);
 
   void CommandButton::bbUserConstructor() 
index 36a4f9c66b13ba89153c734dc6bf580deb9146c8..ccbb0e0757c213cb7751d26271faa1686bb385eb 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxCommandButton.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
  */ 
 /** 
  * \file  
- * \brief Pattern for the definition of a new type of Node (header) 
+ * \brief 
  */ 
 /** 
- * \class bbtk::NodePatern  
- * \brief Pattern for the definition of a new type of Node  
+ * \class CommandButton
+ * \brief 
  */ 
  
  
-#ifdef _USE_WXWIDGETS_ 
+#ifdef USE_WXWIDGETS
  
 #ifndef __bbwxCommandButton_h_INCLUDED_H__ 
 #define __bbwxCommandButton_h_INCLUDED_H__ 
  
  
 #include "bbtkWxBlackBox.h" 
+#include "bbwx_EXPORT.h"
  
  
 namespace bbwx 
 { 
-  class CommandButton;
   
   //--------------------------------------------------------------------------
-  class CommandButtonWidget : public wxPanel
-  {
-  public:
-    CommandButtonWidget(CommandButton* box, wxWindow *parent, 
-                       wxString title);
-    ~CommandButtonWidget();
-    void OnCommandButton( wxEvent& );
-    void SetLabel(wxString title);
-    void SetColour(wxColour color);
-       
-  private:
-    CommandButton* mBox;
-    wxButton   *mwxCommandButton;
-  }; 
-   
-  //--------------------------------------------------------------------------
-  //--------------------------------------------------------------------------
-  //--------------------------------------------------------------------------
-
-  class /*BBTK_EXPORT*/ CommandButton : public bbtk::WxBlackBox 
+  class bbwx_EXPORT CommandButton : public bbtk::WxBlackBox 
   {     
     friend class CommandButtonWidget;
     BBTK_BLACK_BOX_INTERFACE(CommandButton,bbtk::WxBlackBox); 
@@ -98,14 +78,14 @@ namespace bbwx
     void UpdateColour();
     void UpdateLabel();
   }; 
-    
+  
   //================================================================= 
   // UserBlackBox description 
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(CommandButton,bbtk::WxBlackBox); 
   BBTK_NAME("CommandButton"); 
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr"); 
   BBTK_DESCRIPTION("Button which executes bbi commands"); 
-
+  
   typedef std::vector<double> vectorcolour;
   
   BBTK_INPUT(CommandButton,In,"Commands to be executed separated by commas (;). Each single quote (') is replaced by a double quote (\").",std::string,"");   
@@ -114,10 +94,10 @@ namespace bbwx
   //   BBTK_OUTPUT(CommandButton,Out,"..Out..",int); 
   BBTK_END_DESCRIBE_BLACK_BOX(CommandButton); 
   //================================================================= 
+  
+  
 }//namespace  bbwx 
+
 #endif  // __bbwxCommandButton_h_INCLUDED_H__ 
-#endif //_USE_WXWIDGETS_ 
+
+#endif //USE_WXWIDGETS
index d95dda45780f0a6ad74181fc115a40df492026c2..362a75b996927188bf788d94754f09284ebdbd86 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxDirectorySelector.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
  * can span multiple lines
  */
 /**
- * \file 
- * \brief Pattern for the definition of a new type of Node (header)
+ * \file bbwxDirectorySelector.h
+ * \brief 
  */
 /**
- * \class bbtk::NodePatern 
- * \brief Pattern for the definition of a new type of Node 
+ * \class DirectorySelector
+ * \brief 
  */
 
 
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
 
 
 #ifndef __bbWxDirectorySelector_h__
 #define __bbWxDirectorySelector_h__
 
 #include "bbtkAtomicBlackBox.h"
-
-
+#include "bbwx_EXPORT.h"
 
 namespace bbwx
 {
@@ -62,7 +61,7 @@ namespace bbwx
   
 
   //=================================================================
-  class /*BBTK_EXPORT*/ DirectorySelector : public bbtk::AtomicBlackBox
+  class bbwx_EXPORT DirectorySelector : public bbtk::AtomicBlackBox
   {
     BBTK_BLACK_BOX_INTERFACE(DirectorySelector,bbtk::AtomicBlackBox);
     BBTK_DECLARE_INPUT(Title,std::string);
@@ -101,4 +100,4 @@ namespace bbwx
 //namespace bbtk
 #endif  //__bbtkWxDirectorySelector_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index 45fd951b12135f6516d71a23d79436cb0750ada4..32faca1c67098524b1e607d7a1e930ef2d872411 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxFileSelector.h,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
  */
 
 
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
 
 
 #ifndef __bbWxFileSelector_h__
 #define __bbWxFileSelector_h__
 
 #include "bbtkAtomicBlackBox.h"
-
+#include "bbwx_EXPORT.h"
 
 
 namespace bbwx
@@ -62,7 +62,7 @@ namespace bbwx
   
 
   //=================================================================
-  class /*BBTK_EXPORT*/ FileSelector : public bbtk::AtomicBlackBox
+  class bbwx_EXPORT FileSelector : public bbtk::AtomicBlackBox
   {
     BBTK_BLACK_BOX_INTERFACE(FileSelector,bbtk::AtomicBlackBox);
     BBTK_DECLARE_INPUT(Title,std::string);
@@ -109,4 +109,4 @@ namespace bbwx
 //namespace bbtk
 #endif  //__bbtkWxFileSelector_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index 49559feb696beccec36381a417df4a794c4916f1..cc7c72497c22e811b53bdbb7e99471aa0c182bac 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxInputText.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.5 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 
 namespace bbwx
 {
-  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,InputText);
+
+
+
+
+  
+  //--------------------------------------------------------------------------
+  class InputTextWidget : wxPanel
+  {
+  public:
+    InputTextWidget(InputText* box, wxWindow *parent,
+                   wxString In, wxString title);
+    ~InputTextWidget();
+
+    std::string GetValue();
+    void OnTextUpdate(wxCommandEvent& event);
+
+    void SetTitle(wxString);
+
+  private:
+    InputText    *mBox;
+    wxTextCtrl  *mwxTextCtrl;
+    wxStaticText *mwxTitle;
+  };
+  
+  //------------------------------------------------------------------------
+  //------------------------------------------------------------------------
+  //------------------------------------------------------------------------
+
+  
   
   
   InputTextWidget::InputTextWidget(InputText* box,
@@ -118,7 +146,7 @@ namespace bbwx
   //--------------------------------------------------------------------------
   //--------------------------------------------------------------------------
 
-
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,InputText);
   BBTK_BLACK_BOX_IMPLEMENTATION(InputText,bbtk::WxBlackBox);
 
 
index 05a330ab801f57df6f1a58692ad447dcfdcd9a9e..e6d5b4307f8400d1b8d684802855e1b38a546648 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxInputText.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 
 #include "bbtkWxBlackBox.h"
 
-
+#include "bbwx_EXPORT.h"
 
 namespace bbwx
 {
   
   
-  
-  
-  class InputText;
-  
-  //--------------------------------------------------------------------------
-  class InputTextWidget : wxPanel
-  {
-  public:
-    InputTextWidget(InputText* box, wxWindow *parent,
-                   wxString In, wxString title);
-    ~InputTextWidget();
-
-    std::string GetValue();
-    void OnTextUpdate(wxCommandEvent& event);
-
-    void SetTitle(wxString);
-
-  private:
-    InputText    *mBox;
-    wxTextCtrl  *mwxTextCtrl;
-    wxStaticText *mwxTitle;
-  };
-  
-  //------------------------------------------------------------------------
-  //------------------------------------------------------------------------
-  //------------------------------------------------------------------------
-
-  
-  
-  
-  
-  class /*BBTK_EXPORT*/ InputText : public bbtk::WxBlackBox
+  //=================================================================
+  class bbwx_EXPORT InputText : public bbtk::WxBlackBox
   {
     
     BBTK_BLACK_BOX_INTERFACE(InputText,bbtk::WxBlackBox);
@@ -105,10 +75,11 @@ namespace bbwx
   protected:
     virtual void bbUserConstructor();
   };
+  //=================================================================
   
  
   //=================================================================
-  // UserBlackBox description
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(InputText,bbtk::WxBlackBox);
   BBTK_NAME("InputText");
   BBTK_AUTHOR("laurent guigues at creatis.insa-lyon.fr");
@@ -131,4 +102,4 @@ namespace bbwx
 //namespace bbtk
 #endif  //__bbWxInputText_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index 461530f9f8ae3985ee0838c9a256324b0c777ad6..39ff23646a1bdef25890f28f702bafbda79a6624 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutLine.h,v $
   Language:  C++
-  Date:      $Date: 2008/12/11 15:30:14 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -45,7 +45,7 @@
  */
 
 
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
 
 
 #ifndef __bbWxLayoutLine_h__
@@ -60,7 +60,7 @@ namespace bbwx
   
 
   
-  
+  //===========================================================
   class bbwx_EXPORT LayoutLine : public bbtk::WxBlackBox
   {
     
@@ -88,16 +88,16 @@ namespace bbwx
        void TryInsertWindow(wxWindow *parent, wxWindow *w,wxBoxSizer *sizer);
 
   };
+  //===========================================================
   
  
-//=================================================================
-// BlackBox description
+  //=================================================================
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutLine,bbtk::WxBlackBox);
   BBTK_NAME("LayoutLine");
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("LayoutLine widget (wxBoxSizer)");
-  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
-  
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");  
   BBTK_INPUT(LayoutLine,Widget1,"widget 1",wxWindow*,"");
   BBTK_INPUT(LayoutLine,Widget2,"widget 2",wxWindow*,"");
   BBTK_INPUT(LayoutLine,Widget3,"widget 3",wxWindow*,"");
@@ -111,8 +111,8 @@ namespace bbwx
   BBTK_END_DESCRIBE_BLACK_BOX(LayoutLine);
   //=================================================================
   
-
-
+  
+  
 }
 
 
@@ -120,4 +120,4 @@ namespace bbwx
 //namespace bbtk
 #endif  //__bbtkWxLayoutLine_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index 2b549b58605802f3497c8e6b92db8020faa700fd..01827547ab0bdb547fa84fc5ec8f63e1aed06730 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutSplit.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:24 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -41,7 +41,7 @@
  */
 
 
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
 
 
 #ifndef __bbWxLayoutSplit_h__
@@ -50,7 +50,7 @@
 #include "bbtkWxBlackBox.h"
 #include <wx/splitter.h>
 
-
+#include "bbwx_EXPORT.h"
 
 namespace bbwx
 {
@@ -58,7 +58,8 @@ namespace bbwx
   
   
   
-  class LayoutSplit : public bbtk::WxBlackBox
+  //=================================================================
+  class bbwx_EXPORT LayoutSplit : public bbtk::WxBlackBox
   {
     
     BBTK_BLACK_BOX_INTERFACE(LayoutSplit,bbtk::WxBlackBox);
@@ -78,10 +79,11 @@ namespace bbwx
     virtual void bbUserConstructor();
 
   };
+  //=================================================================
   
  
-//=================================================================
-// BlackBox description
+  //=================================================================
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox);
   BBTK_NAME("LayoutSplit");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
@@ -90,7 +92,7 @@ namespace bbwx
   BBTK_INPUT(LayoutSplit,Widget1,"Upper or left widget",wxWindow*,"");
   BBTK_INPUT(LayoutSplit,Widget2,"Lower or right widget",wxWindow*,"");
   BBTK_INPUT(LayoutSplit,Orientation,"Orientation (default H), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string,"");
-   BBTK_INPUT(LayoutSplit,Proportion,"Proportion (in percent) of the first children in the window",int,"");
+  BBTK_INPUT(LayoutSplit,Proportion,"Proportion (in percent) of the first children in the window",int,"");
   BBTK_END_DESCRIBE_BLACK_BOX(LayoutSplit);
   //=================================================================
 }
@@ -98,4 +100,4 @@ namespace bbwx
 //namespace bbtk
 #endif  //__bbtkWxLayoutSplit_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
index ee306d782fa12d7429f691511024366f605d422a..f0e2c480ddc03e471a06c4916875f038bb8b828d 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutTab.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 13:18:33 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/12/12 08:55:24 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -54,6 +54,7 @@
 #include "bbtkWxBlackBox.h"
 #include <wx/notebook.h>
 
+#include "bbwx_EXPORT.h"
 
 namespace bbwx
 {
@@ -61,7 +62,7 @@ namespace bbwx
 
   
   
-  class /*BBTK_EXPORT*/ LayoutTab : public bbtk::WxBlackBox
+  class bbwx_EXPORT LayoutTab : public bbtk::WxBlackBox
   {
     
     BBTK_BLACK_BOX_INTERFACE(LayoutTab,bbtk::WxBlackBox);
index 69755095d1c1899394122c7afaf0ee66c6733741..203fd9e879e7172fe9b02c7ccec197bb8e3dc3a7 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxRadioButton.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/12/12 08:55:24 $
+  Version:   $Revision: 1.8 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 
 namespace bbwx
 {
-  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,RadioButton);
+    
+  
+  //--------------------------------------------------------------------------
+  // The widget created by the box 
+  class RadioButtonWidget : public wxPanel
+  {
+  public:
+    RadioButtonWidget( RadioButton* box, wxWindow *parent, 
+                      int In, 
+                      wxString title, 
+                      std::vector<wxString> lstIn );
+
+    ~RadioButtonWidget();
+
+    int GetValue();
+    void OnRadioButton(wxEvent& event);
+
+  private:
+    RadioButton      *mBox;
+    int                     MAX_RADIOBUTTON;
+    wxRadioButton    *mwxRadioButton[10];
+  };
   
+  //------------------------------------------------------------------------
+  //------------------------------------------------------------------------
+  //------------------------------------------------------------------------
+
   //-------------------------------------------------------------------------
   RadioButtonWidget::RadioButtonWidget( RadioButton* box,
                wxWindow *parent,
@@ -151,7 +176,7 @@ namespace bbwx
   //--------------------------------------------------------------------------
   //--------------------------------------------------------------------------
 
-
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,RadioButton);
   BBTK_BLACK_BOX_IMPLEMENTATION(RadioButton,bbtk::WxBlackBox);
 
 
index 79bcb637c391ade01b874ceb813e6eb708366a3d..adeed849eca75dcf5a0d31f85e0f8443c347dfaf 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxRadioButton.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/12/12 08:55:24 $
+  Version:   $Revision: 1.7 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -54,6 +54,8 @@
 #define __bbWxRadioButton_h__
 
 #include "bbtkWxBlackBox.h"
+#include "bbwx_EXPORT.h"
+
 
 // Namespace of the package "wx" is "bbwx" 
 // Namespace associated to packages should be of the form :
@@ -62,36 +64,7 @@ namespace bbwx
 {
   
   
-  
-  
-  class RadioButton;
-  
-  //--------------------------------------------------------------------------
-  // The widget created by the box 
-  class RadioButtonWidget : public wxPanel
-  {
-  public:
-    RadioButtonWidget( RadioButton* box, wxWindow *parent, 
-                      int In, 
-                      wxString title, 
-                      std::vector<wxString> lstIn );
-
-    ~RadioButtonWidget();
-
-    int GetValue();
-    void OnRadioButton(wxEvent& event);
-
-  private:
-    RadioButton      *mBox;
-    int                     MAX_RADIOBUTTON;
-    wxRadioButton    *mwxRadioButton[10];
-  };
-  
-  //------------------------------------------------------------------------
-  //------------------------------------------------------------------------
-  //------------------------------------------------------------------------
-
-  class /*BBTK_EXPORT*/ RadioButton : public bbtk::WxBlackBox
+  class bbwx_EXPORT RadioButton : public bbtk::WxBlackBox
   {
 
     BBTK_BLACK_BOX_INTERFACE(RadioButton,bbtk::WxBlackBox);