X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtLayoutSplit.cxx;h=1e06e093134ed09620e1f2a7050fba879105dad2;hb=e19fa7d7d6d8da78d560d0dbc06efb4bb85e41e5;hp=de0e7552fbde29cdeca33ae58c55e14a9a8eacca;hpb=9d4bfc78701cb1f302e09b0cd9595e006cd4b5fb;p=creaWT.git diff --git a/wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx b/wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx index de0e755..1e06e09 100644 --- a/wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx +++ b/wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx @@ -23,12 +23,14 @@ void LayoutSplit::Process() //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -/*void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent) +void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent) { Wt::WContainerWidget* w = new Wt::WContainerWidget(parent); Wt::WBoxLayout *l; if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); } if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); } + + Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w); Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w); @@ -39,17 +41,18 @@ void LayoutSplit::Process() l->addWidget(w1); l->addWidget(w2); - + l->setResizable(0,true,400); w->setLayout(l); bbSetOutputWidget( w ); -}*/ +} +/* void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent) { Wt::WContainerWidget* w = new Wt::WContainerWidget(parent); - Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w); + Wt::Ext::Splitter *l = new Wt::Ext::Splitter(); // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); } // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); } @@ -59,18 +62,18 @@ void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent) if (w1==NULL) { w1=new Wt::WContainerWidget(); } if (w2==NULL) { w2=new Wt::WContainerWidget(); } - w1->resize(Wt::WLength::Auto,Wt::WLength::Auto) ; - w2->resize(Wt::WLength::Auto,Wt::WLength::Auto) ; + w1->resize(200,200) ; + w2->resize(200,200) ; l->addWidget(w1); l->addWidget(w2); - + w->addWidget(l); //w->setLayout(l); bbSetOutputWidget( w ); -} +}*/ //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //=====