00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00044 #ifdef USE_WXWIDGETS
00045
00046
00047 #ifndef __bbWxLayoutSplit_h__
00048 #define __bbWxLayoutSplit_h__
00049
00050 #include "bbtkWxBlackBox.h"
00051 #include <wx/splitter.h>
00052
00053 #include "bbwx_EXPORT.h"
00054
00055 namespace bbwx
00056 {
00057
00058
00059
00060
00061
00062 class bbwx_EXPORT LayoutSplit : public bbtk::WxBlackBox
00063 {
00064
00065 BBTK_BLACK_BOX_INTERFACE(LayoutSplit,bbtk::WxBlackBox);
00066 BBTK_DECLARE_INPUT(Widget1,wxWindow*);
00067 BBTK_DECLARE_INPUT(Widget2,wxWindow*);
00068 BBTK_DECLARE_INPUT(Orientation,std::string);
00069 BBTK_DECLARE_INPUT(Proportion,int);
00070 BBTK_PROCESS(Process);
00071 BBTK_CREATE_WIDGET(CreateWidget);
00072 BBTK_ON_SHOW_WIDGET(OnShowWidget);
00073
00074 void Process();
00075 void CreateWidget(wxWindow*);
00076 void OnShowWidget();
00077
00078 protected:
00079 virtual void bbUserConstructor();
00080
00081 };
00082
00083
00084
00085
00086
00087 BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox);
00088 BBTK_NAME("LayoutSplit");
00089 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
00090 BBTK_DESCRIPTION("Widget which splits a window in two fixed size parts (wxSplitterWindow)");
00091
00092 BBTK_INPUT(LayoutSplit,Widget1,"Upper or left widget",wxWindow*,"");
00093 BBTK_INPUT(LayoutSplit,Widget2,"Lower or right widget",wxWindow*,"");
00094 BBTK_INPUT(LayoutSplit,Orientation,"Orientation (default H), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string,"");
00095 BBTK_INPUT(LayoutSplit,Proportion,"Proportion (in percent) of the first children in the window",int,"");
00096 BBTK_END_DESCRIBE_BLACK_BOX(LayoutSplit);
00097
00098 }
00099
00100
00101 #endif //__bbtkWxLayoutSplit_h__
00102
00103 #endif //USE_WXWIDGETS