]> Creatis software - creaWT.git/blobdiff - wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx~
#2449 creaWeb Feature New Normal wt-version wtLibrary
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutSplit.cxx~
index f7d6470935d392dd6b0991b4b118be5f35d79ddf..e4cc8655aa77a1d3316b47a2fccc16134c0a849c 100644 (file)
@@ -23,12 +23,12 @@ 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(parent); }
-       if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)    { l = new Wt::WVBoxLayout(parent); }
+       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);
@@ -45,6 +45,29 @@ void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
        bbSetOutputWidget( w );
        
   
+}*/
+void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
+{
+       Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
+       Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w);
+//     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);
+
+       if (w1==NULL) { w1=new Wt::WContainerWidget(); }
+       if (w2==NULL) { w2=new Wt::WContainerWidget(); }
+
+
+       l->addWidget(w1);
+       l->addWidget(w2);
+
+       //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)