/*========================================================================= Program: bbtk Module: $RCSfile: bbwxSizer.h,v $ Language: C++ Date: $Date: 2008/02/04 16:42:10 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*//** * \brief Short description in one line * * Long description which * can span multiple lines */ /** * \file * \brief Pattern for the definition of a new type of Node (header) */ /** * \class bbtk::NodePatern * \brief Pattern for the definition of a new type of Node */ #ifdef _USE_WXWIDGETS_ #ifndef __bbWxSizer_h__ #define __bbWxSizer_h__ #include "bbtkWxBlackBox.h" namespace bbwx { class /*BBTK_EXPORT*/ Sizer : public bbtk::WxBlackBox { BBTK_USER_BLACK_BOX_INTERFACE(Sizer,bbtk::WxBlackBox); BBTK_DECLARE_INPUT(Widget1,wxWindow*); BBTK_DECLARE_INPUT(Widget2,wxWindow*); BBTK_DECLARE_INPUT(Widget3,wxWindow*); BBTK_DECLARE_INPUT(Widget4,wxWindow*); BBTK_DECLARE_INPUT(Widget5,wxWindow*); BBTK_DECLARE_INPUT(Widget6,wxWindow*); BBTK_DECLARE_INPUT(Widget7,wxWindow*); BBTK_DECLARE_INPUT(Widget8,wxWindow*); BBTK_DECLARE_INPUT(Widget9,wxWindow*); BBTK_DECLARE_INPUT(Widget10,wxWindow*); BBTK_DECLARE_INPUT(Orientation,int); BBTK_PROCESS(Process); BBTK_CREATE_WIDGET(CreateWidget); void Process(); void CreateWidget(); protected: virtual void bbUserConstructor(); void TryInsertWindow(wxWindow *parent, wxWindow *w,wxBoxSizer *sizer); }; //================================================================= // UserBlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(Sizer,bbtk::WxBlackBox); BBTK_NAME("Sizer"); BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Sizer widget (wxSizer)"); BBTK_INPUT(Sizer,Widget1,"widget 1",wxWindow*); BBTK_INPUT(Sizer,Widget2,"widget 2",wxWindow*); BBTK_INPUT(Sizer,Widget3,"widget 3",wxWindow*); BBTK_INPUT(Sizer,Widget4,"widget 4",wxWindow*); BBTK_INPUT(Sizer,Widget5,"widget 5",wxWindow*); BBTK_INPUT(Sizer,Widget6,"widget 6",wxWindow*); BBTK_INPUT(Sizer,Widget7,"widget 7",wxWindow*); BBTK_INPUT(Sizer,Widget8,"widget 8",wxWindow*); BBTK_INPUT(Sizer,Widget9,"widget 9",wxWindow*); BBTK_INPUT(Sizer,Widget10,"widget 10",wxWindow*); BBTK_INPUT(Sizer,Orientation,"Orientation (default 1), 0=Horizontal , 1=Vertical",int); BBTK_END_DESCRIBE_BLACK_BOX(Sizer); //================================================================= } //namespace bbtk #endif //__bbtkWxSizer_h__ #endif //_USE_WXWIDGETS_