X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxLayoutTab.h;h=f00c62e4ecbb88dfb0a4d9980c5e70ecf2c2c43f;hb=31e2f200e025912534be06735c258e2b41285a28;hp=93e415a5e5235acb125f0b00c4a858d4a6ec54a8;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/packages/wx/src/bbwxLayoutTab.h b/packages/wx/src/bbwxLayoutTab.h index 93e415a..f00c62e 100644 --- a/packages/wx/src/bbwxLayoutTab.h +++ b/packages/wx/src/bbwxLayoutTab.h @@ -63,13 +63,8 @@ namespace bbwx { - - - - class bbwx_EXPORT LayoutTab : public bbtk::WxBlackBox { - BBTK_BLACK_BOX_INTERFACE(LayoutTab,bbtk::WxBlackBox); BBTK_DECLARE_INPUT(Widget1,wxWindow*); BBTK_DECLARE_INPUT(Widget2,wxWindow*); @@ -81,26 +76,24 @@ namespace bbwx BBTK_DECLARE_INPUT(Widget8,wxWindow*); BBTK_DECLARE_INPUT(Widget9,wxWindow*); BBTK_DECLARE_INPUT(Orientation,std::string); + BBTK_DECLARE_OUTPUT(Selection,int); BBTK_PROCESS(Process); BBTK_CREATE_WIDGET(CreateWidget); BBTK_ON_SHOW_WIDGET(OnShowWidget); - void Process(); void CreateWidget(wxWindow*); void OnShowWidget(); - protected: + void SetTitleTabs(); void TryInsertWindow(wxNotebook *book, const std::string& input); - }; - //================================================================= // BlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutTab,bbtk::WxBlackBox); BBTK_NAME("LayoutTab"); BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr"); - BBTK_DESCRIPTION("LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains"); + BBTK_DESCRIPTION("(C++, Python) LayoutTab widget (wxNotebook) The label of each 'note book' will be the name of the object it contains"); // Already inserted for any WxBlackBox BBTK_CATEGORY("widget"); BBTK_INPUT(LayoutTab,Widget1,"widget 1",wxWindow*,""); BBTK_INPUT(LayoutTab,Widget2,"widget 2",wxWindow*,""); @@ -114,6 +107,8 @@ namespace bbwx BBTK_INPUT(LayoutTab,Orientation, "Orientation (default T), 0=T=TOP , 1=R=RIGHT , 2=B=BOTTON , 3=L=LEFT " ,std::string,""); + BBTK_OUTPUT(LayoutTab,Selection,"Tab selection",int,""); + BBTK_END_DESCRIBE_BLACK_BOX(LayoutTab); //=================================================================