1 /*=========================================================================
4 Module: $RCSfile: bbwxSplit.h,v $
6 Date: $Date: 2008/01/22 15:02:00 $
7 Version: $Revision: 1.1.1.1 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*//**
18 * \brief Short description in one line
20 * Long description which
21 * can span multiple lines
25 * \brief Pattern for the definition of a new type of Node (header)
28 * \class bbtk::NodePatern
29 * \brief Pattern for the definition of a new type of Node
33 #ifdef _USE_WXWIDGETS_
36 #ifndef __bbWxSplit_h__
37 #define __bbWxSplit_h__
39 #include "bbtkWxBlackBox.h"
40 #include <wx/splitter.h>
52 //--------------------------------------------------------------------------
53 class SplitWidget : public bbtk::WxBlackBoxWidgetPanel
57 SplitWidget(Split* bbtksplit, wxWindow *parent, int orientation);
60 void SetChilds(wxWindow* child1,
64 wxSplitterWindow *GetWxSplitterWindow();
65 // void SetProportion(int prop);
69 wxSplitterWindow *mwxSplitterWindow;
72 //------------------------------------------------------------------------
73 //------------------------------------------------------------------------
74 //------------------------------------------------------------------------
80 class Split : public bbtk::WxBlackBox
83 BBTK_USER_BLACK_BOX_INTERFACE(Split,bbtk::WxBlackBox);
84 BBTK_DECLARE_INPUT(Widget1,wxWindow*);
85 BBTK_DECLARE_INPUT(Widget2,wxWindow*);
86 BBTK_DECLARE_INPUT(Orientation,int);
87 BBTK_DECLARE_INPUT(Proportion,int);
88 BBTK_PROCESS(Process);
89 // BBTK_CREATE_WIDGET(CreateWidget);
92 // void CreateWidget();
95 virtual void bbUserConstructor();
100 //=================================================================
101 // UserBlackBox description
102 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Split,bbtk::WxBlackBox);
104 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
105 BBTK_DESCRIPTION("Widget which splits a window in two fixed size parts (wxSplitterWindow)");
106 BBTK_INPUT(Split,Widget1,"Upper or left widget",wxWindow*);
107 BBTK_INPUT(Split,Widget2,"Lower or right widget",wxWindow*);
108 BBTK_INPUT(Split,Orientation,"Orientation (default 0), 0=Horizontal , 1=Vertical",int);
109 BBTK_INPUT(Split,Proportion,"Proportion (in percent) of the first children in the window",int);
110 BBTK_END_DESCRIBE_BLACK_BOX(Split);
111 //=================================================================
115 #endif //__bbtkWxSplit_h__
117 #endif //_USE_WXWIDGETS_