/*========================================================================= Program: bbtk Module: $RCSfile: bbwxSplit.h,v $ Language: C++ Date: $Date: 2008/01/22 15:02:00 $ Version: $Revision: 1.1.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 __bbWxSplit_h__ #define __bbWxSplit_h__ #include "bbtkWxBlackBox.h" #include namespace bbwx { /* class Split; //-------------------------------------------------------------------------- class SplitWidget : public bbtk::WxBlackBoxWidgetPanel { public: SplitWidget(Split* bbtksplit, wxWindow *parent, int orientation); ~SplitWidget(); void SetChilds(wxWindow* child1, wxWindow* child2, int proportion); wxSplitterWindow *GetWxSplitterWindow(); // void SetProportion(int prop); private: int mOrientation; wxSplitterWindow *mwxSplitterWindow; }; //------------------------------------------------------------------------ //------------------------------------------------------------------------ //------------------------------------------------------------------------ */ class Split : public bbtk::WxBlackBox { BBTK_USER_BLACK_BOX_INTERFACE(Split,bbtk::WxBlackBox); BBTK_DECLARE_INPUT(Widget1,wxWindow*); BBTK_DECLARE_INPUT(Widget2,wxWindow*); BBTK_DECLARE_INPUT(Orientation,int); BBTK_DECLARE_INPUT(Proportion,int); BBTK_PROCESS(Process); // BBTK_CREATE_WIDGET(CreateWidget); void Process(); // void CreateWidget(); protected: virtual void bbUserConstructor(); }; //================================================================= // UserBlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(Split,bbtk::WxBlackBox); 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_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); BBTK_INPUT(Split,Proportion,"Proportion (in percent) of the first children in the window",int); BBTK_END_DESCRIBE_BLACK_BOX(Split); //================================================================= } //namespace bbtk #endif //__bbtkWxSplit_h__ #endif //_USE_WXWIDGETS_