2 // 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)
4 #include "bbwtLayoutSplit.h"
5 #include "bbwtPackage.h"
6 #include "bbtkUtilities.h"
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutSplit)
13 BBTK_BLACK_BOX_IMPLEMENTATION(LayoutSplit,bbtk::WtBlackBox);
15 // 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)
17 void LayoutSplit::Process()
24 // 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)
26 /*void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
28 Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
30 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
31 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
33 Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
34 Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
36 if (w1==NULL) { w1=new Wt::WContainerWidget(); }
37 if (w2==NULL) { w2=new Wt::WContainerWidget(); }
45 bbSetOutputWidget( w );
49 void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
51 Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
52 Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w);
53 // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
54 // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
56 Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
57 Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
59 if (w1==NULL) { w1=new Wt::WContainerWidget(); }
60 if (w2==NULL) { w2=new Wt::WContainerWidget(); }
62 w1->resize(Wt::WLength::Auto,Wt::WLength::Auto) ;
63 w2->resize(Wt::WLength::Auto,Wt::WLength::Auto) ;
70 bbSetOutputWidget( w );
75 // 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)
77 void LayoutSplit::bbUserSetDefaultValues()
79 bbSetInputOrientation("VERTICAL");
80 bbSetInputProportion(50);
81 bbSetInputWidget1(NULL);
82 bbSetInputWidget2(NULL);
85 // 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)
87 void LayoutSplit::bbUserInitializeProcessing()
92 // 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)
94 void LayoutSplit::bbUserFinalizeProcessing()