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
00048 #ifdef USE_WXWIDGETS
00049
00050
00051 #ifndef __bbWxLayoutLine_h__
00052 #define __bbWxLayoutLine_h__
00053
00054 #include "bbtkWxBlackBox.h"
00055 #include "bbwx_EXPORT.h"
00056
00057
00058 namespace bbwx
00059 {
00060
00061
00062
00063
00064 class bbwx_EXPORT LayoutLine : public bbtk::WxBlackBox
00065 {
00066
00067 BBTK_BLACK_BOX_INTERFACE(LayoutLine,bbtk::WxBlackBox);
00068 BBTK_DECLARE_INPUT(Widget1,wxWindow*);
00069 BBTK_DECLARE_INPUT(Widget2,wxWindow*);
00070 BBTK_DECLARE_INPUT(Widget3,wxWindow*);
00071 BBTK_DECLARE_INPUT(Widget4,wxWindow*);
00072 BBTK_DECLARE_INPUT(Widget5,wxWindow*);
00073 BBTK_DECLARE_INPUT(Widget6,wxWindow*);
00074 BBTK_DECLARE_INPUT(Widget7,wxWindow*);
00075 BBTK_DECLARE_INPUT(Widget8,wxWindow*);
00076 BBTK_DECLARE_INPUT(Widget9,wxWindow*);
00077 BBTK_DECLARE_INPUT(Orientation,std::string);
00078 BBTK_PROCESS(Process);
00079 BBTK_CREATE_WIDGET(CreateWidget);
00080 BBTK_ON_SHOW_WIDGET(OnShowWidget);
00081
00082 void Process();
00083 void CreateWidget(wxWindow*);
00084 void OnShowWidget();
00085
00086 protected:
00087 virtual void bbUserConstructor();
00088 void TryInsertWindow(wxWindow *parent, wxWindow *w,wxBoxSizer *sizer);
00089
00090 };
00091
00092
00093
00094
00095
00096 BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutLine,bbtk::WxBlackBox);
00097 BBTK_NAME("LayoutLine");
00098 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00099 BBTK_DESCRIPTION("LayoutLine widget (wxBoxSizer)");
00100
00101 BBTK_INPUT(LayoutLine,Widget1,"widget 1",wxWindow*,"");
00102 BBTK_INPUT(LayoutLine,Widget2,"widget 2",wxWindow*,"");
00103 BBTK_INPUT(LayoutLine,Widget3,"widget 3",wxWindow*,"");
00104 BBTK_INPUT(LayoutLine,Widget4,"widget 4",wxWindow*,"");
00105 BBTK_INPUT(LayoutLine,Widget5,"widget 5",wxWindow*,"");
00106 BBTK_INPUT(LayoutLine,Widget6,"widget 6",wxWindow*,"");
00107 BBTK_INPUT(LayoutLine,Widget7,"widget 7",wxWindow*,"");
00108 BBTK_INPUT(LayoutLine,Widget8,"widget 8",wxWindow*,"");
00109 BBTK_INPUT(LayoutLine,Widget9,"widget 9",wxWindow*,"");
00110 BBTK_INPUT(LayoutLine,Orientation,"Orientation (default V), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string,"");
00111 BBTK_END_DESCRIBE_BLACK_BOX(LayoutLine);
00112
00113
00114
00115
00116 }
00117
00118
00119
00120
00121 #endif //__bbtkWxLayoutLine_h__
00122
00123 #endif //USE_WXWIDGETS