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
00058 namespace bbwx
00059 {
00060
00061
00062
00063
00064 class LayoutTab : public bbtk::WxBlackBox
00065 {
00066
00067 BBTK_BLACK_BOX_INTERFACE(LayoutTab,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
00081 void Process();
00082 void CreateWidget();
00083 void bbUserOnShow();
00084
00085 protected:
00086 virtual void bbUserConstructor();
00087 void TryInsertWindow(wxNotebook *book, wxWindow *widgetchild);
00088
00089 };
00090
00091
00092
00093
00094 BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutTab,bbtk::WxBlackBox);
00095 BBTK_NAME("LayoutTab");
00096 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00097 BBTK_DESCRIPTION("LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains");
00098
00099 BBTK_INPUT(LayoutTab,Widget1,"widget 1",wxWindow*,"");
00100 BBTK_INPUT(LayoutTab,Widget2,"widget 2",wxWindow*,"");
00101 BBTK_INPUT(LayoutTab,Widget3,"widget 3",wxWindow*,"");
00102 BBTK_INPUT(LayoutTab,Widget4,"widget 4",wxWindow*,"");
00103 BBTK_INPUT(LayoutTab,Widget5,"widget 5",wxWindow*,"");
00104 BBTK_INPUT(LayoutTab,Widget6,"widget 6",wxWindow*,"");
00105 BBTK_INPUT(LayoutTab,Widget7,"widget 7",wxWindow*,"");
00106 BBTK_INPUT(LayoutTab,Widget8,"widget 8",wxWindow*,"");
00107 BBTK_INPUT(LayoutTab,Widget9,"widget 9",wxWindow*,"");
00108 BBTK_INPUT(LayoutTab,Orientation,
00109 "Orientation (default T), 0=T=TOP , 1=R=RIGHT , 2=B=BOTTON , 3=L=LEFT "
00110 ,std::string,"");
00111 BBTK_END_DESCRIBE_BLACK_BOX(LayoutTab);
00112
00113
00114
00115
00116 }
00117
00118
00119
00120
00121 #endif //__bbtkWxSizer_h__
00122
00123 #endif //_USE_WXWIDGETS_