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(); }
35 Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
36 Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
38 if (w1==NULL) { w1=new Wt::WContainerWidget(); }
39 if (w2==NULL) { w2=new Wt::WContainerWidget(); }
44 l->setResizable(0,true,400);
47 bbSetOutputWidget( w );
52 void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
54 Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
55 Wt::Ext::Splitter *l = new Wt::Ext::Splitter();
56 // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
57 // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
59 Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
60 Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
62 if (w1==NULL) { w1=new Wt::WContainerWidget(); }
63 if (w2==NULL) { w2=new Wt::WContainerWidget(); }
73 bbSetOutputWidget( w );
78 // 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)
80 void LayoutSplit::bbUserSetDefaultValues()
82 bbSetInputOrientation("VERTICAL");
83 bbSetInputProportion(50);
84 bbSetInputWidget1(NULL);
85 bbSetInputWidget2(NULL);
88 // 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)
90 void LayoutSplit::bbUserInitializeProcessing()
95 // 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)
97 void LayoutSplit::bbUserFinalizeProcessing()