X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxSplit.h;h=4edb28ea3cb1ebbd8f9ffa600243ce9a17df859b;hb=96db9f54201e57452138331ab75de5cd0618d3f8;hp=ded5330b5a82f3b4255e2835c74c5ff943c3136b;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/packages/wx/src/bbwxSplit.h b/packages/wx/src/bbwxSplit.h index ded5330..4edb28e 100644 --- a/packages/wx/src/bbwxSplit.h +++ b/packages/wx/src/bbwxSplit.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbwxSplit.h,v $ Language: C++ - Date: $Date: 2008/01/22 15:02:00 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/02/08 14:58:31 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,18 +15,14 @@ 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) + * \brief Widget which splits a window into two parts */ /** - * \class bbtk::NodePatern - * \brief Pattern for the definition of a new type of Node + * \class bbwx::Split + * \brief Widget which splits a window into two parts */ @@ -45,36 +41,6 @@ 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 @@ -83,13 +49,13 @@ namespace bbwx 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(Orientation,std::string); BBTK_DECLARE_INPUT(Proportion,int); BBTK_PROCESS(Process); - // BBTK_CREATE_WIDGET(CreateWidget); + BBTK_CREATE_WIDGET(CreateWidget); void Process(); - // void CreateWidget(); + void CreateWidget(); protected: virtual void bbUserConstructor(); @@ -98,14 +64,15 @@ namespace bbwx //================================================================= -// UserBlackBox description +// BlackBox 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)"); + // Already inserted for any WxBlackBox BBTK_CATEGORY("widget"); 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,Orientation,"Orientation (default H), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string); BBTK_INPUT(Split,Proportion,"Proportion (in percent) of the first children in the window",int); BBTK_END_DESCRIBE_BLACK_BOX(Split); //=================================================================