/*========================================================================= Program: bbtk Module: $RCSfile: bbwxLayoutSplit.h,v $ Language: C++ Date: $Date: 2008/06/19 09:46:46 $ 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 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. =========================================================================*//** */ /** * \file * \brief Widget which splits a window into two parts */ /** * \class bbwx::LayoutSplit * \brief Widget which splits a window into two parts */ #ifdef _USE_WXWIDGETS_ #ifndef __bbWxLayoutSplit_h__ #define __bbWxLayoutSplit_h__ #include "bbtkWxBlackBox.h" #include namespace bbwx { class LayoutSplit : public bbtk::WxBlackBox { BBTK_BLACK_BOX_INTERFACE(LayoutSplit,bbtk::WxBlackBox); BBTK_DECLARE_INPUT(Widget1,wxWindow*); BBTK_DECLARE_INPUT(Widget2,wxWindow*); BBTK_DECLARE_INPUT(Orientation,std::string); BBTK_DECLARE_INPUT(Proportion,int); BBTK_PROCESS(Process); BBTK_CREATE_WIDGET(CreateWidget); void Process(); void CreateWidget(); void bbUserOnShow(); protected: virtual void bbUserConstructor(); }; //================================================================= // BlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox); BBTK_NAME("LayoutSplit"); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Widget which splits a window in two fixed size parts (wxSplitterWindow)"); // Already inserted for any WxBlackBox BBTK_CATEGORY("widget"); 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_END_DESCRIBE_BLACK_BOX(LayoutSplit); //================================================================= } //namespace bbtk #endif //__bbtkWxLayoutSplit_h__ #endif //_USE_WXWIDGETS_