//===== // 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 "bbwtLayoutTab.h" #include "bbwtPackage.h" #include "bbtkUtilities.h" namespace bbwt { BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutTab) BBTK_BLACK_BOX_IMPLEMENTATION(LayoutTab,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 LayoutTab::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 LayoutTab::CreateWidget(Wt::WContainerWidget* parent) { Wt::WContainerWidget *w = new Wt::WContainerWidget(parent); Wt::WTabWidget* layout = new Wt::WTabWidget(w); Wt::WContainerWidget *cw; if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));} if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel2()));} if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel3()));} if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel4()));} if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel5()));} if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel6()));} if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel7()));} if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel8()));} if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel9()));} 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 LayoutTab::bbUserSetDefaultValues() { bbSetInputWidget1(NULL); bbSetInputWidget2(NULL); bbSetInputWidget3(NULL); bbSetInputWidget4(NULL); bbSetInputWidget5(NULL); bbSetInputWidget6(NULL); bbSetInputWidget7(NULL); bbSetInputWidget8(NULL); bbSetInputWidget9(NULL); bbSetInputLabel1("Tab 1"); bbSetInputLabel2("Tab 2"); bbSetInputLabel3("Tab 3"); bbSetInputLabel4("Tab 4"); bbSetInputLabel5("Tab 5"); bbSetInputLabel6("Tab 6"); bbSetInputLabel7("Tab 7"); bbSetInputLabel8("Tab 8"); bbSetInputLabel9("Tab 9"); } //===== // 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 LayoutTab::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 LayoutTab::bbUserFinalizeProcessing() { } } // EO namespace bbwt