//===== // 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) //===== #include "bbwtLayoutSplit.h" #include "bbwtPackage.h" #include "bbtkUtilities.h" namespace bbwt { BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutSplit) BBTK_BLACK_BOX_IMPLEMENTATION(LayoutSplit,bbtk::WtBlackBox); //===== // 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::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) { Wt::Ext::Splitter *w = new Wt::Ext::Splitter(parent); 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(); } int orientation=0; if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { orientation=0; } if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { orientation=1; } w->addWidget(w1); w->addWidget(w2); if(orientation == 0){ w->setOrientation(Wt::Horizontal);} else{ w->setOrientation(Wt::Vertical);} 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) //===== void LayoutSplit::bbUserSetDefaultValues() { bbSetInputOrientation("VERTICAL"); bbSetInputProportion(50); bbSetInputWidget1(NULL); bbSetInputWidget2(NULL); } //===== // 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::bbUserInitializeProcessing() { } //===== // 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::bbUserFinalizeProcessing() { } } // EO namespace bbwt