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 __bbWxLayoutTab_h__
00052 #define __bbWxLayoutTab_h__
00053
00054 #include "bbtkWxBlackBox.h"
00055 #include <wx/notebook.h>
00056
00057 #include "bbwx_EXPORT.h"
00058
00059 namespace bbwx
00060 {
00061
00062
00063
00064
00065 class bbwx_EXPORT LayoutTab : public bbtk::WxBlackBox
00066 {
00067
00068 BBTK_BLACK_BOX_INTERFACE(LayoutTab,bbtk::WxBlackBox);
00069 BBTK_DECLARE_INPUT(Widget1,wxWindow*);
00070 BBTK_DECLARE_INPUT(Widget2,wxWindow*);
00071 BBTK_DECLARE_INPUT(Widget3,wxWindow*);
00072 BBTK_DECLARE_INPUT(Widget4,wxWindow*);
00073 BBTK_DECLARE_INPUT(Widget5,wxWindow*);
00074 BBTK_DECLARE_INPUT(Widget6,wxWindow*);
00075 BBTK_DECLARE_INPUT(Widget7,wxWindow*);
00076 BBTK_DECLARE_INPUT(Widget8,wxWindow*);
00077 BBTK_DECLARE_INPUT(Widget9,wxWindow*);
00078 BBTK_DECLARE_INPUT(Orientation,std::string);
00079 BBTK_PROCESS(Process);
00080 BBTK_CREATE_WIDGET(CreateWidget);
00081 BBTK_ON_SHOW_WIDGET(OnShowWidget);
00082
00083 void Process();
00084 void CreateWidget(wxWindow*);
00085 void OnShowWidget();
00086
00087 protected:
00088 virtual void bbUserConstructor();
00089 void TryInsertWindow(wxNotebook *book, const std::string& input);
00090
00091 };
00092
00093
00094
00095
00096 BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutTab,bbtk::WxBlackBox);
00097 BBTK_NAME("LayoutTab");
00098 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00099 BBTK_DESCRIPTION("LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains");
00100
00101 BBTK_INPUT(LayoutTab,Widget1,"widget 1",wxWindow*,"");
00102 BBTK_INPUT(LayoutTab,Widget2,"widget 2",wxWindow*,"");
00103 BBTK_INPUT(LayoutTab,Widget3,"widget 3",wxWindow*,"");
00104 BBTK_INPUT(LayoutTab,Widget4,"widget 4",wxWindow*,"");
00105 BBTK_INPUT(LayoutTab,Widget5,"widget 5",wxWindow*,"");
00106 BBTK_INPUT(LayoutTab,Widget6,"widget 6",wxWindow*,"");
00107 BBTK_INPUT(LayoutTab,Widget7,"widget 7",wxWindow*,"");
00108 BBTK_INPUT(LayoutTab,Widget8,"widget 8",wxWindow*,"");
00109 BBTK_INPUT(LayoutTab,Widget9,"widget 9",wxWindow*,"");
00110 BBTK_INPUT(LayoutTab,Orientation,
00111 "Orientation (default T), 0=T=TOP , 1=R=RIGHT , 2=B=BOTTON , 3=L=LEFT "
00112 ,std::string,"");
00113 BBTK_END_DESCRIBE_BLACK_BOX(LayoutTab);
00114
00115
00116
00117
00118 }
00119
00120
00121
00122
00123 #endif //__bbtkWxSizer_h__
00124
00125 #endif //_USE_WXWIDGETS_