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);
//=================================================================
- // 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");
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
{
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
{
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
{
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
{
#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
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>);
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
{
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
{
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
{
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
{
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);
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);
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);
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>);
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 :
{
//=================================================================
- 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)");
//=================================================================
}//namespace bbtk
-#endif // __bbtkWxColourSelector_h__
-#endif //_USE_WXWIDGETS_
+#endif // __bbtkWxColourSelector_h__
+#endif //USE_WXWIDGETS
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,
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
* \class bbwx::ColourSelectorButton
* \brief
- * \class bbwx::wxColourPickerCtrlWidget
- * \brief
+
*/
#ifdef _USE_WXWIDGETS_
// 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);
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");
}//namespace bbtk
#endif // __bbtkWxColourSelector_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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 )
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
-
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CommandButton);
BBTK_BLACK_BOX_IMPLEMENTATION(CommandButton,bbtk::WxBlackBox);
void CommandButton::bbUserConstructor()
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);
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,"");
// 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
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
{
//=================================================================
- 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);
//namespace bbtk
#endif //__bbtkWxDirectorySelector_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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
//=================================================================
- 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);
//namespace bbtk
#endif //__bbtkWxFileSelector_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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,
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
-
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,InputText);
BBTK_BLACK_BOX_IMPLEMENTATION(InputText,bbtk::WxBlackBox);
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);
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");
//namespace bbtk
#endif //__bbWxInputText_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
*/
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
#ifndef __bbWxLayoutLine_h__
-
+ //===========================================================
class bbwx_EXPORT LayoutLine : public bbtk::WxBlackBox
{
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*,"");
BBTK_END_DESCRIBE_BLACK_BOX(LayoutLine);
//=================================================================
-
-
+
+
}
//namespace bbtk
#endif //__bbtkWxLayoutLine_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
*/
-#ifdef _USE_WXWIDGETS_
+#ifdef USE_WXWIDGETS
#ifndef __bbWxLayoutSplit_h__
#include "bbtkWxBlackBox.h"
#include <wx/splitter.h>
-
+#include "bbwx_EXPORT.h"
namespace bbwx
{
- class LayoutSplit : public bbtk::WxBlackBox
+ //=================================================================
+ class bbwx_EXPORT LayoutSplit : public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(LayoutSplit,bbtk::WxBlackBox);
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");
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);
//=================================================================
}
//namespace bbtk
#endif //__bbtkWxLayoutSplit_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include "bbtkWxBlackBox.h"
#include <wx/notebook.h>
+#include "bbwx_EXPORT.h"
namespace bbwx
{
- class /*BBTK_EXPORT*/ LayoutTab : public bbtk::WxBlackBox
+ class bbwx_EXPORT LayoutTab : public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(LayoutTab,bbtk::WxBlackBox);
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,
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
-
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,RadioButton);
BBTK_BLACK_BOX_IMPLEMENTATION(RadioButton,bbtk::WxBlackBox);
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 $
=========================================================================*/
/* ---------------------------------------------------------------------
#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 :
{
-
-
- 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);